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
Right click on the project name →
Run As
→Maven Build…
Inside the
Goals
input write the following command:clean install
, in order to skip tests writeclean install -DskipTests
and clickRun
.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).
Right-click on project name →
Show In Local Terminal
→Terminal
.Inside the Terminal write the following command
mvn clean install
, in order to skip tests writemvn clean install -DskipTests
and hit Enter.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.