[ http://jira.codehaus.org/browse/MOJO-275?page=comments#action_81028 ] 
            
Trent Rosenbaum commented on MOJO-275:
--------------------------------------

Yes this is related to http://jira.codehaus.org/browse/MOJO-566 on a small 
level.  The redeploy Mojo works with the reload method and so does not deploy 
code for contexts.  I am reload method works with the path value and this is 
set to /${project.build.finalName}.  I think if this is not set then the 
default will be the ${artifactId-version} value and I think this is why the pom 
projects are being processed by this Mojo goal.

I think rename Mojo as in 566 and then make this work like the deploy mojo.  
The deploy mojo seems to only process the correct project types.

> Maven2 Tomcat Plugin tomcat:redeploy is executed for packaging type POM 
> projects.
> ---------------------------------------------------------------------------------
>
>                 Key: MOJO-275
>                 URL: http://jira.codehaus.org/browse/MOJO-275
>             Project: Mojo
>          Issue Type: Bug
>          Components: tomcat
>            Reporter: Yujin Kim
>         Assigned To: Mark Hobson
>
> I have the following project tree structure
> - Project Parent
> - - component A
> - - component B
> - - Web Component Parent
> - - - Web Component A
> - - - Web Component B
> Web Component Parent is of type POM where I can set a default plugin 
> behaviors etc for all the web based projects.  The pom contains module 
> section to list all the web modules.
> In this set up, I have configured the maven-tomcat-plugin (snapshot 1.0.4) at 
> the web parent project level, and am executing tomcat:redeploy so it can be 
> executed for each module.  However, the execution fails because the plugin is 
> attempting to deploy Web Component Project to the target tomcat instance 
> where it should be ignored. (Other targets/goals seem to skip pom type 
> projects.)
> [INFO] [war:exploded]
> [INFO] Exploding webapp...
> [INFO] Copy webapp resources to 
> /Users/ykim/Developer/workspace/vivakos2/vps-module-parent/target/vps-module-parent-1.0.0-SNAPSHOT
> [INFO] Assembling webapp vps-module-parent in 
> /Users/ykim/Developer/workspace/vivakos2/vps-module-parent/target/vps-module-parent-1.0.0-SNAPSHOT
> [INFO] [tomcat:redeploy]
> [INFO] Redeploying application at 
> http://localhost:8080/vps-module-parent-1.0.0-SNAPSHOT
> [INFO] 
> ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Cannot invoke Tomcat manager: FAIL - No context exists for path 
> /vps-module-parent-1.0.0-SNAPSHOT

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to