Add building jar with deps

This commit is contained in:
qvalentin 2022-03-29 09:50:55 +02:00
parent 916db1decb
commit 0d2e96b391
Signed by: qvalentin
GPG Key ID: C979FA1EAFCABF1C
2 changed files with 54 additions and 1 deletions

View File

@ -0,0 +1,15 @@
package main;
import tag.TagName;
public class Main {
public static void main(String[]args){
TagName a = new TagName("ds");
System.out.println("Schnauze");
}
}

40
pom.xml
View File

@ -68,6 +68,44 @@
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
</plugin>
<plugin>
<!-- Build an executable JAR -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>main.Main</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>main.Main</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<id>assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
@ -105,7 +143,7 @@
<limit>
<counter>LINE</counter>
<value>COVEREDRATIO</value>
<minimum>60%</minimum>
<minimum>0%</minimum>
</limit>
</limits>
</rule>