Advertisement
Guest User

Working pom.xml

a guest
Mar 17th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.76 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.     <groupId>main.incrementing.pw</groupId>
  8.     <artifactId>API</artifactId>
  9.     <version>2.1-ALPHA</version>
  10.     <packaging>jar</packaging>
  11.     <properties>
  12.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13.     </properties>
  14.  
  15.     <repositories>
  16.         <repository>
  17.             <id>spigot-repo</id>
  18.             <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
  19.         </repository>
  20.     </repositories>
  21.  
  22.     <dependencies>
  23.         <!--Spigot API-->
  24.         <dependency>
  25.             <groupId>org.spigotmc</groupId>
  26.             <artifactId>spigot-api</artifactId>
  27.             <version>1.8.8-R0.1-SNAPSHOT</version>
  28.             <scope>provided</scope>
  29.         </dependency>
  30.         <!--Spigot Server Wrapper-->
  31.         <dependency>
  32.             <groupId>org.bukkit.</groupId>
  33.             <artifactId>bukkit</artifactId>
  34.             <scope>system</scope>
  35.             <version>1.8.8-R0.1-SNAPSHOT</version>
  36.             <systemPath>${basedir}\src\lib\spigot-1.8.8-R0.1-SNAPSHOT.jar</systemPath>
  37.         </dependency>
  38.         <!--Bukkit API-->
  39.         <dependency>
  40.             <groupId>org.bukkit</groupId>
  41.             <artifactId>bukkit</artifactId>
  42.             <version>1.8.8-R0.1-SNAPSHOT</version>
  43.             <scope>provided</scope>
  44.         </dependency>
  45.         <!-- HikariCP -->
  46.         <dependency>
  47.             <groupId>com.zaxxer</groupId>
  48.             <artifactId>HikariCP</artifactId>
  49.             <version>2.4.3</version>
  50.         </dependency>
  51.     </dependencies>
  52.  
  53.     <build>
  54.         <defaultGoal>clean package</defaultGoal>
  55.         <finalName>${project.name}-${project.version}</finalName>
  56.         <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
  57.         <resources>
  58.             <resource>
  59.                 <filtering>true</filtering>
  60.                 <targetPath>.</targetPath>
  61.                 <directory>${basedir}/src/main/resources/</directory>
  62.                 <includes>
  63.                     <include>**/*.yml</include>
  64.                 </includes>
  65.             </resource>
  66.         </resources>
  67.         <plugins>
  68.             <plugin>
  69.                 <artifactId>maven-shade-plugin</artifactId>
  70.                 <version>2.3</version>
  71.                 <executions>
  72.                     <execution>
  73.                         <phase>package</phase>
  74.                         <goals>
  75.                             <goal>shade</goal>
  76.                         </goals>
  77.                         <configuration>
  78.                             <minimizeJar>true</minimizeJar>
  79.                             <createDependencyReducedPom>false</createDependencyReducedPom>
  80.                             <artifactSet>
  81.                                 <includes>
  82.                                     <include>com.zaxxer:*</include>
  83.                                     <include>org.slf4j:*</include>
  84.                                 </includes>
  85.                             </artifactSet>
  86.                         </configuration>
  87.                     </execution>
  88.                 </executions>
  89.             </plugin>
  90.             <plugin>
  91.                 <artifactId>maven-compiler-plugin</artifactId>
  92.                 <version>2.3.2</version>
  93.                 <configuration>
  94.                     <source>1.7</source>
  95.                     <target>1.7</target>
  96.                     <encoding>${project.build.sourceEncoding}</encoding>
  97.                 </configuration>
  98.             </plugin>
  99.         </plugins>
  100.     </build>
  101. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement