In this repo, you can clean and build any MAVEN project with the help of a button in a JAVA GUI.
Maven is a build automation tool used primarily for Java projects. Maven can also be used to build and manage projects written in C#, Ruby, Scala, and other languages. The Maven project is hosted by the Apache Software Foundation, where it was formerly part of the Jakarta Project. Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.
One of them belongs to the maven project (my-app) and the other is the gui that belongs to the desktop application (my-app-desktop).
The command line is opened with the help of a button in the desktop application designed in the gui.
- mvn claen compile test package
You can also easily call not only one maven project, but also multiple maven projects or any java class.
Of course, in order to run all these operations on the command line, you need to create the following settings in the system variables.
NOTE : While making all these adjustments, it varies according to the versions of the java and maven libraries available on your system.
- JAVA_HOME = C:\Program Files\Java\jdk1.8.0_201
- JDK_HOME = %JAVA_HOME%\bin
- M2_HOME = C:\apache-maven-3.6.0
- MAVEN_BIN = %M2_HOME%\bin
- MAVEN_HOME = %M2_HOME%
- %M2_HOME%
- %JDK_HOME%