How to block maven plugin version

How to block the version of the Maven plugin that I want to use?

I have a PMD plugin configured like this:

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-pmd-plugin</artifactId>
                <version>2.5</version>
                <configuration>
                    <outputDirectory>target/pmd</outputDirectory>
                    <targetDirectory>target/</targetDirectory>
                    <aggregate>true</aggregate>
                    <targetJdk>1.6</targetJdk>
                    <rulesets>
                        <ruleset>rulesets/basic.xml</ruleset>
                        <ruleset>rulesets/codesize.xml</ruleset>
                        <ruleset>rulesets/coupling.xml</ruleset>
                        <ruleset>rulesets/design.xml</ruleset>
                        <ruleset>rulesets/imports.xml</ruleset>
                        <ruleset>rulesets/logging-java.xml</ruleset>
                        <ruleset>rulesets/optimizations.xml</ruleset>
                        <ruleset>rulesets/strings.xml</ruleset>
                        <ruleset>rulesets/unusedcode.xml</ruleset>
                    </rulesets>
                </configuration>
            </plugin>

My nightly build failed last night, and I can no longer run any pmd targets because it is trying to find the 2.6-SNAPSHOT version of this plugin. Why is he even trying to find 2.6-SNAPSHOT if I have a version tag that says 2.5? Also, 2.6-SNAPSHOT is not at the center - why does my maven client think it exists?

Maven version: 2.0.9
Java version: 1.6.0_17
OS name: version "linux": "2.6.24-24-generic" arch: "i386" Family: "unix"

Edit:

maven 2.2.1 , . , 2.6-SNAPSHOT (.m2/repository/org/apache/maven/plugins/maven-pmd-plugin/maven-metadata-central.xml). lastVersion 2,5. , , , , .

+5
1

: :

.m2/repository/org/apache/maven/plugins/maven-pmd-plugin/

.

, , , . , .

+2

All Articles