Fixed the uber-jar solution. Using includeScope in place of excludeScope

which allow to leave test dependencies in the proper scope
This commit is contained in:
Luca Frosini 2019-12-19 09:29:17 +01:00
parent 7b367aa471
commit 6f7bb6e223
3 changed files with 6 additions and 6 deletions

12
pom.xml
View File

@ -112,18 +112,18 @@
<dependency> <dependency>
<groupId>org.gcube.vremanagement</groupId> <groupId>org.gcube.vremanagement</groupId>
<artifactId>smart-executor-client</artifactId> <artifactId>smart-executor-client</artifactId>
<scope>provided</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>
<artifactId>junit</artifactId> <artifactId>junit</artifactId>
<version>4.11</version> <version>4.11</version>
<scope>provided</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>ch.qos.logback</groupId> <groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId> <artifactId>logback-classic</artifactId>
<scope>provided</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
@ -141,7 +141,7 @@
<goal>copy-dependencies</goal> <goal>copy-dependencies</goal>
</goals> </goals>
<configuration> <configuration>
<excludeScope>provided</excludeScope> <includeScope>runtime</includeScope>
<outputDirectory>${basedir}${file.separator}target${file.separator}libs</outputDirectory> <outputDirectory>${basedir}${file.separator}target${file.separator}libs</outputDirectory>
<overWriteReleases>false</overWriteReleases> <overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots> <overWriteSnapshots>false</overWriteSnapshots>
@ -161,7 +161,7 @@
<configuration> <configuration>
<appendAssemblyId>true</appendAssemblyId> <appendAssemblyId>true</appendAssemblyId>
<descriptors> <descriptors>
<descriptor>uberjar-no-provided-deps.xml</descriptor> <descriptor>uberjar.xml</descriptor>
</descriptors> </descriptors>
</configuration> </configuration>
<phase>package</phase> <phase>package</phase>
@ -174,7 +174,7 @@
<configuration> <configuration>
<appendAssemblyId>false</appendAssemblyId> <appendAssemblyId>false</appendAssemblyId>
<descriptors> <descriptors>
<descriptor>tar-gz-no-provided-deps.xml</descriptor> <descriptor>tar-gz.xml</descriptor>
</descriptors> </descriptors>
</configuration> </configuration>
<phase>package</phase> <phase>package</phase>