Tutorial: Exporting a Module Using Maven - ColoradoSchoolOfMines/interface_sdk GitHub Wiki
If your project has been set up using Maven, follow these steps to export your module into a JAR:
- Ensure that all changes have been saved.
- Use a command line to navigate to the base folder of your project. This folder should contain your pom.xml.
- Type
mvn package
into the command line. If you have written JUnit tests for your project and not all pass, instead usemvn package -Dmaven.test.skip=true
to skip testing. - Find your JAR in the target/ folder. The JAR name was originally specified by your Maven configuration.
If the build failed for any reason, Maven will print a BUILD_FAILURE message and explain the nature of the error. If it was successful, it will print BUILD_SUCCESS, and your JAR is ready for use.