RE: Artifact.getVersion()

2009-01-18 Thread Brian E. Fox
It's SNAPSHOT when resolved from the local repo and timestamped when it comes from the remote. There's a method to get SNAPSHOT, I think it's something like getBaseVersion(). I had to deal with this also in the dependency and enforcer plugins. -Original Message- From: Simone Gianni [mailto

Artifact.getVersion()

2009-01-18 Thread Simone Gianni
Hi all, I already posted this on the users list some weeks ago, but got no answer, so I'm asking here. I'm writing a Maven plugin in which I'm using Artifact.getVersion on dependencies. When applied to a dependency which is a snapshot, sometimes the returned version is 0.0.1-SNAPSHOT (which i