pom.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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. </repositories>
  53. <dependencies>
  54. <!-- repo spigot-repo -->
  55. <dependency>
  56. <groupId>org.spigotmc</groupId>
  57. <artifactId>spigot-api</artifactId>
  58. <version>1.20.4-R0.1-SNAPSHOT</version>
  59. <scope>provided</scope>
  60. </dependency>
  61. <!-- repo enginehub-maven -->
  62. <dependency>
  63. <groupId>com.sk89q.worldedit</groupId>
  64. <artifactId>worldedit-bukkit</artifactId>
  65. <version>7.3.0</version>
  66. <scope>provided</scope>
  67. <exclusions>
  68. <exclusion>
  69. <groupId>org.bstats</groupId>
  70. <artifactId>bstats-bukkit</artifactId>
  71. </exclusion>
  72. </exclusions>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.sk89q.worldedit</groupId>
  76. <artifactId>worldedit-core</artifactId>
  77. <version>7.3.0</version>
  78. <scope>provided</scope>
  79. </dependency>
  80. <!-- repo maven central -->
  81. <dependency>
  82. <groupId>org.projectlombok</groupId>
  83. <artifactId>lombok</artifactId>
  84. <version>1.18.34</version>
  85. <scope>provided</scope>
  86. </dependency>
  87. <dependency>
  88. <groupId>de.redstoneworld.redutilities</groupId>
  89. <artifactId>redutilities</artifactId>
  90. <version>0.0.14-Snapshot</version>
  91. </dependency>
  92. </dependencies>
  93. <build>
  94. <finalName>${project.artifactId}</finalName>
  95. <defaultGoal>package</defaultGoal>
  96. <sourceDirectory>src/main/java</sourceDirectory>
  97. <resources>
  98. <resource>
  99. <directory>src/main/resources-filtered</directory>
  100. <filtering>true</filtering>
  101. </resource>
  102. <resource>
  103. <directory>src/main/resources</directory>
  104. <filtering>false</filtering>
  105. </resource>
  106. </resources>
  107. <plugins>
  108. <plugin>
  109. <artifactId>maven-compiler-plugin</artifactId>
  110. <version>3.5.1</version>
  111. <configuration>
  112. <forceJavacCompilerUse>true</forceJavacCompilerUse>
  113. <source>11</source>
  114. <target>11</target>
  115. </configuration>
  116. </plugin>
  117. <plugin>
  118. <groupId>org.apache.maven.plugins</groupId>
  119. <artifactId>maven-shade-plugin</artifactId>
  120. <version>3.5.2</version>
  121. <configuration>
  122. <relocations>
  123. <relocation>
  124. <pattern>org.bstats</pattern>
  125. <shadedPattern>de.butzlabben.missilewars</shadedPattern>
  126. </relocation>
  127. <relocation>
  128. <pattern>com.github.stefvanschie.inventoryframework</pattern>
  129. <shadedPattern>de.butzlabben.missilewars.MissileWars.inventoryframework</shadedPattern>
  130. </relocation>
  131. </relocations>
  132. <filters>
  133. <filter>
  134. <artifact>*:*</artifact>
  135. <excludes>
  136. <exclude>META-INF/</exclude>
  137. </excludes>
  138. </filter>
  139. </filters>
  140. </configuration>
  141. <executions>
  142. <execution>
  143. <phase>package</phase>
  144. <goals>
  145. <goal>shade</goal>
  146. </goals>
  147. </execution>
  148. </executions>
  149. </plugin>
  150. <plugin>
  151. <groupId>org.apache.maven.plugins</groupId>
  152. <artifactId>maven-surefire-plugin</artifactId>
  153. <version>3.0.0-M5</version>
  154. <dependencies>
  155. <dependency>
  156. <groupId>org.apache.maven.surefire</groupId>
  157. <artifactId>surefire-junit47</artifactId>
  158. <version>3.0.0-M5</version>
  159. </dependency>
  160. </dependencies>
  161. </plugin>
  162. </plugins>
  163. </build>
  164. </project>