diff --git a/README.md b/README.md index 65671f6a7c1bc9491dd5510e7f7f620775753daf..8065859025f26787d04b3827768c54ed9eeb48fa 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ mvn clean package ### Utiliser le programme ``` -java -jar FlopBox.jar +java -jar target/FlopBox.jar ``` ### Exécuter les tests diff --git a/pom.xml b/pom.xml index 493ed0d71d9c45c41ef921e6e5f3379eda73ee50..292d21cf54522857275fab511bb360df2ae5ec8e 100644 --- a/pom.xml +++ b/pom.xml @@ -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>