[ http://jira.codehaus.org/browse/MOJO-275?page=comments#action_81120 ] Mark Hobson commented on MOJO-275: ----------------------------------
Good spot, I've made RedeployMojo extend AbstractWarCatalinaMojo as per the other context-based goals. The goals that don't extend AbstractWarCatalinaMojo are container-based goals which do not require a war project to operate on, and thus can be executed under any project type. Apologies for taking so long to fix this. BTW, I would close this issue but JIRA doesn't give me the option :) Let me seek an admin.. > tomcat:redeploy is executed for 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
