Description
The following snippet of configuration does not work. Apparently the chain is looking for reference before they are declared in case of macrodef
Workaround being to actually redeclare the resolver in the chain
problem in config file: unknown resolver release: resolver should be defined before being referenced
<macrodef name="myresolver"> <attribute name="name"/> <filesystem name="@{name}" m2compatible="true" checkconsistency="true" checkmodified="true" allownomd="false"> <artifact pattern="/[organisation]/[module]/[revision]/[type]s/[artifact]-[revision].[ext]" /> <ivy pattern="/[organisation]/[module]/[revision]/ivy.xml"/> </filesystem> </macrodef> <resolvers> <myresolver name="shared"/> <chain name="mychain"> <resolver ref="shared"/> </chain> </resolver>