deploy:deploy-file does not update local repository fully.
Let me show it to us, and ask for help too :)

step 1. delete isaac_test** file in local repository
step 2. use mvn compile command to update artifact(i get a project dependen
on isaac_test), list local repository directory below:
2010-08-27  15:56           221,105 isaac_test-1.0.0-20100827.073702-45.jar
2010-08-27  15:56                40
isaac_test-1.0.0-20100827.073702-45.jar.sha1

2010-08-27  15:56               400 isaac_test-1.0.0-20100827.073702-45.pom
2010-08-27  15:56                40
isaac_test-1.0.0-20100827.073702-45.pom.sha1

2010-08-27  15:56           221,105 isaac_test-1.0.0-SNAPSHOT.jar
2010-08-27  15:56               400 isaac_test-1.0.0-SNAPSHOT.pom
2010-08-27  15:56               355 maven-metadata-mqq.xml
2010-08-27  15:56                40 maven-metadata-mqq.xml.sha1

step 3. upate the jar,then use command(i deloy it *twice *with different
file ):
mvn org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy-file
-Dfile=isaac_test-1.0.0-SNAPSHOT.jar  -Durl=dav:http://xxx/repository/xx
-DrepositoryId=xx -DpomFile=isaac_test-1.0.0-SNAPSHOT.pom.xml
to deploy it to the server.

step 4.list local repositoy:
2010-08-27  15:56           221,105 isaac_test-1.0.0-20100827.073702-45.jar
2010-08-27  15:56                40
isaac_test-1.0.0-20100827.073702-45.jar.sha1

2010-08-27  15:56               400 isaac_test-1.0.0-20100827.073702-45.pom
2010-08-27  15:56                40
isaac_test-1.0.0-20100827.073702-45.pom.sha1

2010-08-27  16:01           221,105 isaac_test-1.0.0-20100827.080157-46.jar
2010-08-27  16:01               400 isaac_test-1.0.0-20100827.080157-46.pom
2010-08-27  16:03           137,286 isaac_test-1.0.0-20100827.080352-47.jar
2010-08-27  16:03               400 isaac_test-1.0.0-20100827.080352-47.pom
2010-08-27  15:56           221,105 isaac_test-1.0.0-SNAPSHOT.jar
2010-08-27  15:56               400 isaac_test-1.0.0-SNAPSHOT.pom
2010-08-27  16:03               355 maven-metadata-mqq.xml
2010-08-27  16:03                40 maven-metadata-mqq.xml.sha1

finally,compile two list of the local repository. I found the
isaac_test-1.0.0-SNAPSHOT.jar
DOES NOTE UPDATED! And then use mvn dependency:copy-dependency to copy the
newest jar, I get an old one.

This problem played me both on windows xp and SUSE linux.

Reply via email to