Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>fr.fineserv</groupId>
- <artifactId>finessence</artifactId>
- <version>1.0-SNAPSHOT</version>
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
- <!-- DEFAULT SERVER PROPERTIES -->
- <SERVER.host>fineserv.fr</SERVER.host>
- <SERVER.port>22</SERVER.port>
- <SERVER.user>mickael</SERVER.user>
- <SERVER.password>PASSWORD</SERVER.password>
- <SERVER.deployDirectory>//home/minecraft/servers/server1/plugins</SERVER.deployDirectory>
- <SERVER.reload>mc-server1</SERVER.reload>
- </properties>
- <repositories>
- <repository>
- <id>spigot-repo</id>
- <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
- </repository>
- </repositories>
- <dependencies>
- <!--Spigot API-->
- <dependency>
- <groupId>org.spigotmc</groupId>
- <artifactId>spigot-api</artifactId>
- <version>1.11.2-R0.1-SNAPSHOT</version>
- <scope>provided</scope>
- </dependency>
- <!--Bukkit API-->
- <dependency>
- <groupId>org.bukkit</groupId>
- <artifactId>bukkit</artifactId>
- <version>1.11.2-R0.1-SNAPSHOT</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>net.md-5</groupId>
- <artifactId>bungeecord-api</artifactId>
- <version>1.10-SNAPSHOT</version>
- <type>jar</type>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>net.md-5</groupId>
- <artifactId>bungeecord-api</artifactId>
- <version>1.10-SNAPSHOT</version>
- <type>javadoc</type>
- <scope>provided</scope>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <!-- This plugin will generate JAR file -->
- <plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <configuration>
- <archive>
- <manifest>
- <addClasspath>false</addClasspath>
- </manifest>
- </archive>
- <descriptorRefs>
- <descriptorRef>jar-with-dependencies</descriptorRef>
- </descriptorRefs>
- </configuration>
- <executions>
- <execution>
- <id>make-my-jar-with-dependencies</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <!--This plugin will Transfer JAR file to the server and reload Server -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.8</version>
- <executions>
- <execution>
- <phase>install</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <!-- ensure the target directory exists on the Server -->
- <sshexec host="${SERVER.host}" port="${SERVER.port}" username="${SERVER.user}" password="${SERVER.password}"
- trust="true" failonerror="false" verbose="true"
- command="mkdir --parents ${SERVER.deployDirectory}"/>
- <!-- copy the JAR file to the Server -->
- <scp
- file="${project.build.directory}/${project.build.finalName}-jar-with-dependencies.jar"
- todir="${SERVER.user}:${SERVER.password}@${SERVER.host}:${SERVER.deployDirectory}"
- port="${SERVER.port}" trust="true" verbose="true" failonerror="true">
- </scp>
- <!-- reload the Server -->
- <sshexec host="${SERVER.host}" port="${SERVER.port}" username="${SERVER.user}"
- password="${SERVER.password}" trust="true" failonerror="false"
- verbose="true"
- command="screen -S ${SERVER.reload} -X stuff 'reload^M'"/>
- </tasks>
- </configuration>
- </execution>
- </executions>
- <dependencies>
- <dependency>
- <groupId>org.apache.ant</groupId>
- <artifactId>ant-jsch</artifactId>
- <version>1.9.6</version>
- </dependency>
- </dependencies>
- </plugin>
- </plugins>
- </build>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement