With a very simple project (created from quickstart archtype), w/ pom: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>test</groupId> <artifactId>test-deploy</artifactId> <version>1.0.0-SNAPSHOT</version> <packaging>jar</packaging> <name>test-deploy</name> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <distributionManagement> <repository> <id>testbuildrepository</id> <name>Test Build Reposiotry</name> <url>file:///tmp/repo</url> </repository> </distributionManagement> </project>
Atter running mvn 2.2.1 with target of "deploy", in /tmp/repo i get: #-(0)> tree test test `-- test-deploy |-- 1.0.0-SNAPSHOT | |-- maven-metadata.xml | |-- maven-metadata.xml.md5 | |-- maven-metadata.xml.sha1 | |-- test-deploy-1.0.0-20101029.202702-1.jar | |-- test-deploy-1.0.0-20101029.202702-1.jar.md5 | |-- test-deploy-1.0.0-20101029.202702-1.jar.sha1 | |-- test-deploy-1.0.0-20101029.202702-1.pom | |-- test-deploy-1.0.0-20101029.202702-1.pom.md5 | `-- test-deploy-1.0.0-20101029.202702-1.pom.sha1 |-- maven-metadata.xml |-- maven-metadata.xml.md5 `-- maven-metadata.xml.sha1 When I try to retrieve the test-deploy using the copy-dependencies goal of the maven-dependency-plugin w/ the following config: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy-dependencies</id> <phase>package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputDirectory>${tmp.lib.directory}</outputDirectory> <stripVersion>true</stripVersion> <overWriteReleases>false</overWriteReleases> <overWriteSnapshots>false</overWriteSnapshots> <overWriteIfNewer>true</overWriteIfNewer> </configuration> </execution> </executions> </plugin> maven fails to find the the SNAPSHOT jar. If I manually copy ~/.m2/repository/test/test-deploy/1.0.0-SNAPSHOT artifacts: test-deploy-1.0.0-SNAPSHOT.jar test-deploy-1.0.0-SNAPSHOT.pom into the deploy repo (/tmp/test/test-deploy/1.0.0-SNAPSHOT) then copy-dependencies works. Once the SNAPSHOT artifacts are present subsequent deploys will update them to the latest deployment (as expected) Why aren't the "SNAPSHOT" artifacts created on initial deployment? Am I missing something? -- View this message in context: http://maven.40175.n5.nabble.com/Missing-Snapshot-Jar-on-Initial-Deploy-tp3243813p3243813.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org