Add gitignore and cleanup pom

This commit is contained in:
Alex 2021-04-16 10:26:54 +02:00
parent 1962ff0eec
commit 3ccfca9ecf
2 changed files with 197 additions and 212 deletions

11
.gitignore vendored Normal file
View File

@ -0,0 +1,11 @@
# Java
*.class
*.jar
hs_err_pid*
# Maven
target/
# IntelliJ
.idea
*.iml

398
pom.xml
View File

@ -1,222 +1,196 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.loohp.limbo</groupId> <groupId>com.loohp.limbo</groupId>
<artifactId>Limbo</artifactId> <artifactId>Limbo</artifactId>
<name>Limbo</name> <name>Limbo</name>
<version>0.4.4-ALPHA</version> <version>0.4.4-ALPHA</version>
<description>Standalone Limbo Minecraft Server.</description>
<url>https://github.com/LOOHP/Limbo</url>
<packaging>jar</packaging>
<properties> <description>Standalone Limbo Minecraft Server.</description>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <url>https://github.com/LOOHP/Limbo</url>
<project.build.number></project.build.number> <packaging>jar</packaging>
<project.fullVersion>${project.version}</project.fullVersion>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>com.loohp.limbo.Limbo</mainClass>
</manifest>
<manifestEntries>
<Limbo-Version>${project.version}</Limbo-Version>
</manifestEntries>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>ISO-8859-1</encoding>
</configuration>
</plugin>
<plugin> <properties>
<artifactId>maven-javadoc-plugin</artifactId> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<version>3.2.0</version> <project.build.number></project.build.number>
<configuration> <project.fullVersion>${project.version}</project.fullVersion>
<failOnError>false</failOnError> <maven.compiler.source>1.8</maven.compiler.source>
<encoding>ISO-8859-1</encoding> <maven.compiler.target>1.8</maven.compiler.target>
<doctitle>Limbo JavaDocs</doctitle> </properties>
<windowtitle>Limbo JavaDocs</windowtitle>
<additionalOptions>
<additionalOption>-Xdoclint:none</additionalOption>
</additionalOptions>
</configuration>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<finalName>${project.artifactId}-${project.version}-1.16.5</finalName>
</build>
<profiles> <build>
<profile> <sourceDirectory>src/main/java</sourceDirectory>
<id>jenkins</id> <resources>
<activation> <resource>
<property> <directory>src/main/resources</directory>
<name>env.BUILD_NUMBER</name> <filtering>true</filtering>
</property> </resource>
</activation> </resources>
<properties> <plugins>
<project.build.number>-b${env.BUILD_NUMBER}</project.build.number> <plugin>
<!--<project.fullVersion>${project.version}${project.build.number}</project.fullVersion> --> <artifactId>maven-assembly-plugin</artifactId>
<project.fullVersion>${project.version}</project.fullVersion> <executions>
</properties> <execution>
</profile> <phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>com.loohp.limbo.Limbo</mainClass>
</manifest>
<manifestEntries>
<Limbo-Version>${project.version}</Limbo-Version>
</manifestEntries>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>ISO-8859-1</encoding>
</configuration>
</plugin>
<profile> <plugin>
<id>release-sign-artifacts</id> <artifactId>maven-javadoc-plugin</artifactId>
<activation> <version>3.2.0</version>
<property> <configuration>
<name>performRelease</name> <failOnError>false</failOnError>
<value>true</value> <encoding>ISO-8859-1</encoding>
</property> <doctitle>Limbo JavaDocs</doctitle>
</activation> <windowtitle>Limbo JavaDocs</windowtitle>
<properties> <additionalOptions>
<project.fullVersion>${project.version}</project.fullVersion> <additionalOption>-Xdoclint:none</additionalOption>
</properties> </additionalOptions>
<build> </configuration>
<plugins> <executions>
<plugin> <execution>
<groupId>org.apache.maven.plugins</groupId> <phase>install</phase>
<artifactId>maven-source-plugin</artifactId> <goals>
<version>3.2.1</version> <goal>aggregate</goal>
<configuration> </goals>
<encoding>${project.build.sourceEncoding}</encoding> </execution>
</configuration> </executions>
<executions> </plugin>
<execution> </plugins>
<id>attach-sources</id> <finalName>${project.artifactId}-${project.version}-1.16.5</finalName>
<goals> </build>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin> <profiles>
<groupId>org.apache.maven.plugins</groupId> <profile>
<artifactId>maven-javadoc-plugin</artifactId> <id>jenkins</id>
<version>3.2.0</version> <activation>
<configuration> <property>
<encoding>${project.build.sourceEncoding}</encoding> <name>env.BUILD_NUMBER</name>
</configuration> </property>
<executions> </activation>
<execution> <properties>
<id>attach-javadocs</id> <project.build.number>-b${env.BUILD_NUMBER}</project.build.number>
<goals> <!--<project.fullVersion>${project.version}${project.build.number}</project.fullVersion> -->
<goal>jar</goal> <project.fullVersion>${project.version}</project.fullVersion>
</goals> </properties>
</execution> </profile>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<repositories> <profile>
<repository> <id>release-sign-artifacts</id>
<id>jitpack.io</id> <activation>
<url>https://jitpack.io</url> <property>
</repository> <name>performRelease</name>
</repositories> <value>true</value>
</property>
</activation>
<properties>
<project.fullVersion>${project.version}</project.fullVersion>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies> <repositories>
<dependency> <repository>
<groupId>org.apache.commons</groupId> <id>jitpack.io</id>
<artifactId>commons-lang3</artifactId> <url>https://jitpack.io</url>
<version>3.11</version> </repository>
</dependency> </repositories>
<dependency>
<groupId>com.github.Querz</groupId>
<artifactId>NBT</artifactId>
<version>5.5</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.5</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.26</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-chat</artifactId>
<version>1.16-R0.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi</artifactId>
<version>1.18</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jline</groupId>
<artifactId>jline</artifactId>
<version>3.16.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>jline</groupId>
<artifactId>jline</artifactId>
<version>2.11</version>
<scope>compile</scope>
</dependency>
</dependencies>
<dependencies>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.11</version>
</dependency>
<dependency>
<groupId>com.github.Querz</groupId>
<artifactId>NBT</artifactId>
<version>5.5</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.5</version>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.26</version>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-chat</artifactId>
<version>1.16-R0.3</version>
</dependency>
<dependency>
<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi</artifactId>
<version>1.18</version>
</dependency>
<dependency>
<groupId>org.jline</groupId>
<artifactId>jline</artifactId>
<version>3.16.0</version>
</dependency>
<dependency>
<groupId>jline</groupId>
<artifactId>jline</artifactId>
<version>2.11</version>
</dependency>
</dependencies>
</project> </project>