Create complete EAR Project with Maven and Eclipse Helios

前端 未结 2 844
隐瞒了意图╮
隐瞒了意图╮ 2020-12-05 08:03

I read some articles about how to set up eclipse and maven to create a new empty ear project but all solutions weren\'t complete or are to old.

I believe that I need

2条回答
  •  囚心锁ツ
    2020-12-05 08:26

    Creating the projects via console and importing them via m2eclipse would be the best way, as you can read it in the comments of your question.

    Start off with this line in your console

    mvn archetype:generate
    

    Then use the archetype maven-archetype-j2ee-simple

    This will generate you a project structure for ejb, ear and web projects. Otherwise you can create 3 simple projects maven-archetype-quickstart on your own and add the concering plugins

    • maven-ear-plugin
    • maven-ejb-plugin
    • maven-war-plugin

    Here is another post, handling your problem: Maven2: Best practice for Enterprise Project (EAR file)

    Another nice example you can find here

提交回复
热议问题