apache - Is it possible to point Ant build.xml to M2 Repo 'Jar Files'? -


is possible point ant build.xml m2 repo 'jar files'?

  1. let's developed maven project downloads jar files using pom file.
  2. is possible point apache ant computer .m2 repo instead of downloading .jar files manually , pointing direct location of download jar files? enter image description here

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

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -