Hi James,

Just a quick suggestion, can you use the Shade plugin to use only one
version of the classes?

Best Regards,

Zalan Meggyesi
Chief Support Engineer
Skawa Innovation Kft.

Phone: 0036704627005
Mobile: +36205146666


On Thu, Jul 18, 2019 at 4:31 PM James Srinivasan <[email protected]>
wrote:

> 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
> _______________________________________________
> jetty-users mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://www.eclipse.org/mailman/listinfo/jetty-users
>
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users

Reply via email to