You could add in the ivy.xml of jupiter-XMLInterface an exclude statement
inside the dependency for jaxb-impl:
<dependency org="com.sun.xml.bind" name="jaxb-impl" rev="2.2.7">
<exclude module="jaxb-api" />
</dependency>
Alternatively, you can also change the ivy.xml of jaxb-impl and use the
"endorsed" conf there in the same way as you do in jupiter-XMLInterface.
Marc
2014-04-15 17:45 GMT+02:00 Mark Himsley <[email protected]>:
> Hi,
>
> The summary of the problem I'm trying to work around is that I need jars
> retrieved for 'jaxb-api' to land in an 'endorsed' folder but I would prefer
> it wasn't also in the usual 'lib' folder.
> I'm reactively new to Ivy, so I'm probably missing something obvious.
>
> To give more information: below is by ivy.xml file.
>
> 'jaxb-impl' itself has a dependency on 'jaxb-api' - but 'jaxb-api' needs to
> be an endorsed library with Java 1.6 (sadly, my current build target)
>
> When I <ivy:retrieve conf="endorsed" ...> I get 'jaxb-api' - which is
> perfect.
> When I <ivy:retrieve conf="default" ...> I get 'jaxb-impl' and all of its
> dependants - which also includes jaxb-api.
>
> Is is possible to create a configuration which is the set of 'jaxb-impl'
> minus 'jaxb-api' ?
>
> <?xml version="1.0" encoding="UTF-8"?>
> <ivy-module
> version="2.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="
> http://ant.apache.org/ivy/schemas/ivy.xsd
> ">
> <info
> organisation="BroadcastSystemsDevelopment"
> module="jupiter-XMLInterface"/>
> <configurations
> defaultconf="default">
> <conf
> name="default"
> description="the default libraries"/>
> <conf
> name="endorsed"
> description="endorsed libraries"/>
> </configurations>
> <publications>
> <artifact
> name="jupiter-XMLInterface"
> type="jar"/>
> <artifact
> name="jupiter-XMLInterface"
> type="pom"/>
> </publications>
> <dependencies>
> <dependency
> org="com.sun.xml.bind"
> name="jaxb-impl"
> rev="2.2.7"/>
> <dependency
> org="javax.xml.bind"
> name="jaxb-api"
> rev="2.2.7"
> conf="endorsed->default"/>
> </dependencies>
> </ivy-module>
>
>
> Thanks :-)
>
>
> --
> Mark Himsley
>