I would have thought that <version>2.0</version> would already have
locked it down but I tried what you suggested and it *did* have an
effect...

On 7/3/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
You can "lock down" the version to 2.0 by using:
<version>[2.0]</version>

For 'mvn site' there's no difference: Maven still picks the snapshot.

For 'mvn pmd:check' I now get an error:
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'pmd'.
Downloading: 
http://localhost:9999/repository/org/apache/maven/plugins/maven-pmd-plugin/[2.0]/maven-pmd-plugin-[2.0].pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
Downloading: 
http://localhost:9999/repository/org/apache/maven/plugins/maven-pmd-plugin/[2.0]/maven-pmd-plugin-[2.0].pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-pmd-plugin
Version: [2.0]

Reason: Unable to download the artifact from any repository

 org.apache.maven.plugins:maven-pmd-plugin:pom:[2.0]

from the specified remote repositories:
 central (http://repo1.maven.org/maven2)

So for some reason pmd:check doesn't recognise then '[' and ']'.

Cheers,
Hilco

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

Reply via email to