Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2151

maven dependency has wrong avalon group id

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Component/s: unqualified
    • Labels:
      None
    • Environment:
      Operating System:
      Platform: PC
    • External issue ID:
      54089

      Description

      The maven pom for fop 1.1 uses incorrect dependency for avalon framework. With 4.2.0 the the group id changed to avalon-framework from org.apache.avalon.framework

      workaround: update pom as follows

      <dependency>
      <groupId>org.apache.xmlgraphics</groupId>
      <artifactId>fop</artifactId>
      <version>1.1</version>
      <exclusions>
      <exclusion>
      <artifactId>avalon-framework-api</artifactId>
      <groupId>org.apache.avalon.framework</groupId>
      </exclusion>
      <exclusion>
      <artifactId>avalon-framework-impl</artifactId>
      <groupId>org.apache.avalon.framework</groupId>
      </exclusion>
      </exclusions>
      </dependency>
      <!-- these two are to correct issues in fop dependency -->
      <dependency>
      <groupId>avalon-framework</groupId>
      <artifactId>avalon-framework-api</artifactId>
      <version>4.2.0</version>
      </dependency>
      <dependency>
      <groupId>avalon-framework</groupId>
      <artifactId>avalon-framework-impl</artifactId>
      <version>4.2.0</version>
      </dependency>

        Activity

        Hide
        marcelstoer Marcel Stör added a comment -

        This was fixed on 2012-12-04: http://svn.apache.org/viewvc?view=revision&revision=1416937

        -> should be marked as fixed

        Show
        marcelstoer Marcel Stör added a comment - This was fixed on 2012-12-04: http://svn.apache.org/viewvc?view=revision&revision=1416937 -> should be marked as fixed
        Hide
        cbowditch Chris Bowditch added a comment -

        Thanks for noticing Marcel. Resolving bug

        Show
        cbowditch Chris Bowditch added a comment - Thanks for noticing Marcel. Resolving bug
        Hide
        dmanchester Daniel Manchester added a comment -

        At least with sbt ( http://www.scala-sbt.org/ ), the build tool I'm using, it was possible to work around this issue and still pull in FOP 1.1 as a managed dependency. More here:

        http://oklampy.wordpress.com/2013/05/30/working-around-bad-dependency-declarations/

        Show
        dmanchester Daniel Manchester added a comment - At least with sbt ( http://www.scala-sbt.org/ ), the build tool I'm using, it was possible to work around this issue and still pull in FOP 1.1 as a managed dependency. More here: http://oklampy.wordpress.com/2013/05/30/working-around-bad-dependency-declarations/
        Hide
        mbtc Marcus Collins added a comment -

        How does this fix get published to maven central?
        The incorrect POM is still on http://repo1.maven.org/maven2/org/apache/xmlgraphics/fop/1.1/fop-1.1.pom

        Show
        mbtc Marcus Collins added a comment - How does this fix get published to maven central? The incorrect POM is still on http://repo1.maven.org/maven2/org/apache/xmlgraphics/fop/1.1/fop-1.1.pom
        Hide
        marcelstoer Marcel Stör added a comment -

        How does this fix get published to maven central?

        You cannot modify artifacts published on Maven Central. Hence, the FOP 1.1 POM will always be incorrect on Maven Central.

        For the fix to become publicly available the FOP team would have to produce a 1.2 or 1.1.x release. AFAIK neither of which has happened yet.

        Show
        marcelstoer Marcel Stör added a comment - How does this fix get published to maven central? You cannot modify artifacts published on Maven Central. Hence, the FOP 1.1 POM will always be incorrect on Maven Central. For the fix to become publicly available the FOP team would have to produce a 1.2 or 1.1.x release. AFAIK neither of which has happened yet.

          People

          • Assignee:
            Unassigned
            Reporter:
            lloyd@astute.biz Lloyd
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development