move the core artifact to provided scope

The license core artifact is currently marked as a compile dependency but it also
shaded into the plugin jar file. This causes issues because we have the same class
in multiple jars. To workaround this, the core artifact is marked as provided so that
it is not included in the published pom file.

Closes elastic/elasticsearch#54

Original commit: elastic/x-pack-elasticsearch@0d786cb965
This commit is contained in:
jaymode 2015-07-02 10:25:13 -04:00
parent ba9202a5de
commit e5cd37a9af
1 changed files with 3 additions and 1 deletions

View File

@ -29,7 +29,9 @@
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-license-core</artifactId>
<version>2.0.0-SNAPSHOT</version>
<scope>compile</scope>
<!-- we mark this as provided because we need the dependency but shade it into this jar, so consumers of this
project don't need to depend on the core artifact -->
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.elasticsearch</groupId>