Advertisement
Guest User

Untitled

a guest
Apr 15th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.62 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>fr.fineserv</groupId>
  8. <artifactId>finessence</artifactId>
  9. <version>1.0-SNAPSHOT</version>
  10.  
  11. <properties>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <maven.compiler.source>1.8</maven.compiler.source>
  14. <maven.compiler.target>1.8</maven.compiler.target>
  15.  
  16. <!-- DEFAULT SERVER PROPERTIES -->
  17. <SERVER.host>fineserv.fr</SERVER.host>
  18. <SERVER.port>22</SERVER.port>
  19. <SERVER.user>mickael</SERVER.user>
  20. <SERVER.password>PASSWORD</SERVER.password>
  21. <SERVER.deployDirectory>//home/minecraft/servers/server1/plugins</SERVER.deployDirectory>
  22. <SERVER.reload>mc-server1</SERVER.reload>
  23.  
  24. </properties>
  25.  
  26. <repositories>
  27. <repository>
  28. <id>spigot-repo</id>
  29. <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
  30. </repository>
  31. </repositories>
  32. <dependencies>
  33. <!--Spigot API-->
  34. <dependency>
  35. <groupId>org.spigotmc</groupId>
  36. <artifactId>spigot-api</artifactId>
  37. <version>1.11.2-R0.1-SNAPSHOT</version>
  38. <scope>provided</scope>
  39. </dependency>
  40. <!--Bukkit API-->
  41. <dependency>
  42. <groupId>org.bukkit</groupId>
  43. <artifactId>bukkit</artifactId>
  44. <version>1.11.2-R0.1-SNAPSHOT</version>
  45. <scope>provided</scope>
  46. </dependency>
  47.  
  48. <dependency>
  49. <groupId>net.md-5</groupId>
  50. <artifactId>bungeecord-api</artifactId>
  51. <version>1.10-SNAPSHOT</version>
  52. <type>jar</type>
  53. <scope>provided</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>net.md-5</groupId>
  57. <artifactId>bungeecord-api</artifactId>
  58. <version>1.10-SNAPSHOT</version>
  59. <type>javadoc</type>
  60. <scope>provided</scope>
  61. </dependency>
  62.  
  63. </dependencies>
  64.  
  65. <build>
  66. <plugins>
  67.  
  68. <!-- This plugin will generate JAR file -->
  69. <plugin>
  70. <artifactId>maven-assembly-plugin</artifactId>
  71. <configuration>
  72. <archive>
  73. <manifest>
  74. <addClasspath>false</addClasspath>
  75. </manifest>
  76. </archive>
  77. <descriptorRefs>
  78. <descriptorRef>jar-with-dependencies</descriptorRef>
  79. </descriptorRefs>
  80. </configuration>
  81. <executions>
  82. <execution>
  83. <id>make-my-jar-with-dependencies</id>
  84. <phase>package</phase>
  85. <goals>
  86. <goal>single</goal>
  87. </goals>
  88. </execution>
  89. </executions>
  90. </plugin>
  91.  
  92. <!--This plugin will Transfer JAR file to the server and reload Server -->
  93. <plugin>
  94. <groupId>org.apache.maven.plugins</groupId>
  95. <artifactId>maven-antrun-plugin</artifactId>
  96. <version>1.8</version>
  97. <executions>
  98. <execution>
  99. <phase>install</phase>
  100. <goals>
  101. <goal>run</goal>
  102. </goals>
  103. <configuration>
  104. <tasks>
  105. <!-- ensure the target directory exists on the Server -->
  106. <sshexec host="${SERVER.host}" port="${SERVER.port}" username="${SERVER.user}" password="${SERVER.password}"
  107. trust="true" failonerror="false" verbose="true"
  108. command="mkdir --parents ${SERVER.deployDirectory}"/>
  109.  
  110. <!-- copy the JAR file to the Server -->
  111. <scp
  112. file="${project.build.directory}/${project.build.finalName}-jar-with-dependencies.jar"
  113. todir="${SERVER.user}:${SERVER.password}@${SERVER.host}:${SERVER.deployDirectory}"
  114. port="${SERVER.port}" trust="true" verbose="true" failonerror="true">
  115. </scp>
  116.  
  117. <!-- reload the Server -->
  118. <sshexec host="${SERVER.host}" port="${SERVER.port}" username="${SERVER.user}"
  119. password="${SERVER.password}" trust="true" failonerror="false"
  120. verbose="true"
  121. command="screen -S ${SERVER.reload} -X stuff 'reload^M'"/>
  122.  
  123.  
  124. </tasks>
  125. </configuration>
  126. </execution>
  127. </executions>
  128. <dependencies>
  129. <dependency>
  130. <groupId>org.apache.ant</groupId>
  131. <artifactId>ant-jsch</artifactId>
  132. <version>1.9.6</version>
  133. </dependency>
  134. </dependencies>
  135. </plugin>
  136. </plugins>
  137. </build>
  138.  
  139. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement