pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  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.155</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>co.aikar:acf-bukkit</include>
  119. </includes>
  120. </artifactSet>
  121. <!-- <dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>-->
  122. <relocations>
  123. <relocation>
  124. <pattern>co.aikar.commands</pattern>
  125. <shadedPattern>com.gmail.nossr50.mcmmo.acf</shadedPattern> <!-- Replace this -->
  126. </relocation>
  127. <relocation>
  128. <pattern>co.aikar.locales</pattern>
  129. <shadedPattern>com.gmail.nossr50.mcmmo.locales</shadedPattern> <!-- Replace this -->
  130. </relocation>
  131. <relocation>
  132. <pattern>org.apache.commons.logging</pattern>
  133. <shadedPattern>com.gmail.nossr50.mcmmo.commons.logging</shadedPattern>
  134. </relocation>
  135. <relocation>
  136. <pattern>org.apache.juli</pattern>
  137. <shadedPattern>com.gmail.nossr50.mcmmo.database.tomcat.juli</shadedPattern>
  138. </relocation>
  139. <relocation>
  140. <pattern>org.apache.tomcat</pattern>
  141. <shadedPattern>com.gmail.nossr50.mcmmo.database.tomcat</shadedPattern>
  142. </relocation>
  143. <relocation>
  144. <pattern>net.kyori.adventure</pattern>
  145. <shadedPattern>com.gmail.nossr50.mcmmo.kyori.adventure</shadedPattern>
  146. </relocation>
  147. <relocation>
  148. <pattern>org.bstats</pattern>
  149. <shadedPattern>com.gmail.nossr50.mcmmo.metrics.bstat</shadedPattern>
  150. </relocation>
  151. </relocations>
  152. </configuration>
  153. <executions>
  154. <execution>
  155. <phase>package</phase>
  156. <goals>
  157. <goal>shade</goal>
  158. </goals>
  159. </execution>
  160. </executions>
  161. </plugin>
  162. </plugins>
  163. <extensions>
  164. <extension>
  165. <groupId>org.apache.maven.wagon</groupId>
  166. <artifactId>wagon-file</artifactId>
  167. <version>2.2</version>
  168. </extension>
  169. </extensions>
  170. </build>
  171. <repositories>
  172. <repository>
  173. <id>spigot-repo</id>
  174. <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
  175. </repository>
  176. <repository>
  177. <id>CodeMC</id>
  178. <url>https://repo.codemc.org/repository/maven-public</url>
  179. </repository>
  180. <repository>
  181. <id>sk89q-repo</id>
  182. <url>https://maven.sk89q.com/repo/</url>
  183. </repository>
  184. <repository>
  185. <id>aikar</id>
  186. <url>https://repo.aikar.co/content/groups/aikar/</url>
  187. </repository>
  188. <!-- ... -->
  189. <repository> <!-- for development builds -->
  190. <id>sonatype-oss</id>
  191. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  192. </repository>
  193. <!-- ... -->
  194. </repositories>
  195. <dependencies>
  196. <dependency>
  197. <groupId>co.aikar</groupId>
  198. <artifactId>acf-bukkit</artifactId> <!-- Don't forget to replace this -->
  199. <version>0.5.0-SNAPSHOT</version> <!-- Replace this as well -->
  200. </dependency>
  201. <!-- adventure-api, adventure-text-serializer-gson, adventure-platform-bukkit-->
  202. <dependency>
  203. <groupId>net.kyori</groupId>
  204. <artifactId>adventure-text-serializer-gson</artifactId>
  205. <version>4.2.0-SNAPSHOT</version>
  206. </dependency>
  207. <dependency>
  208. <groupId>net.kyori</groupId>
  209. <artifactId>adventure-api</artifactId>
  210. <version>4.2.0-SNAPSHOT</version>
  211. </dependency>
  212. <dependency>
  213. <groupId>net.kyori</groupId>
  214. <artifactId>adventure-nbt</artifactId>
  215. <version>4.2.0-SNAPSHOT</version>
  216. </dependency>
  217. <dependency>
  218. <groupId>net.kyori</groupId>
  219. <artifactId>adventure-platform-bukkit</artifactId>
  220. <version>4.0.0-SNAPSHOT</version>
  221. </dependency>
  222. <dependency>
  223. <groupId>net.kyori</groupId>
  224. <artifactId>adventure-platform-api</artifactId>
  225. <version>4.0.0-SNAPSHOT</version>
  226. </dependency>
  227. <dependency>
  228. <groupId>net.kyori</groupId>
  229. <artifactId>adventure-platform-common</artifactId>
  230. <version>4.0.0-SNAPSHOT</version>
  231. </dependency>
  232. <dependency>
  233. <groupId>org.apache.maven.scm</groupId>
  234. <artifactId>maven-scm-provider-gitexe</artifactId>
  235. <version>1.8.1</version>
  236. </dependency>
  237. <dependency>
  238. <groupId>org.bstats</groupId>
  239. <artifactId>bstats-bukkit</artifactId>
  240. <version>1.4</version>
  241. <scope>compile</scope>
  242. </dependency>
  243. <dependency>
  244. <groupId>org.spigotmc</groupId>
  245. <artifactId>spigot-api</artifactId>
  246. <version>1.16.4-R0.1-SNAPSHOT</version>
  247. <scope>provided</scope>
  248. </dependency>
  249. <dependency>
  250. <groupId>com.sk89q.worldguard</groupId>
  251. <artifactId>worldguard-core</artifactId>
  252. <version>7.0.1-SNAPSHOT</version>
  253. <exclusions>
  254. <exclusion>
  255. <!-- We use jetbrains instead. Excluding this -->
  256. <!-- prevents us from using inconsistent annotations -->
  257. <groupId>com.google.code.findbugs</groupId>
  258. <artifactId>jsr305</artifactId>
  259. </exclusion>
  260. </exclusions>
  261. </dependency>
  262. <dependency>
  263. <groupId>com.sk89q.worldguard</groupId>
  264. <artifactId>worldguard-legacy</artifactId>
  265. <version>7.0.0-SNAPSHOT</version>
  266. <exclusions>
  267. <exclusion>
  268. <groupId>org.bukkit</groupId>
  269. <artifactId>bukkit</artifactId>
  270. </exclusion>
  271. </exclusions>
  272. </dependency>
  273. <dependency>
  274. <groupId>junit</groupId>
  275. <artifactId>junit-dep</artifactId>
  276. <version>4.10</version>
  277. <scope>test</scope>
  278. </dependency>
  279. <dependency>
  280. <groupId>org.apache.tomcat</groupId>
  281. <artifactId>tomcat-jdbc</artifactId>
  282. <version>7.0.52</version>
  283. <scope>compile</scope>
  284. </dependency>
  285. <dependency>
  286. <groupId>org.jetbrains</groupId>
  287. <artifactId>annotations</artifactId>
  288. <version>19.0.0</version>
  289. </dependency>
  290. </dependencies>
  291. <properties>
  292. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  293. </properties>
  294. </project>