[ 
https://issues.apache.org/jira/browse/SLING-4938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14695425#comment-14695425
 ] 

Stefan Seifert commented on SLING-4938:
---------------------------------------

yes, this is a good idea.
we should just give it a try, exclude those dependencies and check if it at 
least the unit tests still run.

> sling-mock: Transitive dependency reflections includes very old xml-apis
> ------------------------------------------------------------------------
>
>                 Key: SLING-4938
>                 URL: https://issues.apache.org/jira/browse/SLING-4938
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>    Affects Versions: Testing Sling Mock 1.4.0
>            Reporter: Konrad Windszus
>
> Whenever a maven project depends on {{o.a.s.testing.sling-mock}} it 
> automatically depends on {{xml-apis}} in version {{1.0.b2}}.
> This is problematic as this is not only a very old version but also it is 
> very hard to determine which version should be used with which JRE 
> (http://stackoverflow.com/questions/11677572/dealing-with-xerces-hell-in-java-maven).
> Therefore could we just explicitly ignore the transitive dependency {{dom4j}} 
> on the dependency {{reflections}} within {{sling-mock}}?
> I see that {{reflections}} is only used in {{ModelAdapterFactoryUtil}} and I 
> don't see why {{dom4j}} would be necessary there. Maybe we could also get rid 
> of the other optional dependencies {{javassist}}, {{slf4j-api}}, {{gson}}, 
> {{servlet-api}} (https://github.com/ronmamo/reflections/blob/master/pom.xml)?
> That way the classpath would be much leaner and cleaner.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to