Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.50 KB | None | 0 0
  1. <build>
  2.         <sourceDirectory>src/main/java</sourceDirectory>
  3.         <resources>
  4.             <resource>
  5.                 <targetPath>.</targetPath>
  6.                 <filtering>true</filtering>
  7.                 <directory>${basedir}/src/main/resources/</directory>
  8.                 <includes>
  9.                     <include>*</include>
  10.                 </includes>
  11.             </resource>
  12.         </resources>
  13.         <plugins>
  14.             <plugin>
  15.                 <groupId>org.apache.maven.plugins</groupId>
  16.                 <artifactId>maven-shade-plugin</artifactId>
  17.                 <version>3.0.0</version>
  18.                 <configuration>
  19.                     <!-- put your configurations here -->
  20.                 </configuration>
  21.                 <executions>
  22.                     <execution>
  23.                         <phase>package</phase>
  24.                         <goals>
  25.                             <goal>shade</goal>
  26.                         </goals>
  27.                     </execution>
  28.                 </executions>
  29.             </plugin>
  30.             <plugin>
  31.                 <groupId>org.apache.maven.plugins</groupId>
  32.                 <artifactId>maven-compiler-plugin</artifactId>
  33.                 <version>3.5.1</version>
  34.                 <configuration>
  35.                     <source>1.8</source>
  36.                     <target>1.8</target>
  37.                 </configuration>
  38.             </plugin>
  39.             <plugin>
  40.                 <artifactId>maven-assembly-plugin</artifactId>
  41.                 <executions>
  42.                     <execution>
  43.                         <phase>package</phase>
  44.                         <goals>
  45.                             <goal>single</goal>
  46.                         </goals>
  47.                     </execution>
  48.                 </executions>
  49.                 <configuration>
  50.                     <archive>
  51.                         <manifest>
  52.                             <mainClass>de.chaotic.gearbot.core.GearBot</mainClass> <!-- You have to replace this with a path to your core class like my.path.Main -->
  53.                         </manifest>
  54.                     </archive>
  55.                     <descriptorRefs>
  56.                         <descriptorRef>jar-with-dependencies</descriptorRef>
  57.                     </descriptorRefs>
  58.                 </configuration>
  59.             </plugin>
  60.             <plugin>
  61.                 <!-- Build an executable JAR -->
  62.                 <groupId>org.apache.maven.plugins</groupId>
  63.                 <artifactId>maven-jar-plugin</artifactId>
  64.                 <version>3.0.2</version>
  65.                 <configuration>
  66.                     <archive>
  67.                         <manifest>
  68.                             <addClasspath>true</addClasspath>
  69.                             <classpathPrefix>/lib</classpathPrefix>
  70.                             <mainClass>de.chaotic.gearbot.core.GearBot</mainClass>
  71.                         </manifest>
  72.                     </archive>
  73.                 </configuration>
  74.             </plugin>
  75.             <plugin>  <!-- Create sources.jar -->
  76.                 <groupId>org.apache.maven.plugins</groupId>
  77.                 <artifactId>maven-source-plugin</artifactId>
  78.                 <version>3.0.1</version>
  79.                 <executions>
  80.                     <execution>
  81.                         <id>attach-sources</id>
  82.                         <goals>
  83.                             <goal>jar</goal>
  84.                         </goals>
  85.                     </execution>
  86.                 </executions>
  87.             </plugin>
  88.         </plugins>
  89.     </build>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement