Maven builds based on pom.xml, a build tool for Java. Describes the command.
mvn eclipse:eclipse
mvn eclipse:clean
mvn idea:idea
mvn idea:clean
mvn archetype:generate
mvn archetype:generate -DarchetypeGroupId=${groupId} -DarchetypeArtifactId=${ArtifactId}
Specify the property with -D
. It can also be used to specify other properties.
This area is used in the actual project.
mvn compile
mvn test
Mainly tested with Junit.
mvn package
Specify jar or war in pom.xml.
mvn install
By default, the library (Jar) is installed in the local repository from the maven central repository.
The local repository is in the path set in ~ / .m2 / repository
or $ {Maven home} /conf/settings.xml
.
mvn clean
The CICD environment for Java may be set up. Internally, I just hit the Maven command, so I summarized it this time.
https://qiita.com/KevinFQ/items/e8363ad6123713815e68