0 Replies Latest reply on Oct 17, 2015 12:22 PM by simplex-software

    Maven artifact org.switchyard:switchyard-parent:1.1.1-p5-redhat-1:pom invalid

    simplex-software

      Greetings,

       

      The maven artifact org.switchyard:switchyard-parent:1.1.1-p5-redhat-1:pom is invalid as it is using references to ${project.version} and, hence, unusable in an inheritance schema.

      My scenario is as follows:

      My parent POM:

      ...........................

        <parent>

          <groupId>org.switchyard</groupId>

          <artifactId>switchyard-parent</artifactId>

          <version>1.1.1-p5-redhat-1</version>

          <relativePath>../parent</relativePath>

        </parent>

        <groupId>fr.simplex_software.soa</groupId>

        <artifactId>switchyard-master</artifactId>

        <version>0.0.1-SNAPSHOT</version>

        <packaging>pom</packaging>

      ...........................

      My project POM:

      ...........................

        <parent>

          <groupId>fr.simplex_software.soa</groupId>

          <artifactId>switchyard-master</artifactId>

          <version>0.0.1-SNAPSHOT</version>

          <relativePath>../switchyard-master</relativePath>

        </parent>

        <artifactId>order-service</artifactId>

      ...........................

          <dependency>

            <groupId>org.switchyard.components</groupId>

            <artifactId>switchyard-component-bean</artifactId>

          </dependency>

      ............................

      Here, given that the switchyard-parent declares:

      ...........................

                  <dependency>

                      <groupId>org.switchyard.components</groupId>

                      <artifactId>switchyard-component-bean</artifactId>

                      <version>${project.version}</version>

                  </dependency>

      .............................

      the project POM doesn't build as it lacks the artifact org.switchyard.components:switchyard-component-bean:0.0.1-SNAPSHOT:jar. All the switchyard dependencies in the switchyard-parent have to be replaced by:

                  <dependency>

                      <groupId>org.switchyard.components</groupId>

                      <artifactId>switchyard-component-bean</artifactId>

                      <version>1.1.1-p5-redhat-1</version>

                  </dependency>

       

      Any suggestion ?

       

      Kind regards,

       

      Nicolas