[
https://issues.apache.org/jira/browse/MTOMCAT-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396869#comment-13396869
]
Hudson commented on MTOMCAT-60:
-------------------------------
Integrated in TomcatMavenPlugin-mvn3.x #166 (See
[https://builds.apache.org/job/TomcatMavenPlugin-mvn3.x/166/])
[MTOMCAT-60] Multiple-War-Deployment in configuration section.
Patch for tomcat7
Submitted by Neale Upstone. (Revision 1351742)
[MTOMCAT-60] Multiple-War-Deployment in configuration section.
extract beans to reuse those with tomcat7 plugin.
Submitted by Neale Upstone. (Revision 1351741)
Result = FAILURE
olamy : http://svn.apache.org/viewvc/?view=rev&rev=1351742
Files :
*
/tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java
*
/tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/Webapp.java
olamy : http://svn.apache.org/viewvc/?view=rev&rev=1351741
Files :
*
/tomcat/maven-plugin/trunk/common-tomcat-maven-plugin/src/main/java/org/apache/tomcat/maven/common/config
*
/tomcat/maven-plugin/trunk/common-tomcat-maven-plugin/src/main/java/org/apache/tomcat/maven/common/config/AbstractWebapp.java
*
/tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/AbstractRunMojo.java
*
/tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/Webapp.java
> Multiple-War-Deployment in configuration section.
> -------------------------------------------------
>
> Key: MTOMCAT-60
> URL: https://issues.apache.org/jira/browse/MTOMCAT-60
> Project: Apache Tomcat Maven Plugin
> Issue Type: Improvement
> Reporter: Joerg Bellmann
> Assignee: Olivier Lamy (*$^¨%`£)
> Priority: Minor
> Fix For: 2.0
>
> Attachments: additionalwebapps-tomcat7-unproven.patch,
> extract-AbstractWebapp.patch, maven-tomcat-plugin.patch.txt,
> patch-for-tomcat6.patch
>
>
> When a user want to deploy multiple webapps with the plugin it uses all
> project-war-dependencies with scope 'tomcat'. Maven 3 shows the following
> message at project-processing:
> {code}
> [INFO] Scanning for projects...
> [WARNING]
> [WARNING] Some problems were encountered while building the effective model
> for de.jbellmann.failsafe:de.jbellmann.failsafe.web:war:0.0.1-SNAPSHOT
> [WARNING] 'dependencies.dependency.scope' for
> org.springframework.samples:mvc-showcase:war must be one of [provided,
> compile, runtime, test, system] but is 'tomcat'. @
> [WARNING]
> [WARNING] It is highly recommended to fix these problems because they
> threaten the stability of your build.
> [WARNING]
> [WARNING] For this reason, future Maven versions might no longer support
> building such malformed projects.
> {code}
> Configuring the additional webapps in the configuration section like this for
> example :
> {code}
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>tomcat-maven-plugin</artifactId>
> <version>1.1-SNAPSHOT</version>
> <executions>
> <execution>
>
> <id>start-tomcat-integration-tests</id>
> <goals>
> <goal>run</goal>
> </goals>
>
> <phase>pre-integration-test</phase>
> <configuration>
> <fork>true</fork>
>
> <addContextWarDependencies>true</addContextWarDependencies>
>
> <additionalWebapps>
> <webapp>
>
> <groupId>org.springframework.samples</groupId>
>
> <artifactId>mvc-showcase</artifactId>
>
> <version>1.0.0-BUILD-SNAPSHOT</version>
>
> <contextPath>/mvc-showcase2</contextPath>
>
> </webapp>
>
> </additionalWebapps>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {code}
> avoids the warnings and makes maven 3 happy.
> As a plus you can configure an contextPath different from the artifactId.
> This solution was inspired by the 'maven-dependency-plugin' and uses some
> code-snippets from it.
> Jörg Bellmann
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]