[
https://issues.apache.org/jira/browse/MTOMCAT-210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13811062#comment-13811062
]
Olivier Lamy (*$^¨%`£) commented on MTOMCAT-210:
------------------------------------------------
any project to reproduce?
Because per default dependencies with test scope are not included in the
classloader
> 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 (*$^¨%`£)
> Fix For: moreinfo
>
>
> 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 was sent by Atlassian JIRA
(v6.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]