facebook

Problem executing goal war:inplace when resource(s) change

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #302503 Reply

    Stephen Wick
    Member

    I am using MyEclipse 7.5 right out of the box on a Windows XP 32bit laptop.

    I have created an Eclipse project from a Maven project using the eclipse plugin for Maven. The project has a javanature, webnature, mavennature, and springnature.

    I am trying to configure Eclipse to automatically update the exploded web application when a file is modified.

    Invoking ‘war:inplace’ works fine when I right-click on the pom.xml, and select Run As > “Maven Build…” with the goal set to ‘war:inplace’.

    I have configured Maven4MyEclipse to invoke the following goals when a resource changes: “process-resources resources:testResources war:inplace”. The problem is, I get the following error when MyEclipse tries to run war:inplace after a file changes.

    9/17/09 5:28:42 PM CDT: [INFO] Assembling webapp webapp in C:\Documents and Settings\swick\Workspaces\MyEclipse\com.fmcdistributor\src\main\webapp
    9/17/09 5:28:42 PM CDT: Build errors for com.fmcdistributor; org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal ‘org.apache.maven.plugins:maven-war-plugin:2.0.2:inplace’: Mojo execution failed.

    Can anyone explain why this is happening, and/or how to fix it?

    Thanks.

    Stephen

    #302518 Reply

    Loyal Water
    Member

    Stephen,
    Can you please clarify what exactly you are trying to achieve here?

    #302521 Reply

    Stephen Wick
    Member

    Yeah,

    My Web Project is deployed to a Tomcat server in MyEclipse. I am trying to configure Eclipse to update the deployed webapp whenever a change is made, so that I can test the changes immediately in my web browser.

    Does that make sense?

    Stephen

    #302590 Reply

    Hot deployment only works if the application was deployed using MyEclipse UI (i.e. not Maven goal)

    #302773 Reply

    hubbardr1
    Member

    stephen, this is an interesting idea. We might be trying to solve a similar issue (https://www.genuitec.com/forums/topic/maven2-war-project-not-honoring-pom-dpndncy-scope-on-deploy/&highlight=maven2+war).

    Have you tried adding “-e” to the end of your goals within the launch config? Eg “process-resources resources:testResources war:inplace -e”. This will cause maven to spit out a few more details that might help with tracking down the root cause.

    #303868 Reply

    tplatt
    Member

    This message has not been recovered.

    #303880 Reply

    Riyad Kalla
    Member

    This message has not been recovered.

    #303883 Reply

    tplatt
    Member

    This message has not been recovered.

    #303911 Reply

    Riyad Kalla
    Member

    This message has not been recovered.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Problem executing goal war:inplace when resource(s) change

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