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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to