archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Mylonas <ch...@opencsta.org>
Subject Re: Non unique versions on release repository when calling deploy
Date Sun, 15 Jan 2012 13:20:47 GMT
Hi Jose,

I think there's supposed to be a bit of info in those metadata files that get created.
Something like 1.0-SNAPSHOT is listed as the current version 1.0-SNAPSHOT-YYYYMMDD.HHMMSS-V.jar

The jar is named with the timestamp & version but archiva when serving up the file presents
it as 1.0-SNAPSHOT based off the meta data.

If you deploy an updated version, there will be 2 in your repo - one with an updated timestamp.
The metadata is also updated, and from this archiva serves up the freshest file as 1.0-SNAPSHOT.

So yeah - take a peak at the metadata

Hope I'm correct at this hour - HTH
Chris

On 16/01/2012, at 12:12 AM, Blockhead wrote:

> Hello to all,
> 
> I have a simple Maven + Archiva setup and I got it working to do the following:
> 
> * Use Achiva as a proxy for ALL remote artifact operations
> * Deploy the releases into a repository called 'stupidzombie'
> 
> My problem is that when I upload it works but I see than the versions are not unique
(a timestam gets appended to my jar artifacts). The Archiva repository is setup to be a release
only (not snapshot) repositoty.
> 
> Any ideas why this can be (I expect the version to be 1.0-SNAPSHOT, not 1.0-SNAPSHOT-*-20120115.114439-3)?:
> 
> 
> INFO] Installing /Users/josevnz/Documents/src/javafx/StupidZombie/walker/target/walker-1.0-SNAPSHOT.jar
to /Users/josevnz/.m2/repository/com/stupidzombie/walker/1.0-SNAPSHOT/walker-1.0-SNAPSHOT.jar
> [INFO] Installing /Users/josevnz/Documents/src/javafx/StupidZombie/walker/pom.xml to
/Users/josevnz/.m2/repository/com/stupidzombie/walker/1.0-SNAPSHOT/walker-1.0-SNAPSHOT.pom
> [INFO] 
> [INFO] --- maven-deploy-plugin:2.5:deploy (default-deploy) @ walker ---
> Downloading: http://localhost:8080/archiva/repository/stupidzombie/com/stupidzombie/walker/1.0-SNAPSHOT/maven-metadata.xml
> Downloaded: http://localhost:8080/archiva/repository/stupidzombie/com/stupidzombie/walker/1.0-SNAPSHOT/maven-metadata.xml
(766 B at 15.0 KB/sec)
> Uploading: http://localhost:8080/archiva/repository/stupidzombie/com/stupidzombie/walker/1.0-SNAPSHOT/walker-1.0-20120115.114439-3.jar
> Uploaded: http://localhost:8080/archiva/repository/stupidzombie/com/stupidzombie/walker/1.0-SNAPSHOT/walker-1.0-20120115.114439-3.jar
(7 KB at 187.1 KB/sec)
> Uploading: http://localhost:8080/archiva/repository/stupidzombie/com/stupidzombie/walker/1.0-SNAPSHOT/walker-1.0-20120115.114439-3.pom
> Uploaded: http://localhost:8080/archiva/repository/stupidzombie/com/stupidzombie/walker/1.0-SNAPSHOT/walker-1.0-20120115.114439-3.pom
(2 KB at 34.7 KB/sec)
> Downloading: http://localhost:8080/archiva/repository/stupidzombie/com/stupidzombie/walker/maven-metadata.xml
> Downloaded: http://localhost:8080/archiva/repository/stupidzombie/com/stupidzombie/walker/maven-metadata.xml
(280 B at 16.1 KB/sec)
> Uploading: http://localhost:8080/archiva/repository/stupidzombie/com/stupidzombie/walker/1.0-SNAPSHOT/maven-metadata.xml
> Uploaded: http://localhost:8080/archiva/repository/stupidzombie/com/stupidzombie/walker/1.0-SNAPSHOT/maven-metadata.xml
(766 B at 32.5 KB/sec)
> Uploading: http://localhost:8080/archiva/repository/stupidzombie/com/stupidzombie/walker/maven-metadata.xml
> Uploaded: http://localhost:8080/archiva/repository/stupidzombie/com/stupidzombie/walker/maven-metadata.xml
(280 B at 10.5 KB/sec)
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1.978s
> [INFO] Finished at: Sun Jan 15 06:44:39 EST 2012
> [INFO] Final Memory: 5M/81M
> [INFO] ------------------------------------------------------------------------
> 
> 
> 
> Bellow are my configuration files.
> 
> pom.xml
> <?xml version="1.0"?>
> <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>com.stupidzombie</groupId>
>  <artifactId>walker</artifactId>
>  <version>1.0-SNAPSHOT</version>
>  <packaging>jar</packaging>
>  <name>walker</name>
>  <url>http://stupidzombie.com</url>
>  <properties>
>    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>    <skipTests>true</skipTests>
>  </properties>
>  <distributionManagement>
>    <repository>
>      <id>stupidzombie</id>
>      <url>http://localhost:8080/archiva/repository/stupidzombie/</url>
>      <releases>
>        <enabled>true</enabled>
>      </releases>
>      <snapshots>
>        <enabled>false</enabled>
>      </snapshots>
>    </repository>
>  </distributionManagement>
> ....
> </project>
> 
> ~/.m2/settings.xml:
> <?xml version="1.0"?>
> <settings>
>    <servers>
>    <server>
>      <id>stupidzombie</id>
>      <username>XXX</username>
>      <password>YYYY</password>
>    </server>
>  </servers>
>  <profiles>
>    <profile>
>      <id>javafx</id>
>      <activation>
>        <activeByDefault>true</activeByDefault>
>      </activation>
>      <properties>
>        <fx.home>/Users/Shared/javafx-sdk2.0.2-beta/</fx.home>
>      </properties>
>    </profile>
>  </profiles>
>  <mirrors>
>    <mirror>
>      <id>archiva.default</id>
>      <url>http://localhost:8080/archiva/repository/internal/</url>
>      <mirrorOf>*</mirrorOf>
>    </mirror>
>  </mirrors>
> </settings>
> 
> 
> 
> Thanks in advance!,
> 
> --Jose
> 
> 
> 


Mime
View raw message