For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 5 replies, 3 voices, and was last updated 19 years, 1 month ago by
Riyad Kalla.
-
AuthorPosts
-
ojacobMemberHi,
I have added MyEclipse configuration files generation in the Maven 2 maven-eclipse-plugin. I use it to configure my projects for MyEclipse and it seems to be working fine (I plan to submit my work as a patch to the Maven team when it is finished and working)
My projects use a standard Maven 2 structure : this seems to be a problem for MyEclipse in the case of a Web project.
Source directories are correctly configured, but when I deploy the Web project to my server (JBoss 4), files under src/main/resources and compiled files of src/main/java are not included.
I have read in the forum that MyEclipse only deploys files under WEB-INF/classes which is empty : Eclipse compiles to the target/classes directory. Is there a way to force MyEclipse to use files under target/classes (default output folder …) and copy them to the deployment location ?
Thanks for your help
Olivier
June 11, 2007 at 12:23 pm #271366
Riyad KallaMemberMy projects use a standard Maven 2 structure : this seems to be a problem for MyEclipse in the case of a Web project.
Yes you are right, the location of the config files seem to be the sticking point.
I have read in the forum that MyEclipse only deploys files under WEB-INF/classes which is empty : Eclipse compiles to the target/classes directory. Is there a way to force MyEclipse to use files under target/classes (default output folder …) and copy them to the deployment location ?
Unfortunately not, what MyEclipse does is take your “web root” directory (default is “WebRoot”) and deploy everything from there and under it out to the application server. Any files that aren’t under WebRoot are not deployed.
Right now the deployer won’t travel out to your output directories and combine them… but now that I think about it, I wonder if that would be a relatively small change on our end that would allow Maven2 to work fairly well with MYEclipse… I’ll file a note for our development team to consider.
June 12, 2007 at 2:23 am #271385
ojacobMemberThanks for your answer Riyad.
I will try to find a workaround that allows me to deploy from MyEclipse.
It would be really great if the MyEclipse deployer could merge the content of the “target/classes” directory in the resulting webapp (MyEclipse is able to copy library jars, so …). I’ll be keep an eye on this point 🙂
Olivier
June 12, 2007 at 8:56 am #271401
Riyad KallaMemberOlivier,
I filed the request and management targetted it for our 6.1 release… our 6.0 release is on the “fast track” so 6.1 shouldn’t be as far off as it sounds. Thanks for all the hard work you are doing with Maven/MyEclipse.July 13, 2007 at 7:45 am #272690
Lutz.StrobelMemberHi guis,
I use maven 2 too. I created the project structure with myeclipse but according to the requirements of maven 2. As the output folder I configured /src/main/webapp/WEB-INF/classes, so that myeclipse uses this directory. Then I enabled the project for the build with maven 2 (with the maven-eclipse-plugin) and set the dependencies.
The result is, that the classes and resources are deployed to the destination but the maven dependencies are not. Maybe that this issue can be solved easier.
LutzJuly 16, 2007 at 12:08 pm #272776
Riyad KallaMemberLutz,
MyEclipse currently doesn’t offer direct Maven2 support. We do have an FAQ entry on the issue here:
https://www.genuitec.com/forums/topic/configuration-how-do-i-get-maven-to-work-with-myeclipse/but other than that, I don’t know enough about Maven2 to help, I’m sorry.
-
AuthorPosts
