Advertisement
Guest User

pom.xml

a guest
Feb 16th, 2020
527
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.60 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. <!--
  8. We use Maven to build our plugin and Maven uses pom.xml to configure
  9. itself.
  10.  
  11. This file is the heart and matter of everything that has to do
  12. with how your plugin connects with other libraries and exports itself
  13. when you want to publish it.
  14.  
  15. Please only edit options below, as the above declaration is machine
  16. generated and not intended for user changes.
  17. -->
  18.  
  19.  
  20.  
  21. <!-- ############################################################################### -->
  22. <!-- Basic plugin configuration, start here -->
  23. <!-- ############################################################################### -->
  24.  
  25. <!--
  26. The Group ID represents the main package of your plugin
  27.  
  28. The Artifact ID represents the name of your plugin.
  29. Traditionally, it is suggested to keep this name lowercase.
  30. If your plugin uses spaces, please replace them with dashes (-) instead.
  31.  
  32. The Name represents the full name of your plugin
  33.  
  34. The Version is current version of your plugin. You want to update this continuously
  35. -->
  36.  
  37. <groupId>com.zaramc</groupId>
  38. <artifactId>Survival</artifactId>
  39. <name>Zara-Survival</name>
  40. <version>1.0.0</version>
  41.  
  42. <!-- ############################################################################### -->
  43.  
  44. <!--
  45. Configure some of the Maven settings. We also define
  46. our new variables here such as the main class or Java version
  47. for our plugin.
  48.  
  49. You can use those variables in your src/resources folder. See
  50. plugin.yml folder there for example usage.
  51. -->
  52. <properties>
  53.  
  54. <!-- The full path to your plugin's main class, so that Spigot can find and load it -->
  55. <main.class>com.zaramc.survival.SurvivalPlugin</main.class>
  56.  
  57. <!-- The Foundation version - change to latest version from https://github.com/kangarko/Foundation/releases -->
  58. <foundation.version>5.2.0</foundation.version>
  59.  
  60. <!-- The Java version your plugin uses, see bstats.org for what most servers have and use that -->
  61. <java.version>1.8</java.version>
  62.  
  63. <!-- How letters in your code should be saved on your disk, leave to UTF-8 to support all languages -->
  64. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  65. </properties>
  66.  
  67. <!--
  68. Configure where should Maven look for other libraries and plugins we
  69. want to use in our plugin. Those libraries and plugins can you then
  70. reference below in the dependencies section.
  71.  
  72. Each repository has two parts - the id and url. The id does not
  73. really matter, however the URL must contain a valid Maven repository
  74. where the dependency is "installed" (that's why we call the goal "install"
  75. because we want to install our plugin on our PC as well so that we can
  76. use it in our other plugins together without linking it as a dependency)
  77.  
  78. By default we use the Spigot repository for Spigot and the central Maven
  79. repo for many other plugins.
  80. -->
  81. <repositories>
  82. <repository>
  83. <id>sk89q-repo</id>
  84. <url>https://maven.enginehub.org/repo/</url>
  85. </repository>
  86. <repository>
  87. <id>spigotmc-repo</id>
  88. <url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
  89. </repository>
  90. <repository>
  91. <id>jitpack.io</id>
  92. <url>https://jitpack.io</url>
  93. </repository>
  94. <repository>
  95. <id>sonatype</id>
  96. <url>https://oss.sonatype.org/content/groups/public/</url>
  97. </repository>
  98. <repository>
  99. <id>everything</id>
  100. <url>https://repo.citizensnpcs.co/</url>
  101. </repository>
  102. <repository>
  103. <id>Scarsz-Nexus</id>
  104. <url>https://nexus.scarsz.me/content/groups/public/</url>
  105. </repository>
  106.  
  107.  
  108.  
  109. </repositories>
  110.  
  111. <!--
  112. Configure what other libraries or plugins are we going to use in this plugin.
  113.  
  114. As a starting point, we are importing the Spigot API and Foundation.
  115. -->
  116. <dependencies>
  117.  
  118. <!--
  119. Import the Spigot API since it's necessary for our plugin
  120.  
  121. Make sure you change the version to the latest version you want to use for your plugin.
  122. -->
  123.  
  124. <dependency>
  125. <groupId>net.citizensnpcs</groupId>
  126. <artifactId>citizens</artifactId>
  127. <version>2.0.26-SNAPSHOT</version>
  128. <type>jar</type>
  129. <scope>provided</scope>
  130. </dependency>
  131. <dependency>
  132.  
  133.  
  134. <groupId>org.spigotmc</groupId>
  135. <artifactId>spigot-api</artifactId>
  136.  
  137. <!-- Change this to the latest version to stay up to date -->
  138. <version>1.15.2-R0.1-SNAPSHOT</version>
  139.  
  140. <!--
  141. The scope indicates if this library should be packaged together with our plugin
  142. when we want to publish it.
  143.  
  144. Set this to "compile" if you want all classes from this library to be copied
  145. to your plugin's jar, otherwise set this to "provided".
  146. -->
  147. <scope>provided</scope>
  148. </dependency>
  149.  
  150. <!--
  151. Import the Foundation library to kickstart our plugin development
  152. -->
  153. <dependency>
  154.  
  155.  
  156.  
  157. <groupId>com.github.kangarko</groupId>
  158. <artifactId>Foundation</artifactId>
  159. <version>${foundation.version}</version>
  160. <!-- Include Foundation and its dependencies. There are exceptions, see shade plugin below -->
  161. <scope>compile</scope>
  162. </dependency>
  163. <dependency>
  164. <groupId>org.mineacademy</groupId>
  165. <artifactId>boss</artifactId>
  166. <version>3.5.9</version>
  167. <scope>system</scope>
  168. <systemPath>K:/Minecraft_Dev/Test_Server/plugins/Boss-3.5.9.jar</systemPath>
  169. </dependency>
  170. <dependency>
  171. <groupId>org.headDatabase</groupId>
  172. <artifactId>data</artifactId>
  173. <version>3.1.0</version>
  174. <scope>system</scope>
  175. <systemPath>K:/Minecraft_Dev/Server_Tests/Zara_Test/plugins/HeadDatabase.jar</systemPath>
  176. </dependency>
  177. <dependency>
  178. <groupId>org.chatcontrol</groupId>
  179. <artifactId>data</artifactId>
  180. <version>3.1.0</version>
  181. <scope>system</scope>
  182. <systemPath>C:/Users/Jonathan-2/Downloads/ChatControl-8.4.11.jar</systemPath>
  183. </dependency>
  184. <dependency>
  185. <groupId>org.ultra-punishments</groupId>
  186. <artifactId>data</artifactId>
  187. <version>1.3.0</version>
  188. <scope>system</scope>
  189. <systemPath>C:/Users/Jonathan-2/Downloads/ultra-punishments-1.3.0.jar</systemPath>
  190. </dependency>
  191. <dependency>
  192. <groupId>net.luckperms</groupId>
  193. <artifactId>api</artifactId>
  194. <version>5.0</version>
  195. <scope>provided</scope>
  196. </dependency>
  197. <dependency>
  198. <groupId>com.github.TechFortress</groupId>
  199. <artifactId>GriefPrevention</artifactId>
  200. <version>16.7.1</version>
  201. </dependency>
  202. <dependency>
  203. <groupId>com.github.MilkBowl</groupId>
  204. <artifactId>VaultAPI</artifactId>
  205. <version>1.7</version>
  206. <scope>provided</scope>
  207. </dependency>
  208. <dependency>
  209. <groupId>com.sk89q.worldguard</groupId>
  210. <artifactId>worldguard-bukkit</artifactId>
  211. <version>7.0.2</version>
  212. <scope>provided</scope>
  213. </dependency>
  214. <dependency>
  215. <groupId>com.sk89q.worldedit</groupId>
  216. <artifactId>worldedit-bukkit</artifactId>
  217. <version>7.0.0-SNAPSHOT</version>
  218. </dependency>
  219. <dependency>
  220. <groupId>com.sk89q.worldedit</groupId>
  221. <artifactId>worldedit-bukkit</artifactId>
  222. <version>7.0.0-SNAPSHOT</version>
  223. </dependency>
  224. <dependency>
  225. <groupId>com.github.Angeschossen</groupId>
  226. <artifactId>LandsAPI</artifactId>
  227. <version>LATEST</version>
  228. <scope>provided</scope>
  229. </dependency>
  230. <dependency>
  231. <groupId>com.github.javafaker</groupId>
  232. <artifactId>javafaker</artifactId>
  233. <version>LATEST</version>
  234. </dependency>
  235. <dependency>
  236. <groupId>com.discordsrv</groupId>
  237. <artifactId>discordsrv</artifactId>
  238. <version>LATEST</version>
  239. <scope>provided</scope>
  240. </dependency>
  241.  
  242. <dependency>
  243. <groupId>software.amazon.awssdk</groupId>
  244. <artifactId>bom</artifactId>
  245. <version>LATEST</version>
  246. <type>pom</type>
  247. <scope>import</scope>
  248. </dependency>
  249.  
  250. <dependency>
  251. <groupId>software.amazon.awssdk</groupId>
  252. <artifactId>dynamodb</artifactId>
  253. <version>LATEST</version>
  254.  
  255. </dependency>
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266. </dependencies>
  267.  
  268. <!--
  269. Configure what happens when we are building this project (Maven compiles our code into bytecode
  270. for us automatically).
  271. -->
  272.  
  273. <build>
  274. <plugins>
  275. <plugin>
  276. <groupId>org.apache.maven.plugins</groupId>
  277. <artifactId>maven-compiler-plugin</artifactId>
  278. <version>3.8.1</version>
  279. <configuration>
  280. <source>1.8</source>
  281. <target>1.8</target>
  282. </configuration>
  283. </plugin>
  284.  
  285.  
  286. <plugin>
  287. <groupId>org.apache.maven.plugins</groupId>
  288. <artifactId>maven-shade-plugin</artifactId>
  289. <version>3.2.1</version>
  290. <executions>
  291. <execution>
  292. <phase>package</phase>
  293. <goals>
  294. <goal>shade</goal>
  295. </goals>
  296.  
  297. <configuration>
  298. <createDependencyReducedPom>false</createDependencyReducedPom>
  299. <finalName>${project.name}-${project.version}</finalName>
  300. <artifactSet>
  301. <includes>
  302. <include>org.mineacademy:Game*</include>
  303. <include>com.github.kangarko:Foundation*</include>
  304. <include>org.mineacademy.boss.*</include>
  305. </includes>
  306. <excludes>
  307. <exclude>org.mineacademy:GameAPI*</exclude>
  308. </excludes>
  309. </artifactSet>
  310. <relocations>
  311. <relocation>
  312. <pattern>com.zaramc</pattern> <!-- Replace with you groupId -->
  313. <shadedPattern>${project.groupId}.${project.artifactId}.lib</shadedPattern>
  314. <excludes>
  315. <exclude>org.mineacademy.${project.artifactId}.*</exclude>
  316. <exclude>org.mineacademy.gameapi.*</exclude>
  317. <exclude>org.mineacademy.worldeditbridge.*</exclude>
  318. </excludes>
  319. </relocation>
  320. </relocations>
  321. </configuration>
  322. </execution>
  323. </executions>
  324. </plugin>
  325. </plugins>
  326. <!--
  327. During the build, we are going to scan all files in src/main/resources
  328. folder such as plugin.yml and your settings files and replace all variables
  329. such as ${main.class} with their proper values.
  330.  
  331. You can use native variables such as ${project.X} or the ones you defined above
  332. in the properties section.
  333. -->
  334. <resources>
  335. <resource>
  336. <directory>src/main/resources</directory>
  337. <filtering>true</filtering>
  338. </resource>
  339. </resources>
  340. </build>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement