zoukankan      html  css  js  c++  java
  • maven2创建的archetypeArtifactId类型

    看maven-definitive-guide到第五章了,发现maven可以创建不少类型的demo,只要输入:
    mvn archetype:create就可以
    不过,创建的同时需要archetypeArtifactId这个参数来识别,不过不太清楚有什么类型,只知道默认不填是maven-archetype-quickstart ,web是maven-archetype-webapp
    发现有更简单的方法,只要输入mvn archetype:generate
    就会将所有可用的类型显示,并且让你自己选,输出如下:
    1: internal -> appfuse-basic-jsf (AppFuse archetype for creating a web application with Hibernate, Spring and JSF)
    2: internal -> appfuse-basic-spring (AppFuse archetype for creating a web application with Hibernate, Spring and Spring MVC)
    3: internal -> appfuse-basic-struts (AppFuse archetype for creating a web application with Hibernate, Spring and Struts 2)
    4: internal -> appfuse-basic-tapestry (AppFuse archetype for creating a web application with Hibernate, Spring and Tapestry 4)
    5: internal -> appfuse-core (AppFuse archetype for creating a jar application with Hibernate and Spring and XFire)
    6: internal -> appfuse-modular-jsf (AppFuse archetype for creating a modular application with Hibernate, Spring and JSF)
    7: internal -> appfuse-modular-spring (AppFuse archetype for creating a modular application with Hibernate, Spring and Spring MVC)
    8: internal -> appfuse-modular-struts (AppFuse archetype for creating a modular application with Hibernate, Spring and Struts 2)
    9: internal -> appfuse-modular-tapestry (AppFuse archetype for creating a modular application with Hibernate, Spring and Tapestry 4)
    10: internal -> maven-archetype-j2ee-simple (A simple J2EE Java application)
    11: internal -> maven-archetype-marmalade-mojo (A Maven plugin development project using marmalade)
    12: internal -> maven-archetype-mojo (A Maven Java plugin development project)
    13: internal -> maven-archetype-portlet (A simple portlet application)
    14: internal -> maven-archetype-profiles ()
    15: internal -> maven-archetype-quickstart ()
    16: internal -> maven-archetype-site-simple (A simple site generation project)
    17: internal -> maven-archetype-site (A more complex site project)
    18: internal -> maven-archetype-webapp (A simple Java web application)
    19: internal -> struts2-archetype-starter (A starter Struts 2 application with Sitemesh, DWR, and Spring)
    20: internal -> struts2-archetype-blank (A minimal Struts 2 application)
    21: internal -> struts2-archetype-portlet (A minimal Struts 2 application that can be deployed as a portlet)
    22: internal -> struts2-archetype-dbportlet (A starter Struts 2 portlet that demonstrates a simple CRUD interface with db backing)
    23: internal -> struts2-archetype-plugin (A Struts 2 plugin)
    24: internal -> shale-archetype-blank (A blank Shale web application with JSF)
    25: internal -> maven-adf-archetype (Archetype to ease the burden of creating a new application based with ADF)
    26: internal -> data-app (A new Databinder application with sources and resources.)
    27: internal -> jini-service-archetype (Archetype for Jini service project creation)
    28: internal -> softeu-archetype-seam (JSF+Facelets+Seam Archetype)
    29: internal -> softeu-archetype-seam-simple (JSF+Facelets+Seam (no persistence) Archetype)
    30: internal -> softeu-archetype-jsf (JSF+Facelets Archetype)
    31: internal -> jpa-maven-archetype (JPA application)
    32: internal -> spring-osgi-bundle-archetype (Spring-OSGi archetype)
    33: internal -> confluence-plugin-archetype (Atlassian Confluence plugin archetype)
    34: internal -> maven-archetype-har (Hibernate Archive)
    35: internal -> maven-archetype-sar (JBoss Service Archive)
    36: internal -> wicket-archetype-quickstart (A simple Apache Wicket project)
    接下去你只要输入序号就可以生成了。
    查看官网goal的时候发现,archetype:create这个goal似乎已经被废弃了,而新的使用archetype:generate来代替。依旧可以使用archetypeArtifactId参数来识别sample

  • 相关阅读:
    WPF自定义路由事件
    一文看懂微服务背后的技术演进与应用实践
    云原生消息、事件、流超融合平台——RocketMQ 5.0 初探
    KubeVela 1.1 发布,开启混合环境应用交付新里程碑
    Facebook宕机背后,我们该如何及时发现DNS问题
    Apache Flink 在汽车之家的应用与实践
    新一代容器平台ACK Anywhere,来了
    Serverless 工程实践 | Serverless 应用优化与调试秘诀
    OpenKruise 如何实现应用的可用性防护?
    国家网络安全宣传周:勒索病毒利如刀,上网备好技能包
  • 原文地址:https://www.cnblogs.com/xiziyin/p/1608239.html
Copyright © 2011-2022 走看看