Advertisement
Guest User

Untitled

a guest
Jul 1st, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MXML 2.42 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3.         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5.     <modelVersion>4.0.0</modelVersion>
  6.     <packaging>jar</packaging>
  7.  
  8.     <parent>
  9.         <groupId>com.test</groupId>
  10.         <artifactId>testproject</artifactId>
  11.         <version>1.0-SNAPSHOT</version>
  12.     </parent>
  13.  
  14.     <artifactId>testProject</artifactId>
  15.     <version>1.0-SNAPSHOT</version>
  16.  
  17.     <build>
  18.         <plugins>
  19.             <plugin>
  20.                 <groupId>org.apache.maven.plugins</groupId>
  21.                 <artifactId>maven-dependency-plugin</artifactId>
  22.                 <executions>
  23.                     <execution>
  24.                         <id>copy-dependencies</id>
  25.                         <phase>prepare-package</phase>
  26.                         <goals>
  27.                             <goal>copy-dependencies</goal>
  28.                         </goals>
  29.                         <configuration>
  30.                             <outputDirectory>
  31.                                 ${project.build.directory}/libs
  32.                             </outputDirectory>
  33.                         </configuration>
  34.                     </execution>
  35.                 </executions>
  36.             </plugin>
  37.             <plugin>
  38.                 <groupId>org.apache.maven.plugins</groupId>
  39.                 <artifactId>maven-assembly-plugin</artifactId>
  40.                 <executions>
  41.                     <execution>
  42.                         <phase>package</phase>
  43.                         <goals>
  44.                             <goal>single</goal>
  45.                         </goals>
  46.                         <configuration>
  47.                             <archive>
  48.                                 <manifest>
  49.                                     <mainClass>
  50.                                         com.test.MyMainClass
  51.                                     </mainClass>
  52.                                 </manifest>
  53.                             </archive>
  54.                             <descriptorRefs>
  55.                                 <descriptorRef>jar-with-dependencies</descriptorRef>
  56.                             </descriptorRefs>
  57.                         </configuration>
  58.                     </execution>
  59.                 </executions>
  60.             </plugin>
  61.         </plugins>
  62.     </build>
  63. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement