xvhfeng / run-jetty-run

Automatically exported from code.google.com/p/run-jetty-run
0 stars 0 forks source link

how to exclude test scope jar from classpath #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have a web project, it's use m2clipse.Its pom.xml has a dependency like this:
        <dependency>
            <groupId>com.succez.commons</groupId>
            <artifactId>com.succez.commons.webctrls</artifactId>
            <version>1.0.0-SNAPSHOT</version>
            <scope>test</scope>
        </dependency>

when I start run-jetty-run(1.3.1), this dependency is in the 
classpath.Because this dependency use some osgi libraries,it will cause some 
exception.As its scope is "test",I think it should not be included in 
classpath. How to exclude it?

Original issue reported on code.google.com by xtyyumi...@gmail.com on 28 Dec 2011 at 7:34

GoogleCodeExporter commented 9 years ago
Please try our nightly version and uncheck those jar you don't need in the run 
configration first.

http://run-jetty-run.googlecode.com/svn/trunk/updatesite-nightly

The screenshot
http://screencast.com/t/va3bq74pt

I will try to check if we could get the scope and ignore them by default.

Original comment by tonylovejava on 29 Dec 2011 at 3:06

GoogleCodeExporter commented 9 years ago
Hi, I have this problem with 1.3.3 plugin. I cann't see my jar, so cann't 
uncheck in classpath. I run "prjA" that depends on "prjB" that depends "prjC" 
with maven-depends jar-file that must be exclude, because use only for test 
scope.

Denis

Original comment by Denis.Mi...@gmail.com on 2 May 2012 at 8:13

GoogleCodeExporter commented 9 years ago
Currently we didn't support test scope so far.

But it's still very strange about you can't see the jar, 
basically you should see all the jars included by RJR in the web-classpath tab.

Not sure if that's a bug.

There's a workaround is to add those jar to your custom classpath entry in the 
web-classpath tab manually , and then uncheck them. It should work then.

Original comment by tonylovejava on 3 May 2012 at 4:44