Maven uses the repository based on the version. To use the snapshot repo
your version must end in -SNAPSHOT (ie 1.0-SNAPSHOT)

-----Original Message-----
From: youhaodeyi [mailto:[EMAIL PROTECTED] 
Sent: Sunday, March 09, 2008 3:03 AM
To: users@maven.apache.org
Subject: How can I use snapshot version when deploying application?


This is my distributionManagement section of pom.xml:
<distributionManagement>
                <repository>
                  <id>local deploy</id>
                  <name>Repository Name</name>
                  <url>ftp://192.168.1.100/deploy</url>
                </repository>

          <snapshotRepository>
                <id>repo</id>
                <name>Repository Name</name>
                <url>file://d:/snapshotRepository</url>
          </snapshotRepository>
  </distributionManagement>

I use mvn deploy command to deploy my application. But it will be
deployed
to the repository not snapshotRepository. 
-- 
View this message in context:
http://www.nabble.com/How-can-I-use-snapshot-version-when-deploying-appl
ication--tp15924252s177p15924252.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

Reply via email to