Using maven for a dynamic web project

寵の児 提交于 2019-12-02 08:46:42

I think you have a problem in deployment assembly management under eclipse, try:

  1. Open the project's properties (e.g., right-click on the project's name in the project explorer and select "Properties").
  2. Select "Deployment Assembly".
  3. Click the "Add..." button on the right margin.
  4. Click the "Add..." button on the right margin. 5.Select "Java Build Path Entries" from the menu of Directive Type and click "Next".
  5. Select "Maven Dependencies" from the Java Build Path Entries menu and click "Finish".

First you need to add Struts2 and test it if it works, then try to add Sightmeth and/or Hibernate plugins. See how to Create Struts 2 Web Application Using Maven To Manage Artifacts and To Build The Application.

The pom.xml for core struts2 application requires only

<dependency>
    <groupId>org.apache.struts</groupId>
    <artifactId>struts2-core</artifactId>
    <version>X.X.X.X</version>
</dependency>

and it will download all other dependencies. Integrating with other frameworks use plugins and don't mess up dependencies that are duplicated.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!