I have a few projects that are still using Ant and was looking for a way to
get those build artifacts into my m2 local repository for use in new
projects.

This works.  It's going to wrap badly... the <arg> is all on one line:

build.xml:
  <target name="m2-install">
     <exec dir="." executable="cmd">
        <arg line="/c m2.bat
install:install-file -Dfile=dist/myapp-core.jar -DgroupId=net.wsmoak 
-DartifactId=myapp-core
-Dversion=2.0-SNAPSHOT -Dpackaging=jar"/>
     </exec>
  </target>

Would anyone like to share a maven.xml goal to do the same thing for m1 artifacts?

Thanks,
Wendy



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to