Closed asifbashar closed 2 weeks ago
Please assign this to @dblock
@asifbashar This is not a bug. Copying source code into the plugins folder as is will not work without making non-trivial changes to the gradle files in the plugin. To build the reporting plugin, check out https://github.com/opensearch-project/reporting and build with ./gradlew build
from there.
You can actually run OpenSearch with the reporting plugin together from there too with ./gradlew run
.
osx ~/source/opensearch-project/reporting/dblock-reporting (main)$ ./gradlew run
Picked up JAVA_TOOL_OPTIONS: -Dlog4j2.formatMsgNoLookups=true
=======================================
OpenSearch Build Hamster says Hello!
Gradle Version : 8.5
OS Info : Mac OS X 14.6.1 (aarch64)
JDK Version : 11 (Eclipse Temurin JDK)
JAVA_HOME : /Users/dblock/.sdkman/candidates/java/11.0.21-tem
Random Testing Seed : 68A7A90D5A7CA665
In FIPS 140 mode : false
=======================================
<===========--> 88% EXECUTING [5s]
> :run
If you need to make changes to both the core and the plugin, the easiest it to do the following (I took these from the k-nn plugin developer guide):
OpenSearch/dblock-OpenSearch (main)$ ./gradlew -p distribution/archives/darwin-tar assemble
...
You should see a opensearch-min--SNAPSHOT-darwin-x64.tar.gz
file present in distribution/archives/darwin-tar/build/distributions/
:
$ find . -name *SNAPSHOT-darwin*
./distribution/archives/darwin-tar/build/distributions/opensearch-min-3.0.0-SNAPSHOT-darwin-x64.tar.gz
You can use this output in the reporting project.
$ ./gradlew run -PcustomDistributionUrl=./distribution/archives/darwin-tar/build/distributions/opensearch-min-3.0.0-SNAPSHOT-darwin-x64.tar.gz
I'll close this, but please feel free to ask more questions below. Also, https://opensearch.org/slack.html is the best place to ask general questions like this.
Describe the bug
I have copied the reporting plugin source to OpenSearch OpenSearch/plugins/reporting I have loaded the project in Intellij When I execute "debug 'gradlew'", I get following error
Related component
Plugins
To Reproduce
Expected behavior
starts in debug mode
Additional Details
Plugins Reporting
Screenshots If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context