Reputation: 539
My need is to cretae a project whose structure is :
Java_resources/src/main/java
Java_resources/src/test/java
and all the web content is under:
/WebContent
I tried to first create an Eclipse Dynamic Web Project, but it only create:
/src and /WebContent
And when I create a Maven project, it only create
Java_resources/src/main/java
Java_resources/src/test/java
and no WebContent
Is there any way to have a structure respecting the Maven structure and the "Dynamic Web project" ?
Upvotes: 0
Views: 5886
Reputation: 553
You can create a maven project and convert it to a eclipse project using command line:
mvn eclipse:eclipse
In case you want a web tools project you can add an extra argument:
mvn eclipse:eclipse -Dwtpversion=2.0
Source: http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html
Upvotes: 2
Reputation: 18430
No, don't break convention. Use the folder structure Maven dictactes in a WAR project type. Install m2eclipse, this will handle everything for you.
Upvotes: 2