zoukankan      html  css  js  c++  java
  • maven

    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:

    • groupId will be com.java.samples, representing the package.
    • artifactId will be JavaSamples (on the build, JavaSamples.jar will be created)
    • archetypeArtifactId is nothing but the template used for creating this Java project.
    • interactiveMode is used when the developer is aware of the actual spelling of the artifact id. In the above case maven-archetype-quickstart is the one which is used and it is the proper one. If developer is not aware of this then the interactiveMode is set to be TRUE so that it will scan the remote repositories for all available archetypes. This might take longer time

    Provided Archetypes

    Maven provides several Archetype artifacts:

    Archetype ArtifactIdsDescription
    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

      

  • 相关阅读:
    不可错过的几款GitHub开源项目
    Android OTG之USB转串口模块通讯
    Multiple dex files define Lokhttp3/internal/wsWebSocketProtocol
    npm install安装依赖包失败
    Jquery 添加删除属性、添加删除class、添加删除Css(转载)
    jquery 获取一个元素的坐标位置
    Axure9 最新版的授权码(转)
    js实现上移 下移 置顶 置底操作
    iframe子页面获取父页面元素和window对象
    window.onresize与$(window).resize()的用法
  • 原文地址:https://www.cnblogs.com/morningdew/p/5628295.html
Copyright © 2011-2022 走看看