Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.1, 2.2
    • Fix Version/s: 2.2.1
    • Labels:
      None
    • Environment:
      Maven 1.0, Linux.
    • Number of attachments :
      1

      Description

      >maven pdf
      __ __

      \/ __ Apache_ ___
        \/ / ` \ V / -) ' \ ~ intelligent projects ~
      _   _,_ _/___ _ _ v. 1.0

      Plugin cache will be regenerated
      build:start:

      xdoc:init:

      pdf:init:

      pdf:prepare:
      [copy] Copying 14 files to /data/projects/jajuk/maven_rep/target/pdf

      fo:fo:
      [echo] Generating /data/projects/jajuk/maven_rep/target/docs/project.fo ...

      [style] Processing /data/projects/jajuk/maven_rep/xdocs/navigation.xml to /data/projects/jajuk/maven_rep/target/pdf/project.fo
      [style] Loading stylesheet /home/bflorat/.maven/cache/maven-pdf-plugin-2.1/plugin-resources/project2fo.xslt

      BUILD FAILED
      File...... /home/bflorat/.maven/cache/maven-pdf-plugin-2.1/plugin.jelly
      Element... style
      Line...... 70
      Column.... 113
      Provider org.apache.xalan.processor.TransformerFactoryImpl not found
      Total time: 14 seconds
      Finished at: Fri Oct 08 21:17:20 CEST 2004

      1. pdf.patch
        6 kB
        Archimedes Trajano

        Activity

        Hide
        Kristian Mandrup added a comment -

        Sadly not a Maven/Jelly expert.

        Using MevenIDE 0.3.0 for Eclipse 3.1M1.

        File...... C:\Documents and Settings\Me\.maven\cache\maven-pdf-plugin-2.1\plugin.jelly
        Element... style
        Line...... 70
        Column.... 113
        Provider org.apache.xalan.processor.TransformerFactoryImpl not found

        Downloaded maven-pdf-plugin-2.2, put in maven/cache but mevenIDE configured to use 2.1 version...

        Tried applying the patch, assumed "-" meant lines to be removed, "+" lines to be added...

        Then executed fo:fo again from within Eclipse:

        [echo] Generating C:\IDE\eclipse\workspace\CMSX/target/docs/project.fo ...

        BUILD FAILED
        File...... C:\Documents and Settings\ME\.maven\cache\maven-pdf-plugin-2.1\plugin.jelly
        Element... j:invoke
        Line...... 121
        Column.... 52
        java.lang.reflect.InvocationTargetException

        The offending line 121:

        <j:invoke on="$

        {transformer}

        " method="transform">
        <j:arg value="$

        {source}

        " />
        <j:arg value="$

        {result}

        " />
        </j:invoke>

        Any ideas?

        Could you please post the patched plugin.jelly file instead?

        Or is there a better way out of this mess?

        Thanx

        Show
        Kristian Mandrup added a comment - Sadly not a Maven/Jelly expert. Using MevenIDE 0.3.0 for Eclipse 3.1M1. File...... C:\Documents and Settings\Me\.maven\cache\maven-pdf-plugin-2.1\plugin.jelly Element... style Line...... 70 Column.... 113 Provider org.apache.xalan.processor.TransformerFactoryImpl not found Downloaded maven-pdf-plugin-2.2, put in maven/cache but mevenIDE configured to use 2.1 version... Tried applying the patch, assumed "-" meant lines to be removed, "+" lines to be added... Then executed fo:fo again from within Eclipse: [echo] Generating C:\IDE\eclipse\workspace\CMSX/target/docs/project.fo ... BUILD FAILED File...... C:\Documents and Settings\ME\.maven\cache\maven-pdf-plugin-2.1\plugin.jelly Element... j:invoke Line...... 121 Column.... 52 java.lang.reflect.InvocationTargetException The offending line 121: <j:invoke on="$ {transformer} " method="transform"> <j:arg value="$ {source} " /> <j:arg value="$ {result} " /> </j:invoke> Any ideas? Could you please post the patched plugin.jelly file instead? Or is there a better way out of this mess? Thanx
        Hide
        Kristian Mandrup added a comment -

        Downloaded maven-pdf-plugin-2.2 using:

        maven plugin:download -DgroupId=maven -DartifactId=maven-pdf-plugin -Dversion=2.2

        Now I get the following error instead:

        Plugin 'maven-xdoc-plugin' in project 'CMSX' is not available
        Plugin 'maven-xdoc-plugin' in project 'CMSX' is not available
        Plugin 'maven-xdoc-plugin' in project 'CMSX' is not available
        Plugin 'maven-xdoc-plugin' in project 'CMSX' is not available
        Plugin 'maven-xdoc-plugin' in project 'CMSX' is not available
        build:start:

        xdoc:init:

        pdf:init:

        pdf:prepare:
        [copy] Copying 341 files to C:\IDE\eclipse\workspace\CMSX\target\pdf
        [copy] Copying 682 files to C:\IDE\eclipse\workspace\CMSX\target\pdf
        [copy] Copying 293 files to C:\IDE\eclipse\workspace\CMSX\target\pdf

        fo:fo:
        [echo] Generating /project.fo from /navigation.xml ...

        BUILD FAILED
        File...... C:\Documents and Settings\Me\.maven\cache\maven-pdf-plugin-2.2\plugin.jelly
        Element... fail
        Line...... 122
        Column.... 47
        PDF generation cannot complete as /navigation.xml is missing
        Total time: 28 seconds
        Finished at: Fri Oct 15 20:24:57 CEST 2004

        Then I looked tried to be explicit about the file location in the project.properties file:
        maven.xdoc.src=xdoc

        Then tried running "maven fo:fo" again...

        build:start:

        xdoc:init:

        pdf:init:

        pdf:prepare:
        [copy] Copying 12 files to C:\IDE\eclipse\workspace\CMSX\target\pdf

        fo:fo:
        [echo] Generating C:\IDE\eclipse\workspace\CMSX/target/docs/project.fo from C:\IDE\eclipse\workspace\CMSX/xdocs/navigation.xml ...

        [style] Processing C:\IDE\eclipse\workspace\CMSX\xdocs\navigation.xml to C:\IDE\eclipse\workspace\CMSX\target\pdf\project.fo
        [style] Loading stylesheet C:\Documents and Settings\Me\.maven\cache\maven-pdf-plugin-2.2\plugin-resources\project2fo.xslt

        BUILD FAILED
        File...... C:\Documents and Settings\Me\.maven\cache\maven-pdf-plugin-2.2\plugin.jelly
        Element... style
        Line...... 130
        Column.... 20
        Provider org.apache.xalan.processor.TransformerFactoryImpl not found
        Total time: 4 seconds
        Finished at: Fri Oct 15 20:40:07 CEST 2004

        Guess it's back to square one, trying to patch plugin.jelly ?
        Can you patch the maven cache file or do you have to fix the repository jar?

        Show
        Kristian Mandrup added a comment - Downloaded maven-pdf-plugin-2.2 using: maven plugin:download -DgroupId=maven -DartifactId=maven-pdf-plugin -Dversion=2.2 Now I get the following error instead: Plugin 'maven-xdoc-plugin' in project 'CMSX' is not available Plugin 'maven-xdoc-plugin' in project 'CMSX' is not available Plugin 'maven-xdoc-plugin' in project 'CMSX' is not available Plugin 'maven-xdoc-plugin' in project 'CMSX' is not available Plugin 'maven-xdoc-plugin' in project 'CMSX' is not available build:start: xdoc:init: pdf:init: pdf:prepare: [copy] Copying 341 files to C:\IDE\eclipse\workspace\CMSX\target\pdf [copy] Copying 682 files to C:\IDE\eclipse\workspace\CMSX\target\pdf [copy] Copying 293 files to C:\IDE\eclipse\workspace\CMSX\target\pdf fo:fo: [echo] Generating /project.fo from /navigation.xml ... BUILD FAILED File...... C:\Documents and Settings\Me\.maven\cache\maven-pdf-plugin-2.2\plugin.jelly Element... fail Line...... 122 Column.... 47 PDF generation cannot complete as /navigation.xml is missing Total time: 28 seconds Finished at: Fri Oct 15 20:24:57 CEST 2004 Then I looked tried to be explicit about the file location in the project.properties file: maven.xdoc.src=xdoc Then tried running "maven fo:fo" again... build:start: xdoc:init: pdf:init: pdf:prepare: [copy] Copying 12 files to C:\IDE\eclipse\workspace\CMSX\target\pdf fo:fo: [echo] Generating C:\IDE\eclipse\workspace\CMSX/target/docs/project.fo from C:\IDE\eclipse\workspace\CMSX/xdocs/navigation.xml ... [style] Processing C:\IDE\eclipse\workspace\CMSX\xdocs\navigation.xml to C:\IDE\eclipse\workspace\CMSX\target\pdf\project.fo [style] Loading stylesheet C:\Documents and Settings\Me\.maven\cache\maven-pdf-plugin-2.2\plugin-resources\project2fo.xslt BUILD FAILED File...... C:\Documents and Settings\Me\.maven\cache\maven-pdf-plugin-2.2\plugin.jelly Element... style Line...... 130 Column.... 20 Provider org.apache.xalan.processor.TransformerFactoryImpl not found Total time: 4 seconds Finished at: Fri Oct 15 20:40:07 CEST 2004 Guess it's back to square one, trying to patch plugin.jelly ? Can you patch the maven cache file or do you have to fix the repository jar?
        Hide
        Arnaud Heritier added a comment -

        you can download it with this command :

        maven plugin:download
        -Dmaven.repo.remote=http://cvs.apache.org/repository
        -DgroupId=maven
        -DartifactId=maven-pdf-plugin
        -Dversion=SNAPSHOT

        Show
        Arnaud Heritier added a comment - you can download it with this command : maven plugin:download -Dmaven.repo.remote= http://cvs.apache.org/repository -DgroupId=maven -DartifactId=maven-pdf-plugin -Dversion=SNAPSHOT
        Hide
        Arnaud Heritier added a comment -

        reopen to change fixed release

        Show
        Arnaud Heritier added a comment - reopen to change fixed release
        Hide
        Arnaud Heritier added a comment -

        Fixed in 2.2.1

        Show
        Arnaud Heritier added a comment - Fixed in 2.2.1

          People

          • Assignee:
            Arnaud Heritier
            Reporter:
            bflorat
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: