[ http://jira.codehaus.org/browse/MOJO-275?page=comments#action_57592 ]
Yujin Kim commented on MOJO-275: -------------------------------- Brief investigating of the code revealed that RedeployMojo is extending AbstractCatalinaMojo instead of AbstractWarCatalinaMojo, and AbstractWarCatalinaMojo is the one that checks whether current packaging type is war or not. Looks like there are other mojos who are not a subclass of AbstractWarCatalinaMojo. > 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 > Type: Bug > Reporter: Yujin Kim > > > 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
