Compare commits

..

No commits in common. "20e45c2243e1309f1911ad69f2804e6c95c89483" and "8239a51122669cd981968c89e32f45e25e88df2c" have entirely different histories.

2 changed files with 110 additions and 127 deletions

View File

@ -22,10 +22,10 @@ git clone https://git.worlio.com/Worlds_Remergence_Project/WorldsOrganizer.git
cd Worlds-Organizer
```
2. Run Maven
2. Run the Maven Build command
```
mvn package
mvn build
```
The jar will be located within the target folder.

51
pom.xml
View File

@ -1,8 +1,7 @@
<?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">
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>org.worlio</groupId>
@ -61,6 +60,7 @@
<build>
<plugins>
<!--Compiler settings-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
@ -70,51 +70,34 @@
<target>8</target>
</configuration>
</plugin>
<!--Run junit tests using maven test command-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M3</version>
</plugin>
<!--Execute main using mvn tasks compile, exec:java-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>write-project-properties</goal>
</goals>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<outputFile>${project.build.outputDirectory}/project.properties</outputFile>
<mainClass>org.worlio.WorldsOrganizer.WorldsOrganizer</mainClass>
</configuration>
</execution>
</executions>
</plugin>
<!--Create jar using mvn tasks compile, assembly:single-->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<version>3.1.1</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>org.worlio.WorldsOrganizer.WorldsOrganizer</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<archive>
<manifest>
<mainClass>org.worlio.WorldsOrganizer.WorldsOrganizer</mainClass>
<mainClass>org.worlio.WorldsOrganizer.Main</mainClass>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>