maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesper Linvald" <jesper.linv...@kabelnettet.dk>
Subject Converting SNAPSHOTS
Date Mon, 15 Nov 2004 20:10:11 GMT
Hi Gurus,
 
[using Maven version 1.0.1]
 
I am trying to use snapshots because we have nightly builds producing
artefacts that I would like us to depend upon rather than on some random
version located in the local repos!
 
My primary component (called SnapshotComponet) I specify as being of
currentVersion 2.0
 
In the secondary component (called DependOnSnapshot) that depends on it I
specify the dependency as SNAPSHOT
This all works and the SNAPSHOT gets downloaded every time I build! Great :)
 
However, when I want to release and run the goal convert-snapshots or
convert-snapshots-auto I expect the Pom of the depending secondary component
to get updated with a timestamp so that I might commit it to CVS in a
“freezed” immutable state - this dosent happen and nothing gets converted (a
new pom Is written but still with SNAPSHOT as version) and I am quite
confused as to why this is!
Isent  this what the goal is supposed to do for me?
 
Any suggestions as to where I might be thinking in the wrong way about
SNAPSHOTS - please let me know!
 
 
THIS IS THE OUTPUT:
C:\eclipse_work\DependOnSnapshot>maven convert-snapshots
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.1
 
Attempting to download SnapshotComponent-SNAPSHOT.jar.
1K downloaded
There are 1 snapshot dependencies, would you like to update them to use
timestamped versions? [yes]
 
build:start:
 
convert-snapshots:
<dependency>
      <groupId>SnapshotComponent</groupId>
      <artifactId>SnapshotComponent</artifactId>
      <version>SNAPSHOT</version>
      <type>jar</type>
    </dependency>    [echo]
<dependency>
      <groupId>SnapshotComponent</groupId>
      <artifactId>SnapshotComponent</artifactId>
      <version>SNAPSHOT</version>
      <type>jar</type>
    </dependency>    [echo]
Do you want to update this dependency? [yes]
 
Would you like the update POM to be written out for the release? [yes]
 
BUILD SUCCESSFUL
Total time: 16 seconds
Finished at: Mon Nov 15 20:54:01 CET 2004

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.3.0 - Release Date: 13-11-2004
 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message