Maven learn review
Today I spend some free time learning how to use Maven to manage the dependencies and create project’s structure. This posts will continue to be updated.
Basic instructions
mvn clean compilewill generate target folder, which contains the class files generated by dependencies.mvn clean testwill compile and add Junit test module. Need to add junit dependencies to pom.xml first.mvn clean packagewill generate jar file of your project.mvn clean installwill generate your project into the local repository and let other projects be able to depend on it.Write pom.xml
Write groupId as package name, ArtifactId as project name. Then add dependencies to the<dependencies></dependencies>block.