You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by melpelotones <ma...@gmail.com> on 2007/09/27 17:52:59 UTC
problem deploying snapshots
Hi,
If somebody can help me I would be very grateful,
I am trying to deploy in a snapshot repository I set up with archiva:
1 st) In the settings.xml Ive added the following code
<server>
<id>snapshots</id>
<username>mylogin</username>
<password>mypassword</password>
</server>
2 nd) This is the POM of the jar that I want to deploy
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.andromda.cartridges</groupId>
<artifactId>andromda-cartridges</artifactId>
<version>3.3-SNAPSHOT</version>
</parent>
<artifactId>andromda-spring-cartridge</artifactId>
<packaging>andromda-cartridge</packaging>
<name>AndroMDA Spring Cartridge</name>
<description>Generates Spring with Hibernate support</description>
<dependencies>
<dependency>
<groupId>org.andromda.cartridges</groupId>
<artifactId>andromda-meta-cartridge</artifactId>
<version>${pom.version}</version>
<scope>provided</scope>
</dependency>
...............
<build>
<plugins>
<plugin>
<groupId>org.andromda.maven.plugins</groupId>
<artifactId>andromda-maven-plugin</artifactId>
</plugin>
............
</plugins>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-webdav</artifactId>
<version>1.0-beta-2</version>
</extension>
</extensions>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
</plugin>
........
</reporting>
<properties>
<model.uri>jar:file:${src.dir}/uml/SpringMetafacadeModel.xml.zip!/SpringMetafacadeModel.xml</model.uri>
<test.model.uri>jar:file:${test.src.dir}/uml/SpringCartridgeTestModel.xml.zip!/SpringCartridgeTestModel.xml</test.model.uri>
</properties>
<distributionManagement>
<snapshotRepository>
<id>snapshots</id>
<url>dav:http://s-comm-iss-d1:9999/archiva/repository/snapshots/</url>
</snapshotRepository>
</distributionManagement>
<repositories>
<repository>
<id>snapshots</id>
<name>DG COMM Snapshots Repository</name>
<url>http://s-comm-iss-d1:9999/archiva/repository/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</project>
3rd) I execute mvn deploy, and I obtain:
[INFO]
-------------------------------------------------------------------------
---
[INFO] Building AndroMDA Spring Cartridge
[INFO] task-segment: [deploy]
[INFO]
-------------------------------------------------------------------------
---
[INFO] [andromda:run {execution: default}]
[INFO] Files are up-to-date, skipping AndroMDA execution
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [andromda-cartridge:andromda-cartridge]
[INFO] Building jar:
D:\Rapid2\workspaces\eclipseWorkspace\andromda-all\cartridg
es\andromda-spring\target\andromda-spring-cartridge-3.3-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing
D:\Rapid2\workspaces\eclipseWorkspace\andromda-all\cartridges\
andromda-spring\target\andromda-spring-cartridge-3.3-SNAPSHOT.jar to
d:\temrepos
itory\org\andromda\cartridges\andromda-spring-cartridge\3.3-SNAPSHOT\andromda-sp
ring-cartridge-3.3-SNAPSHOT.jar
[INFO] [deploy:deploy]
altDeploymentRepository = null
[INFO] Retrieving previous build number from snapshots
Uploading:
http://s-comm-iss-d1:9999/archiva/repository/snapshots//org/andromda/
cartridges/andromda-spring-cartridge/3.3-SNAPSHOT/andromda-spring-cartridge-3.3-
20070927.154235-1.jar
[INFO] Retrieving previous metadata from snapshots
[INFO] Uploading repository metadata for: 'artifact
org.andromda.cartridges:andr
omda-spring-cartridge'
[INFO] Retrieving previous metadata from snapshots
[INFO] Uploading repository metadata for: 'snapshot
org.andromda.cartridges:andr
omda-spring-cartridge:3.3-SNAPSHOT'
[INFO] Retrieving previous metadata from snapshots
[INFO] Uploading project information for andromda-spring-cartridge
3.3-20070927.
154235-1
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 11 seconds
[INFO] Finished at: Thu Sep 27 17:42:38 CEST 2007
[INFO] Final Memory: 14M/254M
[INFO]
------------------------------------------------------------------------
Why is the plugin deploying this file
andromda-spring-cartridge-3.3-20070927.154235-1.jar
when in Reality is
andromda-spring-cartridge-3.3-SNAPSHOT-20070927.154235-1.jar
Whats happening with the snapshot suffix?
Thanks a lot
--
View this message in context: http://www.nabble.com/problem-deploying-snapshots-tf4529303s177.html#a12924327
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: problem deploying snapshots
Posted by Insitu <ab...@oqube.com>.
Hello,
This is normal maven behavior for snapshots deployment: each snapshot
is deployed with a unique version number. The metadata reflects this
and defines the lates snapshot so that when you ask for
foo:bar:1.0-SNAPSHOT you really get foo:bar:1.0-2342344234665.2423.
I think you can change this behavior by setting <uniqueVersion>false
in the <snapshotRepository> section of you <distributionManagement>.
See
http://maven.apache.org/ref/current/maven-model/maven.html#class_snapshotRepository
BTW, this question as been asked and answered already today...
HTH
--
OQube < software engineering \ génie logiciel >
Arnaud Bailly, Dr.
\web> http://www.oqube.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: problem deploying snapshots
Posted by Thor <me...@gmail.com>.
As far as I know... When you use deploy, it means that you are sending a
final distribution of your project to a remote repository... Not one under
development... That's why maven removes the SNAPSHOT suffix...
On 9/27/07, melpelotones <ma...@gmail.com> wrote:
>
>
> Hi,
>
> If somebody can help me I would be very grateful,
>
> I am trying to deploy in a snapshot repository I set up with archiva:
>
>
> 1 st) In the settings.xml Ive added the following code
>
> <server>
> <id>snapshots</id>
> <username>mylogin</username>
> <password>mypassword</password>
> </server>
>
> 2 nd) This is the POM of the jar that I want to deploy
>
> <project>
> <modelVersion>4.0.0</modelVersion>
> <parent>
> <groupId>org.andromda.cartridges</groupId>
> <artifactId>andromda-cartridges</artifactId>
> <version>3.3-SNAPSHOT</version>
> </parent>
> <artifactId>andromda-spring-cartridge</artifactId>
> <packaging>andromda-cartridge</packaging>
> <name>AndroMDA Spring Cartridge</name>
> <description>Generates Spring with Hibernate support</description>
>
> <dependencies>
> <dependency>
> <groupId>org.andromda.cartridges</groupId>
> <artifactId>andromda-meta-cartridge</artifactId>
> <version>${pom.version}</version>
> <scope>provided</scope>
> </dependency>
> ...............
> <build>
> <plugins>
> <plugin>
> <groupId>org.andromda.maven.plugins</groupId>
> <artifactId>andromda-maven-plugin</artifactId>
> </plugin>
> ............
> </plugins>
>
> <extensions>
> <extension>
> <groupId>org.apache.maven.wagon</groupId>
> <artifactId>wagon-webdav</artifactId>
> <version>1.0-beta-2</version>
> </extension>
> </extensions>
> </build>
> <reporting>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-project-info-reports-plugin</artifactId>
> </plugin>
> ........
> </reporting>
> <properties>
>
> <model.uri>jar:file:${src.dir
> }/uml/SpringMetafacadeModel.xml.zip!/SpringMetafacadeModel.xml</model.uri>
> <test.model.uri>jar:file:${test.src.dir
> }/uml/SpringCartridgeTestModel.xml.zip!/SpringCartridgeTestModel.xml</test.model.uri>
> </properties>
>
> <distributionManagement>
> <snapshotRepository>
> <id>snapshots</id>
> <url>dav:http://s-comm-iss-d1:9999/archiva/repository/snapshots/
> </url>
> </snapshotRepository>
> </distributionManagement>
>
> <repositories>
> <repository>
> <id>snapshots</id>
> <name>DG COMM Snapshots Repository</name>
> <url>http://s-comm-iss-d1:9999/archiva/repository/snapshots/</url>
> <releases>
> <enabled>false</enabled>
> </releases>
> <snapshots>
> <enabled>true</enabled>
> </snapshots>
> </repository>
> </repositories>
>
>
> </project>
>
> 3rd) I execute mvn deploy, and I obtain:
>
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] Building AndroMDA Spring Cartridge
> [INFO] task-segment: [deploy]
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] [andromda:run {execution: default}]
> [INFO] Files are up-to-date, skipping AndroMDA execution
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] No tests to run.
> [INFO] [andromda-cartridge:andromda-cartridge]
> [INFO] Building jar:
> D:\Rapid2\workspaces\eclipseWorkspace\andromda-all\cartridg
> es\andromda-spring\target\andromda-spring-cartridge-3.3-SNAPSHOT.jar
> [INFO] [install:install]
> [INFO] Installing
> D:\Rapid2\workspaces\eclipseWorkspace\andromda-all\cartridges\
> andromda-spring\target\andromda-spring-cartridge-3.3-SNAPSHOT.jar to
> d:\temrepos
>
> itory\org\andromda\cartridges\andromda-spring-cartridge\3.3-SNAPSHOT\andromda-sp
> ring-cartridge-3.3-SNAPSHOT.jar
> [INFO] [deploy:deploy]
> altDeploymentRepository = null
> [INFO] Retrieving previous build number from snapshots
> Uploading:
> http://s-comm-iss-d1:9999/archiva/repository/snapshots//org/andromda/
> cartridges/andromda-spring-cartridge/3.3-SNAPSHOT/andromda-
> spring-cartridge-3.3-
> 20070927.154235-1.jar
> [INFO] Retrieving previous metadata from snapshots
> [INFO] Uploading repository metadata for: 'artifact
> org.andromda.cartridges:andr
> omda-spring-cartridge'
> [INFO] Retrieving previous metadata from snapshots
> [INFO] Uploading repository metadata for: 'snapshot
> org.andromda.cartridges:andr
> omda-spring-cartridge:3.3-SNAPSHOT'
> [INFO] Retrieving previous metadata from snapshots
> [INFO] Uploading project information for andromda-spring-cartridge
> 3.3-20070927.
> 154235-1
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 11 seconds
> [INFO] Finished at: Thu Sep 27 17:42:38 CEST 2007
> [INFO] Final Memory: 14M/254M
> [INFO]
> ------------------------------------------------------------------------
>
> Why is the plugin deploying this file
>
> andromda-spring-cartridge-3.3-20070927.154235-1.jar
>
> when in Reality is
>
> andromda-spring-cartridge-3.3-SNAPSHOT-20070927.154235-1.jar
>
> Whats happening with the snapshot suffix?
>
> Thanks a lot
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/problem-deploying-snapshots-tf4529303s177.html#a12924327
> 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
>
>
--
(o_ \*
/ / ) |
/ \ /
| O |
v v ....