apache - Is it possible to point Ant build.xml to M2 Repo 'Jar Files'? -
is possible point ant build.xml m2 repo 'jar files'?
- let's developed maven project downloads jar files using pom file.
- is possible point apache ant computer
.m2repo instead of downloading .jar files manually , pointing direct location of download jar files?
thanks
the short answer yes. create ant path follows:
<path id="m2.path"> <fileset dir="${user.home}/.m2/repository" includes="**/*.jar"/> </path> <javac .. classpathref="m2.path" ..> .. but suggest consider implementing dependency management within ant build process instead of relying on external tool.
i suggest apache ivy or alternatively maven ant tasks.
Comments
Post a Comment