Author: Romaan,
Last Updated: Jan. 5, 2021, 6:47 a.m.
Maven is a build automation tool used primarily for Java projects. The word maven means "accumulator of knowledge" in Yiddish. Maven addresses two aspects of building software: first, it describes how software is built, and second, it describes its dependencies.
The projects using Maven should have the following directory structure:
NOTICE.txt # Notices and attributions required by libraries that the project depends on
README.txt # Project's readme
pom.xml # Project Object Model file
The following are the maven life cycle management commands in ascending order:
mvn archetype:help # Create project scaffold
mvn validate # Validate the project is correct and all necessary information is available
mvn compile # Compile the project
mvn test # Run unit test cases of the project
mvn package # Package in its distributable format
mvn integration-test # Process and deploy the package if necessary into an environment where integration tests can be run
mvn verify # Run any checks to verify the package is valid and meets quality criteria
mvn install # Install the package into the local repository, for use as a dependency in other projects locally
mvn deploy # Done in an integration or release environment, copies the final package to the remote repository for sharing with other developers and projects
mvn clean # Cleans all the generated binaries
In order to change the source code compiler version, below are the changes in pom.xml inside <project>:
Comments: