mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-03-10 05:29:12 +01:00
Put a pom for building into the NoCheatPlus module until knowing better.
This commit is contained in:
parent
ce834675d7
commit
e06e55a752
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?eclipse-pydev version="1.0"?>
|
||||
|
||||
<pydev_project>
|
||||
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
|
||||
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property>
|
||||
</pydev_project>
|
@ -19,12 +19,6 @@
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.8.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.code.maven-replacer-plugin</groupId>
|
||||
<artifactId>maven-replacer-plugin</artifactId>
|
||||
<version>1.4.1</version>
|
||||
<type>maven-plugin</type>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<description>Very basic dependencies that have to be built before commons, no use of Bukkit.
|
||||
|
||||
|
@ -3,11 +3,9 @@
|
||||
|
||||
<!-- Informations -->
|
||||
<groupId>fr.neatmonster</groupId>
|
||||
<artifactId>nocheatplus</artifactId>
|
||||
<name>NoCheatPlus</name>
|
||||
<version>3.9.2</version>
|
||||
<description>Detect and fight the exploitation of various flaws/bugs in Minecraft.</description>
|
||||
<url>http://dev.bukkit.org/server-mods/nocheatplus</url>
|
||||
<artifactId>ncpplugin</artifactId>
|
||||
<name>NCPPlugin</name>
|
||||
<version>static</version>
|
||||
|
||||
<packaging>jar</packaging>
|
||||
|
||||
@ -87,150 +85,28 @@
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<!-- Building -->
|
||||
|
||||
<build>
|
||||
<defaultGoal>clean package</defaultGoal>
|
||||
<directory>../target</directory> <!-- Build it one level up, because it is the one we care about -->
|
||||
<finalName>NoCheatPlus</finalName>
|
||||
<resources>
|
||||
<resource>
|
||||
<targetPath>.</targetPath>
|
||||
<filtering>true</filtering>
|
||||
<directory>..</directory>
|
||||
<includes>
|
||||
<include>LICENSE.txt</include>
|
||||
</includes>
|
||||
</resource>
|
||||
<resource>
|
||||
<targetPath>.</targetPath>
|
||||
<filtering>true</filtering>
|
||||
<directory>src/main/resources</directory>
|
||||
<directory>../NCPPlugin/src/main/resources</directory>
|
||||
<includes>
|
||||
<include>plugin.yml</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.5.1</version>
|
||||
<configuration>
|
||||
<source>1.6</source>
|
||||
<target>1.6</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<version>1.4</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>shade</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<artifactSet>
|
||||
<includes>
|
||||
<include>fr.neatmonster:ncpbuildbase</include>
|
||||
<include>fr.neatmonster:ncpcommons</include>
|
||||
<include>fr.neatmonster:ncpcore</include>
|
||||
<include>fr.neatmonster:ncpcompatbukkit</include>
|
||||
<include>fr.neatmonster:ncpcompatcb2511</include>
|
||||
<include>fr.neatmonster:ncpcompatcb2512</include>
|
||||
<include>fr.neatmonster:ncpcompatcb2545</include>
|
||||
<include>fr.neatmonster:ncpcompatcb2602</include>
|
||||
<include>fr.neatmonster:ncpcompatcb2645</include>
|
||||
<include>fr.neatmonster:ncpcompatcb2691</include>
|
||||
<include>fr.neatmonster:ncpcompatcbdev</include>
|
||||
<!-- <include>fr.neatmonster:ncpplugin</include> -->
|
||||
<!-- <include>fr.neatmonster:nocheatplus-parent</include> -->
|
||||
</includes>
|
||||
</artifactSet>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
||||
<!-- <build>
|
||||
<defaultGoal>clean package</defaultGoal>
|
||||
<sourceDirectory>${basedir}/src/main/java</sourceDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<targetPath>.</targetPath>
|
||||
<filtering>true</filtering>
|
||||
<directory>${basedir}/src/main/resources</directory>
|
||||
<includes>
|
||||
<include>plugin.yml</include>
|
||||
<include>LICENSE.txt</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.5.1</version>
|
||||
<configuration>
|
||||
<source>1.6</source>
|
||||
<target>1.6</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>2.4</version>
|
||||
<configuration>
|
||||
<finalName>NoCheatPlus</finalName>
|
||||
<archive>
|
||||
<addMavenDescriptor>false</addMavenDescriptor>
|
||||
<pomPropertiesFile>false</pomPropertiesFile>
|
||||
<manifest>
|
||||
<addDefaultSpecificationEntries>false</addDefaultSpecificationEntries>
|
||||
<addDefaultImplementationEntries>false</addDefaultImplementationEntries>
|
||||
</manifest>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<version>1.7</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>deploy-build</id>
|
||||
<phase>install</phase>
|
||||
<configuration>
|
||||
<target if="deploy">
|
||||
<property file="password.properties" prefix="password"/>
|
||||
<scp todir="root:${password.value}@nocheatplus.org:/home/Minecraft/plugins/" file="target/NoCheatPlus.jar" sftp="yes" trust="yes" failonerror="no"/>
|
||||
<sshexec host="nocheatplus.org" username="root" password="${password.value}" command="tmux send "reload" C-m" trust="yes" failonerror="no"/>
|
||||
</target>
|
||||
</configuration>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.ant</groupId>
|
||||
<artifactId>ant-jsch</artifactId>
|
||||
<version>1.8.4</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build> -->
|
||||
|
||||
<!-- Properties -->
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<description>Mainly contains the plugin class and the factories.</description>
|
||||
<parent>
|
||||
<groupId>fr.neatmonster</groupId>
|
||||
<artifactId>nocheatplus-parent</artifactId>
|
||||
<version>static</version>
|
||||
</parent>
|
||||
</project>
|
160
NoCheatPlus/pom.xml
Normal file
160
NoCheatPlus/pom.xml
Normal file
@ -0,0 +1,160 @@
|
||||
<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>
|
||||
|
||||
<!-- Informations -->
|
||||
<artifactId>nocheatplus</artifactId>
|
||||
<name>NoCheatPlus</name>
|
||||
<version>3.9.2</version>
|
||||
<description>Detect and fight the exploitation of various flaws/bugs in Minecraft.</description>
|
||||
<url>http://dev.bukkit.org/server-mods/nocheatplus</url>
|
||||
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>fr.neatmonster</groupId>
|
||||
<artifactId>ncpplugin</artifactId>
|
||||
<version>static</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<!-- Building -->
|
||||
|
||||
<build>
|
||||
<defaultGoal>clean package</defaultGoal>
|
||||
<directory>../target</directory> <!-- Build it one level up, because it is the one we care about -->
|
||||
<finalName>NoCheatPlus</finalName>
|
||||
<resources>
|
||||
<resource>
|
||||
<targetPath>.</targetPath>
|
||||
<filtering>true</filtering>
|
||||
<directory>..</directory>
|
||||
<includes>
|
||||
<include>LICENSE.txt</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.5.1</version>
|
||||
<configuration>
|
||||
<source>1.6</source>
|
||||
<target>1.6</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<version>1.4</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>shade</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<artifactSet>
|
||||
<includes>
|
||||
<include>fr.neatmonster:ncpbuildbase</include>
|
||||
<include>fr.neatmonster:ncpcommons</include>
|
||||
<include>fr.neatmonster:ncpcore</include>
|
||||
<include>fr.neatmonster:ncpcompatbukkit</include>
|
||||
<include>fr.neatmonster:ncpcompatcb2511</include>
|
||||
<include>fr.neatmonster:ncpcompatcb2512</include>
|
||||
<include>fr.neatmonster:ncpcompatcb2545</include>
|
||||
<include>fr.neatmonster:ncpcompatcb2602</include>
|
||||
<include>fr.neatmonster:ncpcompatcb2645</include>
|
||||
<include>fr.neatmonster:ncpcompatcb2691</include>
|
||||
<include>fr.neatmonster:ncpcompatcbdev</include>
|
||||
<include>fr.neatmonster:ncpplugin</include>
|
||||
<!-- <include>fr.neatmonster:nocheatplus-parent</include> -->
|
||||
</includes>
|
||||
</artifactSet>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
||||
<!-- <build>
|
||||
<defaultGoal>clean package</defaultGoal>
|
||||
<sourceDirectory>${basedir}/src/main/java</sourceDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<targetPath>.</targetPath>
|
||||
<filtering>true</filtering>
|
||||
<directory>${basedir}/src/main/resources</directory>
|
||||
<includes>
|
||||
<include>plugin.yml</include>
|
||||
<include>LICENSE.txt</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.5.1</version>
|
||||
<configuration>
|
||||
<source>1.6</source>
|
||||
<target>1.6</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>2.4</version>
|
||||
<configuration>
|
||||
<finalName>NoCheatPlus</finalName>
|
||||
<archive>
|
||||
<addMavenDescriptor>false</addMavenDescriptor>
|
||||
<pomPropertiesFile>false</pomPropertiesFile>
|
||||
<manifest>
|
||||
<addDefaultSpecificationEntries>false</addDefaultSpecificationEntries>
|
||||
<addDefaultImplementationEntries>false</addDefaultImplementationEntries>
|
||||
</manifest>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<version>1.7</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>deploy-build</id>
|
||||
<phase>install</phase>
|
||||
<configuration>
|
||||
<target if="deploy">
|
||||
<property file="password.properties" prefix="password"/>
|
||||
<scp todir="root:${password.value}@nocheatplus.org:/home/Minecraft/plugins/" file="target/NoCheatPlus.jar" sftp="yes" trust="yes" failonerror="no"/>
|
||||
<sshexec host="nocheatplus.org" username="root" password="${password.value}" command="tmux send "reload" C-m" trust="yes" failonerror="no"/>
|
||||
</target>
|
||||
</configuration>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.ant</groupId>
|
||||
<artifactId>ant-jsch</artifactId>
|
||||
<version>1.8.4</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build> -->
|
||||
|
||||
<!-- Properties -->
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<groupId>fr.neatmonster</groupId>
|
||||
</project>
|
5
pom.xml
5
pom.xml
@ -20,12 +20,13 @@
|
||||
<module>NCPCompatBukkit</module>
|
||||
<module>NCPCompatCB2511</module>
|
||||
<module>NCPCompatCB2512</module>
|
||||
<module>NCPPlugin</module>
|
||||
<module>NCPCompatCB2545</module>
|
||||
<module>NCPCompatCB2602</module>
|
||||
<module>NCPCompatCB2645</module>
|
||||
<module>NCPCompatCB2691</module>
|
||||
<module>NCPCompatCBDev</module>
|
||||
<module>NCPPlugin</module>
|
||||
<module>NoCheatPlus</module>
|
||||
</modules>
|
||||
|
||||
<repositories>
|
||||
@ -36,7 +37,7 @@
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<description>The pom design has been taken from mbax (GitHub, TODO: link).
|
||||
<description>The initial pom design had been taken from mbax (GitHub, TODO: link).
|
||||
|
||||
TODO: Switch it to an assembly pom + consider using one bukkit version only for compilation? [Downside: the compat part should be the minimal bukkit version supported, though then the plugin would be taken out, so... do it!]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user