HYPExMon5ter

Foundation Pom

Jul 22nd, 2020 (edited)
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.22 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.  
  7.     <groupId>your.group.id</groupId>
  8.     <artifactId>YourPluginName</artifactId>
  9.     <name>YourProjectName</name>
  10.     <version>YourProjectVersion</version> <!-- 1.0.0 is recommended to start out -->
  11.  
  12.     <properties>
  13.         <!-- The full path to your plugin's main class, so that Spigot can find and load it -->
  14.         <main.class>your.main.class.here</main.class>
  15.        
  16. <!-- Find latest version here: https://repo.mineacademy.org/#browse/browse:maven-public:org%2Fmineacademy%2Flibraries%2Ffoundation -->
  17.         <foundation.version>5.4.6-SNAPSHOT</foundation.version>
  18.         <java.version>1.8</java.version>
  19.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  20.     </properties>
  21.  
  22.     <repositories>
  23.         <repository>
  24.             <id>spigotmc-repo</id>
  25.             <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
  26.         </repository>
  27.         <repository>
  28.             <id>mineacademy-repo</id>
  29.             <url>https://repo.mineacademy.org/repository/maven-public/</url>
  30.         </repository>
  31.         <repository>
  32.             <id>jitpack.io</id>
  33.             <url>https://jitpack.io</url>
  34.         </repository>
  35.         <repository>
  36.             <id>sonatype</id>
  37.             <url>https://oss.sonatype.org/content/groups/public/</url>
  38.         </repository>
  39.     </repositories>
  40.  
  41.     <dependencies>
  42.         <dependency>
  43.             <groupId>org.spigotmc</groupId>
  44.             <artifactId>spigot-api</artifactId>
  45.             <version>1.16.1-R0.1-SNAPSHOT</version>
  46.             <scope>provided</scope>
  47.         </dependency>
  48.         <dependency>
  49.             <groupId>org.mineacademy.libraries</groupId>
  50.             <artifactId>foundation</artifactId>
  51.             <version>${foundation.version}</version>
  52.             <scope>compile</scope>
  53.         </dependency>
  54.     </dependencies>
  55.  
  56.     <build>
  57.         <plugins>
  58.             <plugin>
  59.                 <groupId>org.apache.maven.plugins</groupId>
  60.                 <artifactId>maven-compiler-plugin</artifactId>
  61.                 <!-- Find latest version here: https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin -->
  62.                 <version>3.8.1</version>
  63.                 <configuration>
  64.                     <source>${java.version}</source>
  65.                     <target>${java.version}</target>
  66.                 </configuration>
  67.             </plugin>
  68.             <plugin>
  69.                 <groupId>org.apache.maven.plugins</groupId>
  70.                 <artifactId>maven-shade-plugin</artifactId>
  71.                <!-- Find latest version here: https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-shade-plugin -->
  72.                 <version>3.2.4</version>
  73.                 <executions>
  74.                     <execution>
  75.                         <phase>package</phase>
  76.                         <goals>
  77.                             <goal>shade</goal>
  78.                         </goals>
  79.                         <configuration>
  80.                             <createDependencyReducedPom>false</createDependencyReducedPom>
  81.                             <finalName>${project.name}-${project.version}</finalName>
  82.                             <artifactSet>
  83.                                 <includes>
  84.                                     <include>org.mineacademy.libraries:foundation*</include>
  85.                                 </includes>
  86.                             </artifactSet>
  87.                             <relocations>
  88.                                 <relocation>
  89.                                     <pattern>org.mineacademy.fo</pattern>
  90.                                     <shadedPattern>${project.groupId}.${project.artifactId}.lib</shadedPattern>
  91.                                     <excludes>
  92.                                         <exclude>${project.groupId}.${project.artifactId}.lib.*</exclude>
  93.                                     </excludes>
  94.                                 </relocation>
  95.                             </relocations>
  96.                             <filters>
  97.                                 <filter>
  98.                                     <artifact>*:*</artifact>
  99.                                     <excludes>
  100.                                         <exclude>META-INF/MANIFEST.MF</exclude>
  101.                                         <exclude>META-INF/*.SF</exclude>
  102.                                         <exclude>META-INF/*.DSA</exclude>
  103.                                         <exclude>META-INF/*.RSA</exclude>
  104.                                     </excludes>
  105.                                 </filter>
  106.                             </filters>
  107.                         </configuration>
  108.                     </execution>
  109.                 </executions>
  110.             </plugin>
  111.         </plugins>
  112.  
  113.         <resources>
  114.             <resource>
  115.                 <directory>src/main/resources</directory>
  116.                 <filtering>true</filtering>
  117.             </resource>
  118.         </resources>
  119.     </build>
  120. </project>
Add Comment
Please, Sign In to add comment