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