How To Build A Project In IDE

  • This guide will show how to build a project and put all the compiled parts together in order to create (build) an executable.

  • This guide can be useful to generate a packaged build output, such as a JAR file or WAR file.

Building A Project Using OpenLegacy IDE

  1. Right click on the project name → Run AsMaven Build…

     

  2. Inside the Goals input write the following command: clean install, in order to skip tests write clean install -DskipTests and click Run.

     

  3. Now inside the target folder, you should see all the generated files related to the build process.

Building A Project Using Maven CLI

In order to use maven CLI from your commanded line\terminal, make sure you have maven installed in your path(https://maven.apache.org/install.html).

  1. Right-click on project name → Show In Local TerminalTerminal.

     

  2. Inside the Terminal write the following command mvn clean install, in order to skip tests write mvn clean install -DskipTests and hit Enter.

     

  3. Now inside the target folder, you should see all the generated files related to the build process.

Note: if the {project_name}/target is already clean do not maven clean the project.