Solved my issue, if your interested see StackOverFlow: http://stackoverflow.com/questions/2606106/maven-deploydeploy-file-not-found-due-to-version-timestamp-appended-to-jar
Regards. On 9 April 2010 09:36, James Clinton <[email protected]> wrote: > I'm have a problem using deploy:deploy-file with snapshots I'd like some > advice on please. > > I have 2 projects; 1) Ant based and 2) Maven based that consumes the jars > of the other project via Archiva. > > I've added a target to the Ant project to deploy snapshots on every > successful build during our iteration. > > The problem is the Maven project cannot find them because the name of the > dependency has a timestamp appended like so: > > someJar-1.0-20100407.171211-1.jar > > Here is the Ant target: > > <exec executable="${maven.bin}" dir="../lib"> > <arg value="deploy:deploy-file" /> > <arg value="-DgroupId=com.my.package" /><arg value="-DartifactId=${ > ant.project.name}" /> > <arg value="-Dversion=${manifest.implementation.version}-SNAPSHOT" /> > <arg value="-Dpackaging=jar" /> > <arg > value="-Dfile=../lib/${ant.project.name}-${manifest.implementation.version}-SNAPSHOT.jar" > /> > <arg value="-Durl= > http://archiva.patsystems.com/archiva/repository/snapshots" /> > <arg value="-DrepositoryId=snapshots" /> > </exec> > > Does anyone know what this happens or where I am going wrong? > > Other pure Maven projects which deploy snapshosts via mvn deploy work > fine. > > Thanks > > James > -- James Clinton Software Consultant Avexa Consulting Ltd [email protected] 07941 561599
