Sfoglia il codice sorgente

pom.xml update

Made the maven build work.
Tankernn 8 anni fa
parent
commit
49049edfe1
1 ha cambiato i file con 58 aggiunte e 53 eliminazioni
  1. 58 53
      pom.xml

+ 58 - 53
pom.xml

@@ -1,54 +1,59 @@
-<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>eu.tankernn.accountmanager</groupId>
-  <artifactId>eu.tankernn.accountmanager</artifactId>
-  <version>1.0.0</version>
-  <name>Account Manager</name>
-  <description>A super-simple account management system.</description>
-  
-  <dependencies>
-	<!-- https://mvnrepository.com/artifact/org.json/json -->
-	<dependency>
-	    <groupId>org.json</groupId>
-	    <artifactId>json</artifactId>
-	    <version>20160810</version>
-	</dependency>
-  </dependencies>
-  
-  <build>
-  	<finalName>${project.artifactId}-${project.version}.${build.number}</finalName>
-    <sourceDirectory>src</sourceDirectory>
-    <plugins>
-      <plugin>
-        <artifactId>maven-assembly-plugin</artifactId>
-        <executions>
-        	<execution>
-        		<phase>package</phase>
-        		<goals>
-        			<goal>single</goal>
-        		</goals>
-        		<configuration>
-		          <archive>
-		          	<manifest>
-		          		<addClasspath>true</addClasspath>
-		          		<mainClass>eu.tankernn.accounts.frame.MainFrame</mainClass>
-		          	</manifest>
-		          	<manifestEntries>
-		          		<Implementation-Version>${build.number}</Implementation-Version>
-		          	</manifestEntries>
-		          </archive>
-		          <finalName>${project.build.finalName}</finalName>
-		          <appendAssemblyId>false</appendAssemblyId>
-		        </configuration>
-        	</execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-  
-  <properties>
-  	<maven.compiler.source>1.8</maven.compiler.source>
-  	<maven.compiler.target>1.8</maven.compiler.target>
-  	<build.number>SNAPSHOT</build.number>
-  </properties>
+<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>eu.tankernn.accountmanager</groupId>
+	<artifactId>eu.tankernn.accountmanager</artifactId>
+	<version>1.0.0</version>
+	<name>Account Manager</name>
+	<description>A super-simple account management system.</description>
+
+	<dependencies>
+		<!-- https://mvnrepository.com/artifact/org.json/json -->
+		<dependency>
+			<groupId>org.json</groupId>
+			<artifactId>json</artifactId>
+			<version>20160810</version>
+		</dependency>
+	</dependencies>
+
+	<build>
+		<finalName>${project.artifactId}-${project.version}.${build.number}</finalName>
+		<sourceDirectory>src</sourceDirectory>
+		<plugins>
+			<plugin>
+				<artifactId>maven-assembly-plugin</artifactId>
+				<executions>
+					<execution>
+						<phase>package</phase>
+						<goals>
+							<goal>single</goal>
+						</goals>
+					</execution>
+				</executions>
+				<configuration>
+					<finalName>${project.build.finalName}</finalName>
+					<descriptorRefs>
+						<descriptorRef>jar-with-dependencies</descriptorRef>
+					</descriptorRefs>
+					<archive>
+						<manifest>
+							<addClasspath>true</addClasspath>
+							<mainClass>eu.tankernn.accounts.frame.MainFrame</mainClass>
+						</manifest>
+						<manifestEntries>
+							<Implementation-Version>${build.number}</Implementation-Version>
+						</manifestEntries>
+					</archive>
+					<finalName>${project.build.finalName}</finalName>
+					<appendAssemblyId>false</appendAssemblyId>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
+
+	<properties>
+		<maven.compiler.source>1.8</maven.compiler.source>
+		<maven.compiler.target>1.8</maven.compiler.target>
+		<build.number>SNAPSHOT</build.number>
+	</properties>
 </project>