You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Darren Salomons <na...@digid.mailcan.com> on 2008/02/15 17:44:42 UTC
eclipse/wtp/maven classpath issues
Not sure if this is an eclipse question or a side effect of how maven sets up
a WTP project.
What's happening is when I deploy my project to tomcat under WTP the
target/test-classes folder is being put on the classpath before my
target/classes folder. My log4j properties and other properties files in
my src/test/resources get moved into the target/test-classes and take
precedence on the classpath.
I really don't even want the test-classes on the classpath at all.
Any thoughts?
--
View this message in context: http://www.nabble.com/eclipse-wtp-maven-classpath-issues-tp15502968s177p15502968.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: eclipse/wtp/maven classpath issues
Posted by Darren Salomons <na...@digid.mailcan.com>.
I can also confirm that in the org.eclipse.wst.common.component file
generated by the eclipse-plugin that there is no reference to test-classes
in that file.
However in the server.xml generated by WTP/eclipse to launch tomcat it
contains:
<Resources className="org.eclipse.jst.server.tomcat.loader.WtpDirContext"
virtualClasspath="C:\prj\webapp\target\test-classes;C:\prj\webapp\target\classes.....
Darren Salomons wrote:
>
> Not sure if this is an eclipse question or a side effect of how maven sets
> up a WTP project.
>
> What's happening is when I deploy my project to tomcat under WTP the
> target/test-classes folder is being put on the classpath before my
> target/classes folder. My log4j properties and other properties files in
> my src/test/resources get moved into the target/test-classes and take
> precedence on the classpath.
>
> I really don't even want the test-classes on the classpath at all.
>
> Any thoughts?
>
--
View this message in context: http://www.nabble.com/eclipse-wtp-maven-classpath-issues-tp15502968s177p15502980.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org