Commit 3c3f8df756e43af59d2a9672b305db02a5c6ca2b

Authored by Diego Ceccarelli
1 parent c8990c9b

replace assembly plugin with shade plugin

Showing 2 changed files with 31 additions and 7 deletions   Show diff stats
... ... @@ -78,13 +78,37 @@
78 78 <target>1.5</target>
79 79 </configuration>
80 80 </plugin>
  81 +
81 82 <plugin>
82   - <artifactId>maven-assembly-plugin</artifactId>
83   - <configuration>
84   - <descriptorRefs>
85   - <descriptorRef>jar-with-dependencies</descriptorRef>
86   - </descriptorRefs>
87   - </configuration>
  83 + <groupId>org.apache.maven.plugins</groupId>
  84 + <artifactId>maven-shade-plugin</artifactId>
  85 + <version>2.0</version>
  86 + <executions>
  87 + <execution>
  88 + <phase>package</phase>
  89 + <goals>
  90 + <goal>shade</goal>
  91 + </goals>
  92 + <configuration>
  93 + <transformers>
  94 + <!-- use transformer to handle merge of META-INF/services - see http://java.net/jira/browse/JERSEY-440?focusedCommentId=14822&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_14822 -->
  95 + <transformer
  96 + implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
  97 + </transformers>
  98 + <filters>
  99 + <!-- filter to address "Invalid signature file" issue - see http://stackoverflow.com/a/6743609/589215 -->
  100 + <filter>
  101 + <artifact>*:*</artifact>
  102 + <excludes>
  103 + <exclude>META-INF/*.SF</exclude>
  104 + <exclude>META-INF/*.DSA</exclude>
  105 + <exclude>META-INF/*.RSA</exclude>
  106 + </excludes>
  107 + </filter>
  108 + </filters>
  109 + </configuration>
  110 + </execution>
  111 + </executions>
88 112 </plugin>
89 113 </plugins>
90 114 </build>
... ...
scripts/config.sh
... ... @@ -6,6 +6,6 @@ LOG=INFO
6 6 ##LOG=DEBUG
7 7 LOGAT=1000
8 8 E_BADARGS=65
9   -JAVA="java $XMX -Dlogat=$LOGAT -Dlogback.configurationFile=./logback.xml -cp .:./target/twitter-trends-0.0.1-SNAPSHOT-jar-with-dependencies.jar"
  9 +JAVA="java $XMX -Dlogat=$LOGAT -Dlogback.configurationFile=./logback.xml -cp .:./target/twitter-trends-0.0.1-SNAPSHOT.jar"
10 10 CLI=it.cnr.isti.hpc.trends.cli
11 11 export LC_ALL=C
... ...