pom.xml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  2. <modelVersion>4.0.0</modelVersion>
  3. <groupId>xyz.spaceio</groupId>
  4. <artifactId>SpectatorAFK</artifactId>
  5. <version>0.0.1-SNAPSHOT</version>
  6. <name>SpectatorAFK</name>
  7. <description>Puts players into spectator mode after a specified amount of time afk</description>
  8. <repositories>
  9. <!-- Spigot repository -->
  10. <repository>
  11. <id>spigot-repo</id>
  12. <url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
  13. </repository>
  14. </repositories>
  15. <dependencies>
  16. <!--Spigot API -->
  17. <dependency>
  18. <groupId>org.spigotmc</groupId>
  19. <artifactId>spigot-api</artifactId>
  20. <version>1.15.1-R0.1-SNAPSHOT</version>
  21. <scope>provided</scope>
  22. </dependency>
  23. <!-- Bukkit API -->
  24. <dependency>
  25. <groupId>org.bukkit</groupId>
  26. <artifactId>craftbukkit</artifactId>
  27. <version>1.15.1-R0.1-SNAPSHOT</version>
  28. <scope>provided</scope>
  29. </dependency>
  30. </dependencies>
  31. <build>
  32. <!-- Uses the properties in this file for plugin.yml and config.yml -->
  33. <resources>
  34. <resource>
  35. <directory>${basedir}/src/main/resources</directory>
  36. <filtering>true</filtering>
  37. <includes>
  38. <include>plugin.yml</include>
  39. <include>config.yml</include>
  40. <include>translations/*</include>
  41. </includes>
  42. </resource>
  43. </resources>
  44. <plugins>
  45. <!-- Sets the Java version to 8 -->
  46. <plugin>
  47. <groupId>org.apache.maven.plugins</groupId>
  48. <artifactId>maven-shade-plugin</artifactId>
  49. <version>3.1.0</version>
  50. <executions>
  51. <execution>
  52. <phase>package</phase>
  53. <goals>
  54. <goal>shade</goal>
  55. </goals>
  56. </execution>
  57. </executions>
  58. </plugin>
  59. <!-- Sets the custom JARfile name (Project name without spaces is good) -->
  60. <plugin>
  61. <groupId>org.apache.maven.plugins</groupId>
  62. <artifactId>maven-jar-plugin</artifactId>
  63. <version>2.4</version>
  64. <configuration>
  65. <outputDirectory>${dir}</outputDirectory>
  66. <finalName>${project.name}</finalName>
  67. </configuration>
  68. </plugin>
  69. </plugins>
  70. </build>
  71. </project>