【问题标题】:Build dynamic web projects with maven in eclipse在eclipse中使用maven构建动态web项目
【发布时间】:2011-06-02 10:13:06
【问题描述】:

我需要在 Eclipse 中使用 maven2 运行 Web 项目的分步详细信息。

  1. web.xml 和任何其他资源的放置位置
  2. 在 web.xml 中放入什么
  3. 如何从maven生成war文件

请有人用以上几点帮助我。

【问题讨论】:

    标签: eclipse web-applications maven-2


    【解决方案1】:

    要使用 maven 创建新的 Web 项目,请参阅 http://maven.apache.org/guides/mini/guide-webapp.html

    创建后,使用“mvn eclipse:eclipse”创建一个eclipse项目。

    【讨论】:

    • 或者,如果你使用 m2eclipse(你应该这样做),选择import -> existing maven projects
    • ye.. 但是我的 web.xml 文件应该放在哪里?
    • @Anand 如果您按照指南进行操作,您将看到为您生成的基本 web.xml。根据您的需要进行修改。
    猜你喜欢
    • 2013-12-06
    • 1970-01-01
    • 2011-11-08
    • 2021-06-23
    • 1970-01-01
    • 1970-01-01
    • 2012-01-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多