[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jetty-users] Classes scanned from multiple locations with Maven plugin (mvn install & mvn jetty:start)
|
I'm trying to use jetty-maven-plugin to run some integration tests
with failsafe, but getting lots of warnings similar to the following
with mvn install, or mvn jetty:start (but *not* with mvn jetty:run):
[WARNING] my.package.api.LinksApi scanned from multiple locations:
file:///path/to/my/project/my-project-1.0-SNAPSHOT/WEB-INF/classes/my/package/api/LinksApi.class,
file:///path/to/my/project/my-project/target/classes/my/package/api/LinksApi.class
and
[WARNING] com.sun.xml.fastinfoset.AbstractResourceBundle scanned from
multiple locations:
jar:file:///path/to/my/homedir/.m2/repository/com/sun/xml/fastinfoset/FastInfoset/1.2.16/FastInfoset-1.2.16.jar!/com/sun/xml/fastinfoset/AbstractResourceBundle.class,
jar:file:///C:/path/to/my/project/target/my-project-1.0-SNAPSHOT/WEB-INF/lib/FastInfoset-1.2.16.jar!/com/sun/xml/fastinfoset/AbstractResourceBundle.class
I've tried to solve this with:
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.6</version>
<configuration>
<useManifestOnlyJar>false</useManifestOnlyJar>
<useSystemClassLoader>false</useSystemClassLoader>
</configuration>
[...]
and scanClassesPattern, scanTestClassesPattern, scanTargetPatterns in
jetty-maven-plugin
and adding javax.servlet as `provided` to my dependencies
But none of this has helped. Given the jars should all have the same
version, it doesn't appear critical but any help would be much
appreciated. I don't see why my local maven repo is on my servlet's
classpath.
My full pom.xml is here:
https://gist.github.com/jrs53/dc9c14e383e814c5e2b95e439152f83e
Thanks in advance,
James