Hi,

we have problems with maven using a "wrong" version of enforcer plugin.

In the project's pom the enforcer plugin is specified like this:
<plugins>
  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-enforcer-plugin</artifactId>
    <executions>
      <execution>
        <id>enforce-versions</id>
        <goals>
          <goal>enforce</goal>
        </goals>
        <configuration>
          <!-- ... -->
        </configuration>
      </execution>
    </executions>
  </plugin>
</plugins>

As you can see, no version number of the plugin is declared nor is it in any 
parent pom of this project.

Building the project fails as maven tries to use the 1.1-SNAPSHOT version of 
enforcer plugin which doesn't exisit in our repository. Most recent version in 
maven central is currently 1.0.1.

I wonder why maven uses a SNAPSHOT version of the plugin?

And furthermore, how does maven determine the version number of a 
plugin/dependency when no version number is specified?

Regards,

Abid
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to