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:

  1. Ensure that all changes have been saved.
  2. Use a command line to navigate to the base folder of your project. This folder should contain your pom.xml.
  3. Type mvn package into the command line. If you have written JUnit tests for your project and not all pass, instead use mvn package -Dmaven.test.skip=true to skip testing.
  4. 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.