You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Loïc Guerrin (JIRA)" <ji...@apache.org> on 2012/10/22 11:58:12 UTC
[jira] [Commented] (MTOMCAT-173) Direct dependencies are not added
to classpath
[ https://issues.apache.org/jira/browse/MTOMCAT-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13481281#comment-13481281 ]
Loïc Guerrin commented on MTOMCAT-173:
--------------------------------------
Hello,
I have the same issue with tomcat7-maven-plugin:2.0. But it's during an integration test with junit. I have the structure below:
/
-- project-domain
-- project-webapp
The module project-domain isn't added to the classpath and the startup of the tomcat fails.
In the maven debug log I see too 'skip adding artifact project-domain as it's in reactors'.
In DefaultClassLoaderEntriesCalculator#calculateClassPathEntries at line 116, the method isInProjectReferences rejects the project-domain as it's in projectReferences of project-webapp.
So is it possible to add a cheap workaround like a configuration parameter 'forceIncludeProjectReferences' in order to add those project references to module classpath?
Thanks.
> Direct dependencies are not added to classpath
> ----------------------------------------------
>
> Key: MTOMCAT-173
> URL: https://issues.apache.org/jira/browse/MTOMCAT-173
> Project: Apache Tomcat Maven Plugin
> Issue Type: Bug
> Components: tomcat6, tomcat7
> Affects Versions: 2.0
> Reporter: Arne Franken
> Assignee: Olivier Lamy (*$^¨%`£)
>
> in DefaultClassLoaderEntriesCalculator#calculateClassPathEntries, direct dependencies are not added, the log message says "skip adding artifact " + artifact.getArtifactId() + " as it's in reactors".
> In my case, it's a jar that is configured as a direct dependency. When the Webapp starts, the Jar is missing from the Classpath and the startup fails.
--
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