Thomas Heilbronner
2013-05-08 12:53:06 UTC
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
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