Discussion:
org.xmlpull.v1.XmlPullParser on classpath twice
Thomas Heilbronner
2013-05-08 12:53:06 UTC
Permalink
Hi,
I use xstream 1.4.4 im my maven project. I configured the enforcer plugin to ban duplicate classes on the classpath [1].
The enforcer rule reports
Duplicate class found:

Found in:
xmlpull:xmlpull:jar:1.1.3.1:compile
xpp3:xpp3_min:jar:1.1.4c:compile
Duplicate classes:
org/xmlpull/v1/XmlPullParser.class

which are booth dependencies of xstream. The two class files are not binary identical.
Has someone investigated this problem before?
Can I safely ignore the duplicated class files without relying on the jar order on the classpath?

Regards
Thomas

[1] http://mojo.codehaus.org/extra-enforcer-rules/banDuplicateClasses.html
----------------------------------------------------------------------------------------------------------------------------
IDOS Software AG, Karlsruhe, Mannheim HRB 111083
Vorstand: Ulrich Goutier, Harald Klas - Aufsichtsratsvorsitzender: Prof. Dr.Dietrich Bihr
IDOS AE GmbH, Karlsruhe, Mannheim HRB 708116, Geschftsfhrer: Dr.Matthias Mller
IDOS EDM GmbH, Karlsruhe, Mannheim HRB 708117, Geschftsfhrer: Frank Olbrich
IDOS QMS GmbH, Karlsruhe, Mannheim HRB 708069, Geschftsfhrer: Ulrich Goutier
Jörg Schaible
2013-05-08 17:54:43 UTC
Permalink
Hi Thomas,
Post by Thomas Heilbronner
Hi,
I use xstream 1.4.4 im my maven project. I configured the enforcer plugin
to ban duplicate classes on the classpath [1]. The enforcer rule reports
xmlpull:xmlpull:jar:1.1.3.1:compile
xpp3:xpp3_min:jar:1.1.4c:compile
org/xmlpull/v1/XmlPullParser.class
which are booth dependencies of xstream. The two class files are not
binary identical. Has someone investigated this problem before?
Can I safely ignore the duplicated class files without relying on the jar
order on the classpath?
Can you please use the user's list for such kind of questions? Thanks.

Nonetheless: http://jira.codehaus.org/browse/XSTR-689

Cheers,
Jörg

Loading...