File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 - oraclejdk7
44 - openjdk6
55 - openjdk7
6-
7-
8- env :
9- global :
10- - MAVEN_URL=http://apache.mirrors.pair.com/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz
11- install :
12- - wget -O - $MAVEN_URL | sudo tar xvz -C /usr/local
13- - sudo rm /usr/local/maven
14- - sudo ln -s /usr/local/apache-maven-3.0.5 /usr/local/maven
6+
Original file line number Diff line number Diff line change 155155 <url >file:${project.basedir} /repo</url >
156156 </repository >
157157 </repositories >
158- <pluginRepositories >
159- <pluginRepository >
160- <id >evgenyg</id >
161- <name >Evgeny Goldin repo</name >
162- <url >http://evgenyg.artifactoryonline.com/evgenyg/repo/com/github/goldin/</url >
163- </pluginRepository >
164- </pluginRepositories >
165158 <build >
166159 <pluginManagement >
167160 <plugins >
229222 <target >1.6</target >
230223 </configuration >
231224 </plugin >
232- <plugin >
233- <artifactId >maven-assembly-plugin</artifactId >
234- <configuration >
235- <archive >
236- <manifest >
237- <mainClass >org.buddycloud.channelserver.Main</mainClass >
238- </manifest >
239- </archive >
240- <descriptorRefs >
241- <descriptorRef >${project.build.withDependencies} </descriptorRef >
242- </descriptorRefs >
243- </configuration >
244- <executions >
245- <execution >
246- <id >jar-with-dependencies</id >
247- <phase >package</phase >
248- <goals >
249- <goal >single</goal >
250- </goals >
251- </execution >
252- </executions >
253- </plugin >
254- <plugin >
255- <groupId >com.github.goldin</groupId >
256- <artifactId >copy-maven-plugin</artifactId >
257- <version >0.2.5</version >
258- <executions >
259- <execution >
260- <id >create-archive</id >
261- <phase >package</phase >
262- <goals >
263- <goal >copy</goal >
264- </goals >
265- <configuration >
266- <resources >
267- <resource >
268- <targetPath >${project.build.directory} </targetPath >
269- <file >target/${project.build.finalName} .jar</file >
270- <destFileName >${project.artifactId} .jar</destFileName >
271- </resource >
272- <resource >
273- <targetPath >${project.build.directory} </targetPath >
274- <file >${project.build.directory} /${project.build.finalName} -${project.build.withDependencies} .jar</file >
275- <destFileName >${project.artifactId} -${project.build.withDependencies} .jar</destFileName >
276- </resource >
277- </resources >
278- </configuration >
279- </execution >
280- </executions >
281- </plugin >
225+ <plugin >
226+ <groupId >org.apache.maven.plugins</groupId >
227+ <artifactId >maven-shade-plugin</artifactId >
228+ <version >2.3</version >
229+ <configuration >
230+ <outputFile >${project.build.directory} /${project.build.finalName} -${project.build.withDependencies} .jar</outputFile >
231+ <transformers >
232+ <transformer
233+ implementation =" org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" >
234+ <mainClass >org.buddycloud.channelserver.Main</mainClass >
235+ </transformer >
236+ </transformers >
237+ </configuration >
238+ <executions >
239+ <execution >
240+ <phase >package</phase >
241+ <goals >
242+ <goal >shade</goal >
243+ </goals >
244+ </execution >
245+ </executions >
246+ </plugin >
282247 <plugin >
283248 <groupId >org.apache.maven.plugins</groupId >
284249 <artifactId >maven-checkstyle-plugin</artifactId >
You can’t perform that action at this time.
0 commit comments