Skip to content
Snippets Groups Projects
Commit 37039ae0 authored by Fabio Vandewaeter's avatar Fabio Vandewaeter
Browse files

pom et README pour faire un fat JAR

parent 200eb384
No related branches found
No related tags found
1 merge request!1Dev
......@@ -26,7 +26,7 @@ mvn clean package
### Utiliser le programme
```
java -jar FlopBox.jar
java -jar target/FlopBox.jar
```
### Exécuter les tests
......
......@@ -73,6 +73,22 @@
<mainClass>fil.sr2.flopbox.Main</mainClass>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.2</version>
......@@ -82,7 +98,6 @@
<mainClass>fil.sr2.flopbox.Main</mainClass>
</manifest>
</archive>
<outputDirectory>${project.basedir}</outputDirectory>
</configuration>
</plugin>
</plugins>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment