All I am trying to publish my module and I have the follow tasks
<target name="publish-remote-repo" depends="" description="compiles, creates the jar, and then publishes it to the repo."> <subant target="publish-remote" buildpathref="dist.dir" /> </target> And in the common file I have <target name="publish-remote" depends="" description="--> publish this project in the ivy repository"> <ivy:publish artifactspattern="${build.dir}/[artifact].[ext]" resolver="remoterepo-publish" pubrevision="${version}" status="integration" overwrite="true" > <artifacts/> </ivy:publish> <echo message="project ${ant.project.name} released with version ${version}" /> </target> But when I call it using ant I get this error cuthbes-macbook:build cuthbe$ ant publish-remote-repo Buildfile: build.xml publish-remote-repo: BUILD FAILED /Users/cuthbe/dev/code/test/build/build.xml:156: Reference dist.dir not found. Total time: 0 seconds cuthbes-macbook:build cuthbe$