The right way to build a search guard package from source code

Hello everyone:

as shown on the title, i need a way to build a search guard used for elasticsearch.

After i read the pom.xml, i assume i can execute “mvn clean package -P enterprise -Dmaven.test.skip=true”

And then i can get the plugin zip package in target/releases/search-guard-6-6.1.3-22.0.zip

is it right?

The version of search guard i used is ves-6.1.3-22.0

Thanks

When asking questions, please provide the following information:

  • Search Guard and Elasticsearch version

  • Installed and used enterprise modules, if any

  • JVM version and operating system version

  • Search Guard configuration files

  • Elasticsearch log messages on debug level

  • Other installed Elasticsearch or Kibana plugins, if any

Yes, just a small typo I guess. Instead of

mvn clean package -P enterprise -Dmaven.test.skip=true

use

mvn clean package -Penterprise -Dmaven.test.skip=true

And it is also good practice to run the unit tests when building the package :wink:

···

On Monday, April 2, 2018 at 5:52:33 AM UTC+2, dfpy2332@163.com wrote:

Hello everyone:

as shown on the title, i need a way to build a search guard used for elasticsearch.

After i read the pom.xml, i assume i can execute “mvn clean package -P enterprise -Dmaven.test.skip=true”

And then i can get the plugin zip package in target/releases/search-guard-6-6.1.3-22.0.zip

is it right?

The version of search guard i used is ves-6.1.3-22.0

Thanks

When asking questions, please provide the following information:

  • Search Guard and Elasticsearch version
  • Installed and used enterprise modules, if any
  • JVM version and operating system version
  • Search Guard configuration files
  • Elasticsearch log messages on debug level
  • Other installed Elasticsearch or Kibana plugins, if any