xvhfeng / run-jetty-run

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

maven dependency issue #133

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
User report Eclipse 3.7 (Indigo Service Release 1, Indigo Service Release 1 )  
get wrong classpath with "provided" scope,
but it works in my 3.6 environment with older M2E. 

Have to test it with 3.7 and its built-in M2E.

Projects here.
http://zkats.googlecode.com/svn/trunk/
zats-common/
zats-mimic/
zats-mimic-ext6/    #load unexpected zk5 jars.

There's a workaround now is add those jars unneed to custom classpath and 
"uncheck" them.

(Waiting for reproduce.)

Original issue reported on code.google.com by tonylovejava on 23 Mar 2012 at 7:39

GoogleCodeExporter commented 9 years ago
I have similar issue with the same configuration (Eclipse 3.7 SR1)
To be more specific, if I have a web project A, java project B
A has a maven dependency on B, B has several maven dependencies on other Maven 
artifacts which has "provided" scope.

As a result, the artifacts having "provided" scope are mistakenly added to web 
app classpath only if I open project B in Eclipse workspace. If I close project 
B in Eclipse workspace, the classpath becomes correct.

Please take a look.

Original comment by olive...@gmail.com on 19 May 2012 at 4:49

GoogleCodeExporter commented 9 years ago
I have an issue maybe related to this one (Eclipse Juno 4.2 , m2e 1.1.0).

All the jar with scope "provided" and "test" are included in the classpath even 
if the plugin WebClasspath tab doesn't contain them. Moreover, I have a version 
of asm which is omitted by Maven in version 1.5.3 because of an earlier version 
3.1 that's still in the classloader printed at startup in the console.

I must go back to maven-jetty-plugin while I find this plugin very usefull...

Original comment by guillaum...@gmail.com on 25 Sep 2012 at 4:44

GoogleCodeExporter commented 9 years ago
The workaround indicated by tonylove resolved by problem too. Waiting for a 
more elegant solution in a future version ;)

Original comment by guillaum...@gmail.com on 26 Sep 2012 at 7:43

GoogleCodeExporter commented 9 years ago
I also have this issue using Eclipse Juno SR1 and m2e 1.2.0

The workaround is working fine, but cannot applicable due to a lot of 
dependency to exclude.
I have to go back to maven-jetty-plugin.

Original comment by tphuoct...@gmail.com on 21 Nov 2012 at 3:22

GoogleCodeExporter commented 9 years ago
I have the same problem... I have a lot of test dependencies being included on 
the jetty classpath, and using maven exlcusions doesn't fix the problem.
I have Eclipse Indigo 3.7.2, with m2eclipse 1.2.

I love run-jetty-run, but it's a show stopper for me.. I'll need to fall back 
to tomcat until it's fixed :(

Original comment by bruno...@gmail.com on 14 Mar 2014 at 5:21

GoogleCodeExporter commented 9 years ago
I fixed this issue here - 
https://code.google.com/p/run-jetty-run/issues/detail?id=187

Original comment by jumperc...@gmail.com on 11 Nov 2014 at 4:07