- This topic has 2 replies, 2 voices, and was last updated 19 years, 4 months ago by Alex Hamer.
-
AuthorPosts
-
Alex HamerMemberI know maven is not supported yet in Myeclipse. Im sure people are still using Maven and myeclipse separately though. Is so, how are you doing it?
I just recently installed Maven, setup the recommended structure in MyEclipse, and created a project.xml. The directory structure that Maven suggests doesnt really conform to the structure that myeclipse uses. For example, Im using a directory structure that I got from a book to setup a webapp with maven
project.xml
project.properties
maven.xml
model
—-project.xml
—-project.properties
—-maven.xml
—-src
———java
———test
web
—-project.xml
—-project.properties
—-maven.xml
—-src
———java
———webapp
—————-WEB-INF1) Is this the directory structure you guys use? Im going to be creating a struts application.
2) By default, adding a package in Myeclipse will always default to
src directory where all packages are located. I cant add my packages under the maven structure (ex. web->src->java). I tried moving it over to that directory in myeclipse and its fine but doesnt treat it as a package under the Package Explorer window. How can this be done properly?Please help. Im new to Maven and would like to use it even if its not yet supported with MyEclipse.
Riyad KallaMember1) Not quiet:
http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-30.html#1112) This structure is ALMOST MyEclipse friendly, the only thing that you should change to make it friendlier is:
1) have a single common /src dir at the same level as your model and web dirs (in the root of the project). All classes and resources go in here.
2) Have a single output dir be your /web/WEB-INF/classes dirAnd that should be it. All you are trying to do is make sure everything under Web is a valid web project.
Alex HamerMemberThanks. I will just split up the model into its own myeclipse project and another one for the web. This way, I will always have a common /src dir. I believe this works well with Maven as well.
-
AuthorPosts