archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Blockhead <blockh...@stupidzombie.com>
Subject Non unique versions on release repository when calling deploy
Date Sun, 15 Jan 2012 13:12:11 GMT
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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message