You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Olivier Lamy (*$^¨%`£ JIRA)" <ji...@apache.org> on 2013/11/01 11:41:18 UTC
[jira] [Comment Edited] (MTOMCAT-178) additionalClasspathDirs
doesn't seem to be used
[ https://issues.apache.org/jira/browse/MTOMCAT-178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13811162#comment-13811162 ]
Olivier Lamy (*$^¨%`£) edited comment on MTOMCAT-178 at 11/1/13 10:39 AM:
--------------------------------------------------------------------------
<additionalClasspathDir>${project.build.directory}/../../../mits-common-parent/common-ui/src/main/resource</additionalClasspathDir> <additionalClasspathDir>${project.build.directory}/../src/main/webapp</additionalClasspathDir>
So you are using files from other projects?
Are they dependencies of the webapp you are running. In this case, yes jar dependencies win.
was (Author: olamy):
<additionalClasspathDir>${project.build.directory}/../../../mits-common-parent/common-ui/src/main/resource</additionalClasspathDir> <additionalClasspathDir>${project.build.directory}/../src/main/webapp</additionalClasspathDir>
So you are using files from other projects?
Are they dependency of the webapp you are running. In this case, yes jar dependencies win.
> additionalClasspathDirs doesn't seem to be used
> -----------------------------------------------
>
> Key: MTOMCAT-178
> URL: https://issues.apache.org/jira/browse/MTOMCAT-178
> Project: Apache Tomcat Maven Plugin
> Issue Type: Bug
> Components: tomcat7
> Affects Versions: 2.0
> Environment: Maven 3.0.3 / Linux / OpenJDK 7
> Reporter: Craig
> Assignee: Olivier Lamy (*$^¨%`£)
> Fix For: moreinfo
>
>
> Using the plugin like this:
> <plugin>
> <groupId>org.apache.tomcat.maven</groupId>
> <artifactId>tomcat7-maven-plugin</artifactId>
> <version>2.0</version>
> <configuration>
> <additionalClasspathDirs>
> <additionalClasspathDir>${project.build.directory}/../../../mits-common-parent/common-ui/src/main/resource$
> <additionalClasspathDir>${project.build.directory}/../src/main/webapp</additionalClasspathDir>
> </additionalClasspathDirs>
> </configuration>
> </plugin>
> I run Tomcat like this:
> mvn tomcat7:run
> The application starts and runs fine. But, when the classloader loads a resource that is in one of the additionalClasspathDir entries, it loads it from the .war, not from the additionalClasspathDir location. Nothing I do seems to make Tomcat use the additionalClasspathDir entries.
--
This message was sent by Atlassian JIRA
(v6.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org