Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.43 KB | None | 0 0
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4.  
  5. <artifactId>spigot-server</artifactId>
  6. <packaging>jar</packaging>
  7. <version>1.7.10-R0.1-SNAPSHOT</version>
  8. <name>spigot-server</name>
  9.  
  10. <properties>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. <api.version>${project.name}-${project.version}</api.version>
  13. <junit.version>4.11</junit.version>
  14. <minecraft.version>1.7.10</minecraft.version>
  15. <minecraft_version>1_7_R4</minecraft_version>
  16. <buildtag.prefix>git-Bukkit-</buildtag.prefix>
  17. <maven.compiler.source>1.8</maven.compiler.source>
  18. <maven.compiler.target>1.8</maven.compiler.target>
  19. </properties>
  20.  
  21. <parent>
  22. <groupId>gg.ayako</groupId>
  23. <artifactId>spigot-parent</artifactId>
  24. <version>1.0</version>
  25. <relativePath>../pom.xml</relativePath>
  26. </parent>
  27.  
  28. <pluginRepositories>
  29. <pluginRepository>
  30. <id>spigotmc-public</id>
  31. <url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
  32. </pluginRepository>
  33. </pluginRepositories>
  34.  
  35. <repositories>
  36. <repository>
  37. <id>enginehub</id>
  38. <url>https://maven.enginehub.org/repo/</url>
  39. </repository>
  40. </repositories>
  41.  
  42. <dependencies>
  43.  
  44. <dependency>
  45. <groupId>gg.ayako</groupId>
  46. <artifactId>spigot-api</artifactId>
  47. <version>${project.version}</version>
  48. <type>jar</type>
  49. <scope>compile</scope>
  50. </dependency>
  51.  
  52. <dependency>
  53. <groupId>org.bukkit</groupId>
  54. <artifactId>minecraft-server</artifactId>
  55. <version>${minecraft.version}</version>
  56. <type>jar</type>
  57. <scope>compile</scope>
  58. </dependency>
  59.  
  60. <dependency>
  61. <groupId>net.sf.jopt-simple</groupId>
  62. <artifactId>jopt-simple</artifactId>
  63. <version>3.2</version>
  64. <type>jar</type>
  65. <scope>compile</scope>
  66. </dependency>
  67.  
  68. <!-- jline and jansi versions must be kept in sync -->
  69. <dependency>
  70. <groupId>jline</groupId>
  71. <artifactId>jline</artifactId>
  72. <version>2.6</version>
  73. <type>jar</type>
  74. <scope>compile</scope>
  75. </dependency>
  76.  
  77. <dependency>
  78. <groupId>org.fusesource.jansi</groupId>
  79. <artifactId>jansi</artifactId>
  80. <version>1.8</version>
  81. <type>jar</type>
  82. <scope>compile</scope>
  83. </dependency>
  84.  
  85. <dependency>
  86. <groupId>org.xerial</groupId>
  87. <artifactId>sqlite-jdbc</artifactId>
  88. <version>3.7.2</version>
  89. <type>jar</type>
  90. <scope>compile</scope>
  91. </dependency>
  92.  
  93. <dependency>
  94. <groupId>mysql</groupId>
  95. <artifactId>mysql-connector-java</artifactId>
  96. <version>5.1.14</version>
  97. <type>jar</type>
  98. <scope>compile</scope>
  99. </dependency>
  100.  
  101. <dependency>
  102. <groupId>com.google.code.gson</groupId>
  103. <artifactId>gson</artifactId>
  104. <version>2.8.5</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.projectlombok</groupId>
  108. <artifactId>lombok</artifactId>
  109. <version>1.16.10</version>
  110. </dependency>
  111. <!-- testing -->
  112. <dependency>
  113. <groupId>junit</groupId>
  114. <artifactId>junit</artifactId>
  115. <version>${junit.version}</version>
  116. <scope>test</scope>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.hamcrest</groupId>
  120. <artifactId>hamcrest-library</artifactId>
  121. <version>1.3</version>
  122. <scope>test</scope>
  123. </dependency>
  124. <dependency>
  125. <groupId>io.netty</groupId>
  126. <artifactId>netty-all</artifactId>
  127. <version>4.0.23.Final</version>
  128. </dependency>
  129. <dependency>
  130. <groupId>it.unimi.dsi</groupId>
  131. <artifactId>fastutil</artifactId>
  132. <version>7.2.1</version>
  133. </dependency>
  134. </dependencies>
  135.  
  136. <!-- This builds a completely 'ready to start' jar with all dependencies inside -->
  137. <build>
  138. <defaultGoal>clean install</defaultGoal>
  139. <plugins>
  140. <plugin>
  141. <groupId>net.md-5</groupId>
  142. <artifactId>scriptus</artifactId>
  143. <version>0.2</version>
  144. <executions>
  145. <execution>
  146. <id>ex-mspigot</id>
  147. <configuration>
  148. <format>git-mSpigot-%s</format>
  149. <scmDirectory>../</scmDirectory>
  150. <descriptionProperty>mspigot.desc</descriptionProperty>
  151. </configuration>
  152. <phase>initialize</phase>
  153. <goals>
  154. <goal>describe</goal>
  155. </goals>
  156. </execution>
  157. </executions>
  158. </plugin>
  159. <plugin>
  160. <groupId>org.apache.maven.plugins</groupId>
  161. <artifactId>maven-jar-plugin</artifactId>
  162. <version>2.1</version>
  163. <configuration>
  164. <archive>
  165. <manifestEntries>
  166. <Main-Class>org.bukkit.craftbukkit.Main</Main-Class>
  167. <Implementation-Title>CraftBukkit</Implementation-Title>
  168. <Implementation-Version>1.7.10</Implementation-Version>
  169. <Implementation-Vendor>Bukkit Team</Implementation-Vendor>
  170. <Specification-Title>Bukkit</Specification-Title>
  171. <Specification-Version>${api.version}</Specification-Version>
  172. <Specification-Vendor>Bukkit Team</Specification-Vendor>
  173. <Sealed>true</Sealed>
  174. <Timestamp>${maven.build.timestamp}</Timestamp>
  175. </manifestEntries>
  176. <manifestSections>
  177. <manifestSection>
  178. <name>net/bukkit/</name>
  179. <manifestEntries>
  180. <Sealed>true</Sealed>
  181. </manifestEntries>
  182. </manifestSection>
  183. <manifestSection>
  184. <name>com/bukkit/</name>
  185. <manifestEntries>
  186. <Sealed>true</Sealed>
  187. </manifestEntries>
  188. </manifestSection>
  189. <manifestSection>
  190. <name>org/bukkit/</name>
  191. <manifestEntries>
  192. <Sealed>true</Sealed>
  193. </manifestEntries>
  194. </manifestSection>
  195. </manifestSections>
  196. </archive>
  197. </configuration>
  198. </plugin>
  199.  
  200. <plugin>
  201. <groupId>org.apache.maven.plugins</groupId>
  202. <artifactId>maven-shade-plugin</artifactId>
  203. <version>3.2.0</version>
  204. <executions>
  205. <execution>
  206. <phase>package</phase>
  207. <goals>
  208. <goal>shade</goal>
  209. </goals>
  210. <configuration>
  211. <relocations>
  212. <relocation>
  213. <pattern>org.bouncycastle</pattern>
  214. <shadedPattern>net.minecraft.v${minecraft_version}.org.bouncycastle</shadedPattern>
  215. </relocation>
  216. <relocation>
  217. <pattern>joptsimple</pattern>
  218. <shadedPattern>org.bukkit.craftbukkit.libs.joptsimple</shadedPattern>
  219. </relocation>
  220. <relocation>
  221. <pattern>jline</pattern>
  222. <shadedPattern>org.bukkit.craftbukkit.libs.jline</shadedPattern>
  223. </relocation>
  224. <relocation>
  225. <pattern>org.ibex</pattern>
  226. <shadedPattern>org.bukkit.craftbukkit.libs.org.ibex</shadedPattern>
  227. </relocation>
  228. <relocation>
  229. <pattern>org.gjt</pattern>
  230. <shadedPattern>org.bukkit.craftbukkit.libs.org.gjt</shadedPattern>
  231. </relocation>
  232. <relocation>
  233. <pattern>com.google.gson</pattern>
  234. <shadedPattern>org.bukkit.craftbukkit.libs.com.google.gson</shadedPattern>
  235. </relocation>
  236. <relocation>
  237. <pattern>io.netty</pattern>
  238. <shadedPattern>net.minecraft.util.io.netty</shadedPattern>
  239. </relocation>
  240. <relocation>
  241. <pattern>org.bukkit.craftbukkit</pattern>
  242. <shadedPattern>org.bukkit.craftbukkit.v${minecraft_version}</shadedPattern>
  243. <excludes>
  244. <exclude>org.bukkit.craftbukkit.Main*</exclude>
  245. </excludes>
  246. </relocation>
  247. <relocation>
  248. <pattern>net.minecraft.server</pattern>
  249. <shadedPattern>net.minecraft.server.v${minecraft_version}</shadedPattern>
  250. </relocation>
  251. </relocations>
  252. <filters>
  253. <filter>
  254. <artifact>org.bukkit:minecraft-server</artifact>
  255. <excludes>
  256. <exclude>net/minecraft/util/io/netty/**</exclude>
  257. </excludes>
  258. </filter>
  259. </filters>
  260. </configuration>
  261. </execution>
  262. </executions>
  263. </plugin>
  264. <plugin>
  265. <groupId>org.apache.maven.plugins</groupId>
  266. <artifactId>maven-compiler-plugin</artifactId>
  267. <version>3.1</version>
  268. <configuration>
  269. <source>1.8</source>
  270. <target>1.8</target>
  271. <!-- We use the Eclipse compiler as it doesn't need a JDK -->
  272. <compilerId>eclipse</compilerId>
  273. <!-- Source and target are ignored if this isn't true -->
  274. <optimize>true</optimize>
  275. </configuration>
  276. <dependencies>
  277. <!-- We need our custom version as it fixes some bugs on case sensitive file systems -->
  278. <dependency>
  279. <groupId>org.codehaus.plexus</groupId>
  280. <artifactId>plexus-compiler-eclipse</artifactId>
  281. <version>2.5.0-spigotmc</version>
  282. </dependency>
  283. </dependencies>
  284. </plugin>
  285. <plugin>
  286. <groupId>net.md-5</groupId>
  287. <artifactId>specialsource-maven-plugin</artifactId>
  288. <version>1.2.1</version>
  289. <executions>
  290. <execution>
  291. <phase>package</phase>
  292. <goals>
  293. <goal>remap</goal>
  294. </goals>
  295. <configuration>
  296. <srgIn>${project.basedir}/deprecation-mappings.csrg</srgIn>
  297. <accessIn>${project.basedir}/deprecation-mappings.at</accessIn>
  298. </configuration>
  299. </execution>
  300. </executions>
  301. </plugin>
  302. </plugins>
  303. <pluginManagement>
  304. <plugins>
  305. <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
  306. <plugin>
  307. <groupId>org.eclipse.m2e</groupId>
  308. <artifactId>lifecycle-mapping</artifactId>
  309. <version>1.0.0</version>
  310. <configuration>
  311. <lifecycleMappingMetadata>
  312. <pluginExecutions>
  313. <pluginExecution>
  314. <pluginExecutionFilter>
  315. <groupId>com.lukegb.mojo</groupId>
  316. <artifactId>
  317. gitdescribe-maven-plugin
  318. </artifactId>
  319. <versionRange>[1.3,)</versionRange>
  320. <goals>
  321. <goal>gitdescribe</goal>
  322. </goals>
  323. </pluginExecutionFilter>
  324. </pluginExecution>
  325. </pluginExecutions>
  326. </lifecycleMappingMetadata>
  327. </configuration>
  328. </plugin>
  329. </plugins>
  330. </pluginManagement>
  331. </build>
  332. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement