问题描述
是否有可能使用maven-archetype-webapp原型来生成具有简单目录结构(例如
)的maven webapp? /src
/main
/java
/resources
/webapp
/test
/java
/resources
我假设您的问题是使用maven-archetype-webapp时新项目中缺少java
和test
文件夹.没有使该原型添加这些原型的选项.当然,您可以在创建项目后手动添加它们.
您可能会在以下列表之一中找到其他原型:
- http://myjeeva.com/exclusive-maven-archetype-list.html
- http://docs.codehaus.org/display/MAVENUSER/Archetypes+List
如果没有满足您需求的内容,我建议创建一个自己的原型: http://maven.apache.org/guides/mini/guide-creating-archetypes.html
这很容易,如果您打算多次使用它,那么值得付出努力.
Is there a possibility or a workaroud to use maven-archetype-webapp archetype to generate a maven webapp with plain directory structure like
/src
/main
/java
/resources
/webapp
/test
/java
/resources
I assume that your issue is the missing java
and test
folders in a new project when using maven-archetype-webapp. There are no options to make that archetype to add those. Of course you could add them manually after the project was created.
You may find another archetypes in one of these lists:
- http://myjeeva.com/exclusive-maven-archetype-list.html
- http://docs.codehaus.org/display/MAVENUSER/Archetypes+List
If there is nothing that matches what you need I suggest creating an own archetype: http://maven.apache.org/guides/mini/guide-creating-archetypes.html
It is quite easy and if you plan to use one several times it's probably worth the effort.
这篇关于Maven-archetype-webapp目录结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!