Maven-archetype-webapp目录结构? [英] Maven-archetype-webapp Directory Structure?

查看:472
本文介绍了Maven-archetype-webapp目录结构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能使用maven-archetype-webapp原型来生成具有简单目录结构(例如

)的maven webapp?

 /src

    /main

        /java 
        /resources 
        /webapp 

    /test 
        /java 
        /resources 

我假设您的问题是使用maven-archetype-webapp时新项目中缺少javatest文件夹.没有使该原型添加这些原型的选项.当然,您可以在创建项目后手动添加它们.

您可能会在以下列表之一中找到其他原型:

如果没有满足您需求的内容,我建议创建一个自己的原型: 解决方案

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:

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目录结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆