2005-04-18 00:12:34 -04:00
<project name= "foo" xmlns:artifact= "antlib:org.apache.maven.artifact.ant" default= "foo" >
<target name= "foo" >
2005-04-18 03:09:16 -04:00
<!--
TODO...
Implementation:
- don't require everything in $ANT_HOME/lib (give example using typedef) - currently all of M2_HOME/lib needs to be in ANT_HOME/lib (ie maven-core's dependencies)
- need to decouple maven-artifact from plexus, or create an ant logger for plexus, then embed it in here
- need to decouple project loading from maven-core. Loading the model was not enough (no inheritence or super model)
Features:
- read .m2/settings.xml
- get dependencies from POM
-->
2005-04-18 00:12:34 -04:00
2005-04-18 03:09:16 -04:00
<artifact:localRepository id= "local.repository" location= "${basedir}/target/local-repo" layout= "default" />
2005-04-18 00:12:34 -04:00
2005-04-18 03:09:16 -04:00
<artifact:remoteRepository id= "deploy.repository" url= "file://${basedir}/target/deployment-repo" layout= "legacy" />
2005-04-18 00:12:34 -04:00
2005-04-18 03:09:16 -04:00
<artifact:pom file= "pom.xml" id= "maven.project" />
2005-04-18 00:12:34 -04:00
<!--
- TODO: would be nice to declare the POM inline, but I'd need to proxy all of the model objects
<artifact:pom id= "maven.project" >
<artifactId > ...</artifactId>
</artifact:pom>
2005-04-18 03:09:16 -04:00
-->
2005-04-18 00:12:34 -04:00
<artifact:dependencies pathId= "dependency.classpath" >
2005-04-18 03:09:16 -04:00
<dependency groupId= "org.apache.maven.wagon" artifactId= "wagon-provider-test" version= "1.0-alpha-2" />
<dependency groupId= "plexus" artifactId= "plexus-container-default" version= "1.0-alpha-2" />
<localRepository refid= "local.repository" />
2005-04-18 00:12:34 -04:00
</artifact:dependencies>
<artifact:install file= "target/maven-artifact-ant-1.0-alpha-2-SNAPSHOT.jar" >
2005-04-18 03:09:16 -04:00
<localRepository refid= "local.repository" />
<pom refid= "maven.project" />
2005-04-18 00:12:34 -04:00
</artifact:install>
<artifact:deploy file= "target/maven-artifact-ant-1.0-alpha-2-SNAPSHOT.jar" >
2005-04-18 03:09:16 -04:00
<localRepository refid= "local.repository" />
<remoteRepository refid= "deploy.repository" />
<pom refid= "maven.project" />
</artifact:deploy>
<artifact:deploy file= "target/maven-artifact-ant-1.0-alpha-2-SNAPSHOT.jar" >
<localRepository refid= "local.repository" />
<remoteRepository url= "scp://localhost/tmp/deployment-repo" >
<authentication username= "brett" privateKey= "${user.home}/.ssh/id_dsa" />
</remoteRepository>
<pom refid= "maven.project" />
2005-04-18 00:12:34 -04:00
</artifact:deploy>
</target>
</project>