I have artifact A installed in the local Maven repository.
Artifact A has a number of dependencies correctly defined in pom.
If I install A as a dependency in a Maven project, everything is fine - both A and its dependencies load correctly. This tells me that A is correctly installed in the local Maven repository and that its dependencies were correctly specified.
I also have an Ant / Ivy project. I configured the ivysettings.xml file as follows (following the recommendations of another answer):
<ivysettings> <settings defaultResolver="default"/> <property name="m2-pattern" value="${user.home}/.m2/repository/[organisation]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]" override="false" /> <resolvers> <chain name="default"> <filesystem name="local-maven2" m2compatible="true" > <artifact pattern="${m2-pattern}"/> <ivy pattern="${m2-pattern}"/> </filesystem> <ibiblio name="central" m2compatible="true"/> </chain> </resolvers> </ivysettings>
With this configuration, Ivy loads A correctly, but not its dependencies (it seems to completely ignore its pom file).
How do I need to change my setting so that dependencies will be loaded?
source share