Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-175

Maven resolution sometimes fails to properly determinate dependency version

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 4.1-milestone-2, 4.0.1
    • 4.0
    • Extension
    • None
    • Unit
    • N/A
    • N/A

    Description

      Try to deploy org.openid4java:openid4java:0.9.5, it fails not founding any of its dependencies because it requests 1.0 version, while these dependencies are in 0.9.5 version. Here is the pom:

      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <parent>
      <groupId>org.openid4java</groupId>
      <artifactId>openid4java-parent</artifactId>
      <version>0.9.5</version>
      </parent>
      <artifactId>openid4java</artifactId>
      <packaging>jar</packaging>
      <name>OpenID4Java</name>
      <reporting>
      <outputDirectory>../target/site/${artifactId}/</outputDirectory>
      </reporting>
      <dependencies>
      <dependency>
      <groupId>${groupId}</groupId>
      <artifactId>openid4java-consumer</artifactId>
      <version>${version}</version>
      </dependency>
      <dependency>
      <groupId>${groupId}</groupId>
      <artifactId>openid4java-server</artifactId>
      <version>${version}</version>
      </dependency>
      <dependency>
      <groupId>${groupId}</groupId>
      <artifactId>openid4java-server-JdbcServerAssociationStore</artifactId>
      <version>${version}</version>
      </dependency>
      <dependency>
      <groupId>${groupId}</groupId>
      <artifactId>openid4java-consumer-SampleConsumer</artifactId>
      <version>${version}</version>
      </dependency>
      <dependency>
      <groupId>${groupId}</groupId>
      <artifactId>openid4java-server-SampleServer</artifactId>
      <version>${version}</version>
      </dependency>
      </dependencies>
      </project>
      

      Maybe inheriting from parent version cause an issue ?

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            softec Denis Gervalle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: