You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by youhaodeyi <yo...@gmail.com> on 2008/03/09 08:02:32 UTC

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-application--tp15924252s177p15924252.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: How can I use snapshot version when deploying application?

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
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:youhaodeyi@gmail.com] 
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org