I know Maven pretty well, but I usually work with Netbeans, which makes it quite easy to deploy Java EE applications - and handle hot deployment of any changes.
The
I suppose that you've installed all required plugins to the Eclipse already. As @Michał Politowski mentions, M2E, M2E-WTP and so on.
Go to menu Window--->Preferences
.
At the Preferences window
, select Maven---->Archetypes
,
On the Right Panel
, click Add Remote Catalog...
button.
At the Remote Archetype Catalog windows
enter the following: -
Catalog file
: http://repo.maven.apache.org/maven2Description
Maven CentralAdd more remote catalog.
Catalog file
: http://download.java.net/maven/2Description
Java.NetClick OK
to apply change.
File ---> New ---> Other
.Select Wizard Windows
, select Maven ---> Project
.New Maven Project
.Filter
textbox, enter pom
org.codehaus.mojo.archetypes:pom-root:1.1
New ---> Other
.Select Wizard Windows
, select Maven ---> Project
.New Maven Project
.Parent Project
= MY PARENT
Module name
, e.g. my-ear, my-ejb or my-web. Then click Next
button,Filter
textbox, enter some of the following
org.codehaus.mojo.archetypes:webapp-javaee6:1.5
org.codehaus.mojo.archetypes:ejb-javaee6:1.5
org.codehaus.mojo.archetypes:ear-javaee6:1.5
I've used both NetBeans 7.x and Eclipse Juno together. When I move to Eclipse I've face the issue as same as your. Then I've captured the steps above from NetBeans logs one by one, and do the same thing manually by using Eclipse.
I hope this may help.
I would make one small change:
Create the child project
Right click at the parent project and select New ---> Other.
At the Select Wizard Windows, select Maven ---> **Maven Module**
This way it will automatically recognize this as a child project of the parent.