RES: Referencing uniqe SNAPSHOT versions in POM

2008-02-08 Thread Dário Luís Coneglian Oliveros
In the same way as it were non-unique: just use x.y-SNAPSHOT for instance.
If do not want unique snasphot version in your repo, you'll have to add the 
following to distributionManagement section:

distributionManagement
snapshotRepository
...
uniqueVersionfalse/uniqueVersion
/snapshotRepository
...

Dário

-Mensagem original-
De: Marco Bakera [mailto:[EMAIL PROTECTED] 
Enviada em: sexta-feira, 8 de fevereiro de 2008 09:41
Para: Maven Users
Assunto: Referencing uniqe SNAPSHOT versions in POM


Hey everybody!

Sometime I find SNAPSHOT versions in the repository like 
groupid/artifactid/SNAPSHOT/artifactid-20071218.1329060-1.jar. It seems that 
this are SNAPSHOTS uniquely identifiable via some identifier.

But how can I refer to such a version from my dependency section in my pom?


Thanks for help and greetings,
Marco.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RES: Referencing uniqe SNAPSHOT versions in POM

2008-02-08 Thread Dário Luís Coneglian Oliveros
Please attach your pom file so I can take a look at it.

Dário

-Mensagem original-
De: Marco Bakera [mailto:[EMAIL PROTECTED] 
Enviada em: sexta-feira, 8 de fevereiro de 2008 11:01
Para: users@maven.apache.org
Assunto: Re: Referencing uniqe SNAPSHOT versions in POM


Sorry neither your nor Dario's solution solves the problem. :(

However thanks for your help so far.


On Friday 08 February 2008 13:50:17 nicolas de loof wrote:
 Simply use

 version20071218.1329060-1/version

 Maven will automatically detect this is a SNAPSHOT (using 
 metadatas.xml in repo AFAIK)

 The latest (snapshot) release plugin accepts them as valid. You just 
 have to ensure there will be available in future for your build to be 
 reproductible (make a repo backup or use a corporate repo/proxy)

 Nico.

 2008/2/8, Marco Bakera [EMAIL PROTECTED]:
  Hey everybody!
 
  Sometime I find SNAPSHOT versions in the repository like 
  groupid/artifactid/SNAPSHOT/artifactid-20071218.1329060-1.jar. It 
  seems that this are SNAPSHOTS uniquely identifiable via some 
  identifier.
 
  But how can I refer to such a version from my dependency section in 
  my pom?
 
 
  Thanks for help and greetings,
  Marco.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RES: Referencing uniqe SNAPSHOT versions in POM

2008-02-08 Thread Marco Bakera

The repository contains some artifact at

  a/b/c/artifactid/SNAPSHOT/artifactid-20071218.132506-1.jar

So I try to refer to that file with the following snippet.

project
  dependencies

dependency
  groupIda.b.c/groupId
  artifactIdartifactid/artifactId
  versionSNAPSHOT/version
/dependency

  /dependencies
/project

When using SNAPSHOT it will resolve to the latest version of such file given 
above. But how to refer to an older version?


Thanks for your help.


On Friday 08 February 2008 14:07:20 Dário Luís Coneglian Oliveros wrote:
 Please attach your pom file so I can take a look at it.

 Dário

 -Mensagem original-
 De: Marco Bakera [mailto:[EMAIL PROTECTED]
 Enviada em: sexta-feira, 8 de fevereiro de 2008 11:01
 Para: users@maven.apache.org
 Assunto: Re: Referencing uniqe SNAPSHOT versions in POM


 Sorry neither your nor Dario's solution solves the problem. :(

 However thanks for your help so far.

 On Friday 08 February 2008 13:50:17 nicolas de loof wrote:
  Simply use
 
  version20071218.1329060-1/version
 
  Maven will automatically detect this is a SNAPSHOT (using
  metadatas.xml in repo AFAIK)
 
  The latest (snapshot) release plugin accepts them as valid. You just
  have to ensure there will be available in future for your build to be
  reproductible (make a repo backup or use a corporate repo/proxy)
 
  Nico.
 
  2008/2/8, Marco Bakera [EMAIL PROTECTED]:
   Hey everybody!
  
   Sometime I find SNAPSHOT versions in the repository like
   groupid/artifactid/SNAPSHOT/artifactid-20071218.1329060-1.jar. It
   seems that this are SNAPSHOTS uniquely identifiable via some
   identifier.
  
   But how can I refer to such a version from my dependency section in
   my pom?
  
  
   Thanks for help and greetings,
   Marco.




signature.asc
Description: This is a digitally signed message part.