Browse Source

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

which allow to leave test dependencies in the proper scope
feature/18848
Luca Frosini 2 years ago
parent
commit
6f7bb6e223
  1. 12
      pom.xml
  2. 0
      tar-gz.xml
  3. 0
      uberjar.xml

12
pom.xml

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

0
tar-gz-no-provided-deps.xml → tar-gz.xml

0
uberjar-no-provided-deps.xml → uberjar.xml

Loading…
Cancel
Save