标签:
check http://www.cnblogs.com/xdp-gacl/p/3498271.html
mvn archetype:generate -DgroupId=com.java.samples -DartifactId=JavaSamples -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
This maven command will create a Java project with the below details:
TRUE
so that it will scan the remote repositories for all available archetypes. This might take longer time
Maven provides several Archetype artifacts:
Archetype ArtifactIds | Description |
---|---|
maven-archetype-archetype | An archetype to generate a sample archetype project. |
maven-archetype-j2ee-simple | An archetype to generate a simplifed sample J2EE application. |
maven-archetype-mojo | An archetype to generate a sample a sample Maven plugin. |
maven-archetype-plugin | An archetype to generate a sample Maven plugin. |
maven-archetype-plugin-site | An archetype to generate a sample Maven plugin site. |
maven-archetype-portlet | An archetype to generate a sample JSR-268 Portlet. |
maven-archetype-quickstart | An archetype to generate a sample Maven project. |
maven-archetype-simple | An archetype to generate a simple Maven project. |
maven-archetype-site | An archetype to generate a sample Maven site which demonstrates some of the supported document types like APT, XDoc, and FML and demonstrates how to i18n your site. |
maven-archetype-site-simple | An archetype to generate a sample Maven site. |
maven-archetype-webapp | An archetype to generate a sample Maven Webapp project. |
Jacoco plugin:
http://www.javaworld.com/article/2074515/core-java/unit-test-code-coverage-with-maven-and-jacoco.html
标签:
原文地址:http://www.cnblogs.com/morningdew/p/5628295.html