pom.xml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ This file is part of MissileWars (https://github.com/Butzlabben/missilewars).
  4. ~ Copyright (c) 2018-2021 Daniel Nägele.
  5. ~
  6. ~ MissileWars is free software: you can redistribute it and/or modify
  7. ~ it under the terms of the GNU General Public License as published by
  8. ~ the Free Software Foundation, either version 3 of the License, or
  9. ~ (at your option) any later version.
  10. ~
  11. ~ MissileWars is distributed in the hope that it will be useful,
  12. ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. ~ GNU General Public License for more details.
  15. ~
  16. ~ You should have received a copy of the GNU General Public License
  17. ~ along with MissileWars. If not, see <https://www.gnu.org/licenses/>.
  18. -->
  19. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  20. xmlns="http://maven.apache.org/POM/4.0.0"
  21. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  22. <modelVersion>4.0.0</modelVersion>
  23. <properties>
  24. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  25. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  26. </properties>
  27. <groupId>de.butzlabben</groupId>
  28. <artifactId>missilewars</artifactId>
  29. <packaging>pom</packaging>
  30. <version>1.0</version>
  31. <modules>
  32. <module>FAWE_Paster</module>
  33. <module>missilewars-plugin</module>
  34. </modules>
  35. <repositories>
  36. <repository>
  37. <id>spigot-repo</id>
  38. <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
  39. </repository>
  40. <repository>
  41. <id>enginehub-maven</id>
  42. <url>https://maven.enginehub.org/repo/</url>
  43. </repository>
  44. <repository>
  45. <id>jitpack.io</id>
  46. <url>https://jitpack.io</url>
  47. </repository>
  48. <repository>
  49. <id>S01-Sonatype-Snapshots</id>
  50. <url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
  51. </repository>
  52. <repository>
  53. <id>redstoneworld-RedUtilities</id>
  54. <url>https://dl.cloudsmith.io/public/redstoneworld/RedUtilities/maven/</url>
  55. </repository>
  56. </repositories>
  57. <dependencies>
  58. <!-- repo spigot-repo -->
  59. <dependency>
  60. <groupId>org.spigotmc</groupId>
  61. <artifactId>spigot-api</artifactId>
  62. <version>1.21.1-R0.1-SNAPSHOT</version>
  63. <scope>provided</scope>
  64. </dependency>
  65. <!-- repo enginehub-maven -->
  66. <dependency>
  67. <groupId>com.sk89q.worldedit</groupId>
  68. <artifactId>worldedit-bukkit</artifactId>
  69. <version>7.3.9</version>
  70. <scope>provided</scope>
  71. <exclusions>
  72. <exclusion>
  73. <groupId>org.bstats</groupId>
  74. <artifactId>bstats-bukkit</artifactId>
  75. </exclusion>
  76. </exclusions>
  77. </dependency>
  78. <dependency>
  79. <groupId>com.sk89q.worldedit</groupId>
  80. <artifactId>worldedit-core</artifactId>
  81. <version>7.3.9</version>
  82. <scope>provided</scope>
  83. </dependency>
  84. <!-- repo maven central -->
  85. <dependency>
  86. <groupId>org.projectlombok</groupId>
  87. <artifactId>lombok</artifactId>
  88. <version>1.18.36</version>
  89. <scope>provided</scope>
  90. </dependency>
  91. <dependency>
  92. <groupId>de.redstoneworld.redutilities</groupId>
  93. <artifactId>redutilities</artifactId>
  94. <version>0.0.18-Snapshot</version>
  95. </dependency>
  96. </dependencies>
  97. <build>
  98. <finalName>${project.artifactId}</finalName>
  99. <defaultGoal>package</defaultGoal>
  100. <sourceDirectory>src/main/java</sourceDirectory>
  101. <resources>
  102. <resource>
  103. <directory>src/main/resources-filtered</directory>
  104. <filtering>true</filtering>
  105. </resource>
  106. <resource>
  107. <directory>src/main/resources</directory>
  108. <filtering>false</filtering>
  109. </resource>
  110. </resources>
  111. <plugins>
  112. <plugin>
  113. <artifactId>maven-compiler-plugin</artifactId>
  114. <version>3.5.1</version>
  115. <configuration>
  116. <forceJavacCompilerUse>true</forceJavacCompilerUse>
  117. <source>17</source>
  118. <target>17</target>
  119. </configuration>
  120. </plugin>
  121. <plugin>
  122. <groupId>org.apache.maven.plugins</groupId>
  123. <artifactId>maven-shade-plugin</artifactId>
  124. <version>3.5.2</version>
  125. <configuration>
  126. <relocations>
  127. <relocation>
  128. <pattern>org.bstats</pattern>
  129. <shadedPattern>de.butzlabben.missilewars.shaded.bstats</shadedPattern>
  130. </relocation>
  131. <relocation>
  132. <pattern>com.github.stefvanschie.inventoryframework</pattern>
  133. <shadedPattern>de.butzlabben.missilewars.shaded.inventoryframework</shadedPattern>
  134. </relocation>
  135. <relocation>
  136. <pattern>com.fasterxml.jackson</pattern>
  137. <shadedPattern>de.butzlabben.missilewars.shaded.jackson</shadedPattern>
  138. </relocation>
  139. </relocations>
  140. <filters>
  141. <filter>
  142. <artifact>*:*</artifact>
  143. <excludes>
  144. <exclude>META-INF/</exclude>
  145. </excludes>
  146. </filter>
  147. </filters>
  148. </configuration>
  149. <executions>
  150. <execution>
  151. <phase>package</phase>
  152. <goals>
  153. <goal>shade</goal>
  154. </goals>
  155. </execution>
  156. </executions>
  157. </plugin>
  158. <plugin>
  159. <groupId>org.apache.maven.plugins</groupId>
  160. <artifactId>maven-surefire-plugin</artifactId>
  161. <version>3.0.0-M5</version>
  162. <dependencies>
  163. <dependency>
  164. <groupId>org.apache.maven.surefire</groupId>
  165. <artifactId>surefire-junit47</artifactId>
  166. <version>3.0.0-M5</version>
  167. </dependency>
  168. </dependencies>
  169. </plugin>
  170. </plugins>
  171. </build>
  172. </project>