Skip to content
Snippets Groups Projects
Verified Commit 0f4cfeb0 authored by David Mehren's avatar David Mehren
Browse files

Use maven-exec-plugin to simplify execution workflow

Just run `mvn package` to compile & run
parent 8685775c
Branches
No related tags found
1 merge request!1feat: Add Maven support
...@@ -10,20 +10,27 @@ ...@@ -10,20 +10,27 @@
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>maven-jar-plugin</artifactId> <artifactId>exec-maven-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration> <configuration>
<archive> <mainClass>de.fossag.Main</mainClass>
<manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<properties> <properties>
<maven.compiler.source>20</maven.compiler.source> <maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>20</maven.compiler.target> <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<exec.mainClass>de.fossag.Main</exec.mainClass> <exec.mainClass>de.fossag.Main</exec.mainClass>
</properties> </properties>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment