File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 237237 <groupId >org.apache.maven.plugins</groupId >
238238 <artifactId >maven-shade-plugin</artifactId >
239239 <version >2.3</version >
240- <configuration >
241- <outputFile >${project.build.directory} /${project.build.finalName} -${project.build.withDependencies} .jar</outputFile >
242- <transformers >
243- <transformer implementation =" org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" >
244- <mainClass >org.buddycloud.channelserver.Main</mainClass >
245- </transformer >
246- </transformers >
247- </configuration >
248240 <executions >
249241 <execution >
242+ <id >shade-jar-with-version-numbers</id >
243+ <phase >package</phase >
244+ <goals >
245+ <goal >shade</goal >
246+ </goals >
247+ <configuration >
248+ <outputFile >${project.build.directory} /${project.build.finalName} -${project.build.withDependencies} .jar</outputFile >
249+ <transformers >
250+ <transformer implementation =" org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" >
251+ <mainClass >org.buddycloud.channelserver.Main</mainClass >
252+ </transformer >
253+ </transformers >
254+ </configuration >
255+ </execution >
256+ <execution >
257+ <id >shade-jar-without-version-numbers</id >
250258 <phase >package</phase >
251259 <goals >
252260 <goal >shade</goal >
253261 </goals >
262+ <configuration >
263+ <outputFile >${project.build.directory} /${project.artifactId} -${project.build.withDependencies} .jar</outputFile >
264+ <transformers >
265+ <transformer implementation =" org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" >
266+ <mainClass >org.buddycloud.channelserver.Main</mainClass >
267+ </transformer >
268+ </transformers >
269+ </configuration >
254270 </execution >
255271 </executions >
256272 </plugin >
314330 </execution >
315331 </executions >
316332 </plugin >
333+ <plugin >
334+ <artifactId >maven-antrun-plugin</artifactId >
335+ <version >1.7</version >
336+ <configuration >
337+ <tasks >
338+ <copy file =" ${project.build.directory}/${project.build.finalName}.jar" tofile =" ${project.build.directory}/${project.artifactId}.jar" />
339+ </tasks >
340+ </configuration >
341+ <executions >
342+ <execution >
343+ <phase >package</phase >
344+ <goals >
345+ <goal >run</goal >
346+ </goals >
347+ </execution >
348+ </executions >
349+ </plugin >
317350 </plugins >
318351 </build >
319352
You can’t perform that action at this time.
0 commit comments