facebook

Deployment problem (with Maven2 generated config)

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #271353 Reply

    ojacob
    Member

    Hi,

    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

    #271366

    Riyad Kalla
    Member

    My 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.

    #271385

    ojacob
    Member

    Thanks 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

    #271401

    Riyad Kalla
    Member

    Olivier,
    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.

    #272690

    Lutz.Strobel
    Member

    Hi 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.
    Lutz

    #272776

    Riyad Kalla
    Member

    Lutz,
    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.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Deployment problem (with Maven2 generated config)

You must be logged in to post in the forum log in