pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  2. <modelVersion>4.0.0</modelVersion>
  3. <groupId>com.gmail.nossr50.mcMMO</groupId>
  4. <artifactId>mcMMO</artifactId>
  5. <version>2.1.161</version>
  6. <name>mcMMO</name>
  7. <url>https://github.com/mcMMO-Dev/mcMMO</url>
  8. <scm>
  9. <url>https://github.com/mcMMO-Dev/mcMMO</url>
  10. <connection>scm:git:git://github.com/mcMMO-Dev/mcMMO.git</connection>
  11. <developerConnection>scm:git:git@github.com:mcMMO-Dev/mcMMO.git</developerConnection>
  12. <tag>HEAD</tag>
  13. </scm>
  14. <issueManagement>
  15. <url>https://github.com/mcMMO-Dev/mcMMO/issues</url>
  16. <system>GitHub</system>
  17. </issueManagement>
  18. <packaging>jar</packaging>
  19. <build>
  20. <finalName>${project.artifactId}</finalName>
  21. <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
  22. <resources>
  23. <resource>
  24. <targetPath>.</targetPath>
  25. <filtering>true</filtering>
  26. <directory>${basedir}/src/main/resources/</directory>
  27. <includes>
  28. <include>*.yml</include>
  29. <include>.jenkins</include>
  30. </includes>
  31. </resource>
  32. <resource>
  33. <targetPath>com/gmail/nossr50/locale</targetPath>
  34. <filtering>true</filtering>
  35. <directory>${basedir}/src/main/resources/locale/</directory>
  36. <includes>
  37. <include>locale*.properties</include>
  38. </includes>
  39. </resource>
  40. <resource>
  41. <targetPath>mods</targetPath>
  42. <filtering>true</filtering>
  43. <directory>${basedir}/src/main/resources/mods</directory>
  44. <includes>
  45. <include>*.yml</include>
  46. </includes>
  47. </resource>
  48. <resource>
  49. <targetPath>.</targetPath>
  50. <filtering>true</filtering>
  51. <directory>${basedir}</directory>
  52. <includes>
  53. <include>LICENSE</include>
  54. </includes>
  55. </resource>
  56. </resources>
  57. <plugins>
  58. <plugin>
  59. <groupId>org.apache.maven.plugins</groupId>
  60. <artifactId>maven-release-plugin</artifactId>
  61. <version>2.5.2</version>
  62. </plugin>
  63. <plugin>
  64. <groupId>org.apache.maven.plugins</groupId>
  65. <artifactId>maven-compiler-plugin</artifactId>
  66. <version>3.8.1</version>
  67. <configuration>
  68. <compilerArgs>
  69. <arg>-parameters</arg> <!-- used for ACF syntax stuff -->
  70. </compilerArgs>
  71. <source>1.8</source>
  72. <target>1.8</target>
  73. <excludes>
  74. </excludes>
  75. </configuration>
  76. </plugin>
  77. <plugin>
  78. <artifactId>maven-assembly-plugin</artifactId>
  79. <configuration>
  80. <descriptors>
  81. <descriptor>src/main/assembly/package.xml</descriptor>
  82. </descriptors>
  83. </configuration>
  84. <executions>
  85. <execution>
  86. <id>build</id>
  87. <phase>package</phase>
  88. <goals>
  89. <goal>single</goal>
  90. </goals>
  91. </execution>
  92. </executions>
  93. </plugin>
  94. <plugin>
  95. <groupId>org.apache.maven.plugins</groupId>
  96. <artifactId>maven-shade-plugin</artifactId>
  97. <version>3.2.3</version>
  98. <configuration>
  99. <artifactSet>
  100. <includes>
  101. <include>commons-logging:commons-logging</include>
  102. <include>org.apache.tomcat:tomcat-jdbc</include>
  103. <include>org.apache.tomcat:tomcat-juli</include>
  104. <include>org.bstats:bstats-bukkit</include>
  105. <include>net.kyori:adventure-api</include>
  106. <include>net.kyori:adventure-text-serializer-gson</include>
  107. <include>net.kyori:adventure-platform-bukkit</include>
  108. <include>net.kyori:adventure-platform-api</include>
  109. <include>net.kyori:adventure-platform-common</include>
  110. <include>net.kyori:adventure-platform-viaversion</include>
  111. <include>net.kyori:adventure-platform-facet</include>
  112. <include>net.kyori:adventure-nbt</include>
  113. <include>net.kyori:examination-api</include>
  114. <include>net.kyori:examination-string</include>
  115. <include>net.kyori:adventure-text-serializer-legacy</include>
  116. <include>net.kyori:adventure-text-serializer-bungeecord</include>
  117. <include>net.kyori:adventure-text-serializer-craftbukkit</include>
  118. <include>net.kyori:adventure-text-serializer-gson-legacy-impl</include>
  119. <include>co.aikar:acf-bukkit</include>
  120. </includes>
  121. </artifactSet>
  122. <!-- <dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>-->
  123. <relocations>
  124. <relocation>
  125. <pattern>net.kyori.adventure</pattern>
  126. <shadedPattern>com.gmail.nossr50.mcmmo.kyori.adventure</shadedPattern>
  127. </relocation>
  128. <relocation>
  129. <pattern>co.aikar.commands</pattern>
  130. <shadedPattern>com.gmail.nossr50.mcmmo.acf</shadedPattern> <!-- Replace this -->
  131. </relocation>
  132. <relocation>
  133. <pattern>co.aikar.locales</pattern>
  134. <shadedPattern>com.gmail.nossr50.mcmmo.locales</shadedPattern> <!-- Replace this -->
  135. </relocation>
  136. <relocation>
  137. <pattern>org.apache.commons.logging</pattern>
  138. <shadedPattern>com.gmail.nossr50.mcmmo.commons.logging</shadedPattern>
  139. </relocation>
  140. <relocation>
  141. <pattern>org.apache.juli</pattern>
  142. <shadedPattern>com.gmail.nossr50.mcmmo.database.tomcat.juli</shadedPattern>
  143. </relocation>
  144. <relocation>
  145. <pattern>org.apache.tomcat</pattern>
  146. <shadedPattern>com.gmail.nossr50.mcmmo.database.tomcat</shadedPattern>
  147. </relocation>
  148. <relocation>
  149. <pattern>org.bstats</pattern>
  150. <shadedPattern>com.gmail.nossr50.mcmmo.metrics.bstat</shadedPattern>
  151. </relocation>
  152. </relocations>
  153. </configuration>
  154. <executions>
  155. <execution>
  156. <phase>package</phase>
  157. <goals>
  158. <goal>shade</goal>
  159. </goals>
  160. </execution>
  161. </executions>
  162. </plugin>
  163. </plugins>
  164. <extensions>
  165. <extension>
  166. <groupId>org.apache.maven.wagon</groupId>
  167. <artifactId>wagon-file</artifactId>
  168. <version>2.2</version>
  169. </extension>
  170. </extensions>
  171. </build>
  172. <repositories>
  173. <repository>
  174. <id>spigot-repo</id>
  175. <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
  176. </repository>
  177. <repository>
  178. <id>CodeMC</id>
  179. <url>https://repo.codemc.org/repository/maven-public</url>
  180. </repository>
  181. <repository>
  182. <id>sk89q-repo</id>
  183. <url>https://maven.sk89q.com/repo/</url>
  184. </repository>
  185. <repository>
  186. <id>aikar</id>
  187. <url>https://repo.aikar.co/content/groups/aikar/</url>
  188. </repository>
  189. <!-- ... -->
  190. <repository> <!-- for development builds -->
  191. <id>sonatype-oss</id>
  192. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  193. </repository>
  194. <!-- ... -->
  195. </repositories>
  196. <dependencies>
  197. <dependency>
  198. <groupId>co.aikar</groupId>
  199. <artifactId>acf-bukkit</artifactId> <!-- Don't forget to replace this -->
  200. <version>0.5.0-SNAPSHOT</version> <!-- Replace this as well -->
  201. </dependency>
  202. <!-- adventure-api, adventure-text-serializer-gson, adventure-platform-bukkit-->
  203. <dependency>
  204. <groupId>net.kyori</groupId>
  205. <artifactId>adventure-text-serializer-gson</artifactId>
  206. <version>4.3.0</version>
  207. </dependency>
  208. <dependency>
  209. <groupId>net.kyori</groupId>
  210. <artifactId>adventure-api</artifactId>
  211. <version>4.3.0</version>
  212. </dependency>
  213. <dependency>
  214. <groupId>net.kyori</groupId>
  215. <artifactId>adventure-nbt</artifactId>
  216. <version>4.3.0</version>
  217. </dependency>
  218. <dependency>
  219. <groupId>net.kyori</groupId>
  220. <artifactId>adventure-platform-bukkit</artifactId>
  221. <version>4.0.0-SNAPSHOT</version>
  222. </dependency>
  223. <dependency>
  224. <groupId>net.kyori</groupId>
  225. <artifactId>adventure-platform-api</artifactId>
  226. <version>4.0.0-SNAPSHOT</version>
  227. </dependency>
  228. <dependency>
  229. <groupId>net.kyori</groupId>
  230. <artifactId>adventure-platform-common</artifactId>
  231. <version>4.0.0-SNAPSHOT</version>
  232. </dependency>
  233. <dependency>
  234. <groupId>net.kyori</groupId>
  235. <artifactId>adventure-text-serializer-gson-legacy-impl</artifactId>
  236. <version>4.3.0</version>
  237. </dependency>
  238. <dependency>
  239. <groupId>org.apache.maven.scm</groupId>
  240. <artifactId>maven-scm-provider-gitexe</artifactId>
  241. <version>1.9.4</version>
  242. </dependency>
  243. <dependency>
  244. <groupId>org.bstats</groupId>
  245. <artifactId>bstats-bukkit</artifactId>
  246. <version>1.4</version>
  247. <scope>compile</scope>
  248. </dependency>
  249. <dependency>
  250. <groupId>org.spigotmc</groupId>
  251. <artifactId>spigot-api</artifactId>
  252. <version>1.16.4-R0.1-SNAPSHOT</version>
  253. <scope>provided</scope>
  254. </dependency>
  255. <dependency>
  256. <groupId>com.sk89q.worldguard</groupId>
  257. <artifactId>worldguard-core</artifactId>
  258. <version>7.0.1-SNAPSHOT</version>
  259. <exclusions>
  260. <exclusion>
  261. <!-- We use jetbrains instead. Excluding this -->
  262. <!-- prevents us from using inconsistent annotations -->
  263. <groupId>com.google.code.findbugs</groupId>
  264. <artifactId>jsr305</artifactId>
  265. </exclusion>
  266. </exclusions>
  267. </dependency>
  268. <dependency>
  269. <groupId>com.sk89q.worldguard</groupId>
  270. <artifactId>worldguard-legacy</artifactId>
  271. <version>7.0.0-SNAPSHOT</version>
  272. <exclusions>
  273. <exclusion>
  274. <groupId>org.bukkit</groupId>
  275. <artifactId>bukkit</artifactId>
  276. </exclusion>
  277. </exclusions>
  278. </dependency>
  279. <dependency>
  280. <groupId>junit</groupId>
  281. <artifactId>junit-dep</artifactId>
  282. <version>4.10</version>
  283. <scope>test</scope>
  284. </dependency>
  285. <dependency>
  286. <groupId>org.apache.tomcat</groupId>
  287. <artifactId>tomcat-jdbc</artifactId>
  288. <version>7.0.52</version>
  289. <scope>compile</scope>
  290. </dependency>
  291. <dependency>
  292. <groupId>org.jetbrains</groupId>
  293. <artifactId>annotations</artifactId>
  294. <version>19.0.0</version>
  295. </dependency>
  296. </dependencies>
  297. <properties>
  298. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  299. </properties>
  300. </project>