Nudity / reflections

Automatically exported from code.google.com/p/reflections
Do What The F*ck You Want To Public License
0 stars 0 forks source link

Can not be compiled in Android project #98

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. add maven module dependency
2. use "Relections" in your Android application
3. try to compile it with maven

What is the expected output? What do you see instead?
Build is successful.

What version of the product are you using? On what operating system?
v0.9.5, win 7 pro.

Please provide any additional information below.

compilation log is attached

Original issue reported on code.google.com by asmir...@netlabsystems.com on 25 Jan 2012 at 11:08

Attachments:

GoogleCodeExporter commented 8 years ago
The problem is described in 196 line: trouble processing 
"javax/xml/parsers/DocumentBuilder.class". It's because Android provides 
javax.xml.parsers.DocumentBuilder and it's also in xml-apis:xml-apis which is 
one of org.refrections:reflections transitive dependencies. In your case 
excluding xml-apis:xml-apis artifact should do the trick:

<dependency>
    <groupId>org.reflections</groupId>
    <artifactId>reflections</artifactId>
    <version>0.9.8</version>
    <exclusions>
        <exclusion>
            <groupId>xml-apis</groupId>
            <artifactId>xml-apis</artifactId>
        </exclusion>
    </exclusions>
</dependency>

Original comment by Bartosz....@gmail.com on 9 Feb 2013 at 8:02

GoogleCodeExporter commented 8 years ago

Original comment by ronm...@gmail.com on 20 Feb 2013 at 9:24

GoogleCodeExporter commented 8 years ago
Thanks, this helped with the compilation on Android.

Original comment by kosiara87 on 10 Aug 2013 at 5:40