Soupdragon
unread,Oct 6, 2010, 6:49:25 AM10/6/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to usr-ivybeans
I have a project which dynamically loads plug-in jars from a
repository. Each jar is an artefact from another module (all under my
control).
So, in addition to the usual directory in build/jars I want ivy to
retrieve artefacts into this plug-in repository, but the modules
generally use common libraries from the regular class path.
I'm trying to get ivy to retrieve one of these modules _without it's
dependencies_. I've created a "modules" configuration in both ivy.xml
files. The hope is to put dependencies into the main project with this
"modules" configuration, skipped by the regular library load process,
but retrieved by an extended ant target in the project-specific
build.xml. Note this is transitional, I've only ivyed one of the
modules so far.
<target name="-post-compile">
<mkdir dir="modules"/>
<ivy:settings file="${ivy.settings.file}"/>
<ivy:resolve file="ivy.xml" conf="modules" transitive="false"/
>
<ivy:retrieve pattern="${basedir}/modules/[artifact]-
[revision].[ext]" type="jar"
conf="modules" transitive="false" />
<copy todir="modules">
<!-- <fileset dir="${project.Bonuses2009}/dist">
<include name="*.jar"/>
</fileset> -->
<fileset dir="${project.MemberMonitoringForCSales}/dist">
<include name="*.jar"/>
<include name="lib/MemberMonitoring.jar"/>
</fileset>
</copy>
</target>
.
I also modified ivy-impl.xml to retrieve only the regular
configurations in the -ivy-retrieve task.
The problem is that ivy continues to insist on retrieving the
dependencies of the plug-in into the modules directory. I've put
transitive="false" everywhere I can think of. on the conf element in
the plug-in ivy, on both the relevant dependencies, on both
ivy:resolve and ivy:retrieve. Nothing seems to make any difference.
I even tried explicitly excluding these dependencies from the plug-in
dependency in the main project's ivy.xml.