You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2013/01/30 11:51:13 UTC

[jira] [Commented] (MTOMCAT-197) tomcat7:undeploy goal not ignoring non-war projects

    [ https://issues.apache.org/jira/browse/MTOMCAT-197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13566365#comment-13566365 ] 

Hudson commented on MTOMCAT-197:
--------------------------------

Integrated in TomcatMavenPlugin-mvn3.x #227 (See [https://builds.apache.org/job/TomcatMavenPlugin-mvn3.x/227/])
    [MTOMCAT-197] tomcat7:undeploy goal not ignoring non-war projects (Revision 1430966)

     Result = SUCCESS
olamy : http://svn.apache.org/viewvc/?view=rev&rev=1430966
Files : 
* /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/deploy/UndeployMojo.java

                
> tomcat7:undeploy goal not ignoring non-war projects
> ---------------------------------------------------
>
>                 Key: MTOMCAT-197
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-197
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>          Components: tomcat7
>    Affects Versions: 2.1
>            Reporter: Glen Mazza
>            Assignee: Olivier Lamy (*$^¨%`£)
>             Fix For: 2.1
>
>
> Hello, the new tomcat7:undeploy goal is not ignoring non-war projects (<packaging>anything but war</packaging>) (like tomcat7:deploy and tomcat:undeploy already correctly do), creating errors and extra WAR deletion attempts.  Whatever config you do to tomcat7:deploy that causes it to skip non-war projects needs to be added to this goal as well.
> Using this project w/2.1-SNAPSHOT of Maven Tomcat plugin: 
> https://github.com/gmazza/blog-samples/tree/master/web_service_tutorial
> running tomcat:undeploy from the base folder should cause it to be ignored for three poms (base,client, and service) while activated only for war.  Compare:
> Codehaus tomcat:undeploy (good, correctly skipping non-war projects):
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Tutorial: Basic WSDL-First Web Service 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] Skipping non-war project
> [INFO]                                                                         
> [INFO] ------------------------------------------------------------------------
> [INFO] Building -- Web Service Provider 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- tomcat-maven-plugin:1.1:undeploy (default-cli) @ web-service-tutorial-service ---
> [INFO] Skipping non-war project
> [INFO]                                                                         
> [INFO] ------------------------------------------------------------------------
> [INFO] Building -- Service WAR file 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- tomcat-maven-plugin:1.1:undeploy (default-cli) @ web-service-tutorial-war ---
> [INFO] Undeploying application at http://localhost:8080/doubleit
> [INFO] OK - Undeployed application at context path /doubleit
> [INFO]                                                          
> Apache tomcat7:deploy (good, correctly skipping non-war projects):
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Tutorial: Basic WSDL-First Web Service 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] Skipping non-war project
> [INFO]                                                                         
> [INFO]                                                                         
> [INFO] ------------------------------------------------------------------------
> [INFO] Building -- Web Service Provider 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- tomcat7-maven-plugin:2.1-SNAPSHOT:deploy (default-cli) @ web-service-tutorial-service ---
> [INFO] Skipping non-war project
> [INFO] ------------------------------------------------------------------------
> [INFO] Building -- Service WAR file 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> Uploading: http://localhost:8080/manager/text/deploy?path=%2Fdoubleit
> Uploaded: http://localhost:8080/manager/text/deploy?path=%2Fdoubleit (7723 KB at 66574.0 KB/sec)
> -- tomcat7:undeploy (bad, always running undeploy )
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Tutorial: Basic WSDL-First Web Service 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] FAIL - No context exists for path /web-service-tutorial-1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] Building -- Web Service Provider 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] Undeploying application at http://localhost:8080/doubleit
> [INFO] OK - Undeployed application at context path /doubleit
> [INFO] ------------------------------------------------------------------------
> [INFO] Building -- Service WAR file 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] --- tomcat7-maven-plugin:2.1-SNAPSHOT:undeploy (default-cli) @ web-service-tutorial-war ---
> [INFO] Undeploying application at http://localhost:8080/doubleit
> [INFO] FAIL - No context exists for path /doubleit
> [INFO] ------------------------------------------------------------------------
> [INFO] Building -- SOAP Client 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- tomcat7-maven-plugin:2.1-SNAPSHOT:undeploy (default-cli) @ web-service-tutorial-client ---
> [INFO] Undeploying application at http://localhost:8080/web-service-tutorial-client-1.0-SNAPSHOT
> [INFO] FAIL - No context exists for path /web-service-tutorial-client-1.0-SNAPSHOT

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org