Ludwig Magnusson created MTOMCAT-210:
----------------------------------------
Summary: Tomcat7 plugin fails in multi module project when test
dependencies are present
Key: MTOMCAT-210
URL: https://issues.apache.org/jira/browse/MTOMCAT-210
Project: Apache Tomcat Maven Plugin
Issue Type: Bug
Components: tomcat7
Affects Versions: 2.1
Reporter: Ludwig Magnusson
Assignee: Olivier Lamy (*$^¨%`£)
In a multi module project:
parent
- api
- impl
- webapp
Suppose that the impl depends on api with scope compile and on the api tests
with scope test:
<dependency>
<groupId>mygroup</groupId>
<artifactId>api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>mygroup</groupId>
<artifactId>api</artifactId>
<version>${project.version}</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
This will cause tomcat7:run to fail. It says that it cannot find api-tests.jar
even though it should not look for it. The plugin works if one runs "mvn
test-compile tomcat7:run" because now the test classes are included in the
reactor.
This bug is not present in the tomcat6 plugin.
--
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: [email protected]
For additional commands, e-mail: [email protected]