MavenPdfPlugin

HomePage | RecentChanges | Preferences

October 23, 2006

Unable to include .png files in a PDF generated by Maven 1.1-RC1-SNAPSHOT

pdf:init:
    [copy] Copying 1 file to C:\svn\wsmoak\current\codecamp\subversion\site\target\docs\images

pdf:prepare:
    [copy] Copying 11 files to C:\svn\wsmoak\current\codecamp\subversion\site\target\pdf
    [copy] Copying 50 files to C:\svn\wsmoak\current\codecamp\subversion\site\target\pdf
    [copy] Copying 53 files to C:\svn\wsmoak\current\codecamp\subversion\site\target\pdf
    [copy] Copying 7 files to C:\svn\wsmoak\current\codecamp\subversion\site\target\pdf

fo:fo:
    [echo] Generating c:\svn\wsmoak\current\codecamp\subversion\site/target/pdf/
project.fo from c:\svn\wsmoak\current\codecamp\subversion\site/xdocs/pdf-navigat
ion.xml ...

pdf:pdf:
    [echo] Generating c:\svn\wsmoak\current\codecamp\subversion\site/target/pdf/svn-intro.pdf ...
    [echo] Config file: c:\svn\wsmoak\current\codecamp\subversion\site/target/pdf/userconfig.xml
    [java] [INFO] Using org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser as SAX2 Parser
    [java] [INFO] Using org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser as SAX2 Parser
    [java] [INFO] FOP 0.20.5
    [java] [INFO] Using org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser as SAX2 Parser
    [java] [INFO] building formatting object tree
    [java] [INFO] setting up fonts
    [java] [INFO] [1]
    [java] [INFO] [2] (blank)
    [java] [INFO] [1]
    [java] [INFO] [2] (blank)
    [java] [INFO] [1]
    [java] [INFO] Using org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser as SAX2 Parser
    [java] [INFO] [2]
    [java] [INFO] JAI support was not installed (read: not present at build time). 
Trying to use Jimi instead
    [java] [ERROR] Error while creating area : Error creating FopImage object
file:/c:/svn/wsmoak/current/codecamp/subversion/site/target/pdf/tsvn-create-new-folder.png)
 : Jimi image library not available
    [java] [ERROR] Error while creating area : Error creating FopImage object 
(file:/c:/svn/wsmoak/current/codecamp/subversion/site/target/pdf/tsvn-create-here.png)
 : Jimi image library not available
    [java] [ERROR] Error while creating area : Error creating FopImage object 
(file:/c:/svn/wsmoak/current/codecamp/subversion/site/target/pdf/tsvn-create-type.png)
 : Jimi image library not available
    [java] [ERROR] Error while creating area : Error creating FopImage object 
(file:/c:/svn/wsmoak/current/codecamp/subversion/site/target/pdf/tsvn-create-success.png)
 : Jimi image library not available
    [java] [ERROR] Error while creating area : Error creating FopImage object
(file:/c:/svn/wsmoak/current/codecamp/subversion/site/target/pdf/tsvn-create-explorer.png)
 : Jimi image library not available
    [java] [INFO] Parsing of document complete, stopping renderer
    [copy] Copying 1 file to C:\svn\wsmoak\current\codecamp\subversion\site\target\docs

pdf:

December 5, 2005

 /svn/maven/maven-1/plugins/pdf
 $ svn up 

$ maven plugin:install
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

build:start:

plugin:plugin:
java:prepare-filesystem:
    [mkdir] Created dir: E:\svn\maven\maven-1\plugins\pdf\target\classes

java:compile:
    [echo] Compiling to e:\svn\maven\maven-1\plugins\pdf/target/classes
    [echo] No java source files to compile.

java:jar-resources:
Copying 1 file to e:\svn\maven\maven-1\plugins\pdf\target\classes\META-INF
Copying 15 files to e:\svn\maven\maven-1\plugins\pdf\target\classes\plugin-resou
rces
Copying 4 files to e:\svn\maven\maven-1\plugins\pdf\target\classes

test:prepare-filesystem:
    [mkdir] Created dir: E:\svn\maven\maven-1\plugins\pdf\target\test-classes
    [mkdir] Created dir: E:\svn\maven\maven-1\plugins\pdf\target\test-reports

test:test-resources:

test:compile:
    [echo] No test source files to compile.

test:test:
    [echo] No tests to run.

jar:jar:
    [jar] Building jar: E:\svn\maven\maven-1\plugins\pdf\target\maven-pdf-plugin
-2.5-SNAPSHOT.jar


plugin:install:
    [delete] Deleting 1 files from C:\java\maven-1.0.2\plugins
    [delete] C:\java\m1-repository\plugins not found.
    [delete] Deleting 22 files from C:\java\m1-repository\cache
    [delete] Deleted 4 directories from C:\java\m1-repository\cache
    [copy] Copying 1 file to C:\java\maven-1.0.2\plugins
BUILD SUCCESSFUL
Total time: 4 seconds
Finished at: Fri Dec 02 18:32:17 MST 2005


wsmoak@imbrium-1 /cygdrive/e/svn/maven/maven-1/plugins/pdf
$

But then...

$ maven pdf
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

BUILD FAILED
Goal "pdf" does not exist in this project.
Total time: 2 seconds
Finished at: Fri Dec 02 18:32:45 MST 2005


References

August 15, 2005

BUILD FAILED
File...... C:\Documents and Settings\wendy\.maven\cache\maven-pdf-plugin-SNAPSHO
T\plugin.jelly
Element... fop
Line...... 182
Column.... 10
org.apache.fop.apps.FOPException: file:/E:/svn/struts/current/site/target/pdf/pr
oject.fo:243:168 The id "#" already exists in this document
Total time: 25 seconds
Finished at: Mon Aug 15 04:42:05 MST 2005

wendy@imbrium-1 /cygdrive/e/svn/struts/current/site
$

Known issue-- define a separate navigation-pdf.xml file

August 14, 2005

$ maven pdf
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

WARNING: Plugin 'maven-xdoc-plugin' is already loaded from maven-xdoc-plugin-1.9
.1; attempting to load maven-xdoc-plugin-1.8
build:start:

xdoc:init:

pdf:init:

pdf:prepare:
    [copy] Copying 186 files to E:\svn\struts\current\site\target\pdf
    [copy] Warning: fonts\gara.ttf modified in the future.
    [copy] Warning: fonts\garabd.ttf modified in the future.
    [copy] Warning: fonts\garait.ttf modified in the future.
    [copy] Warning: fonts\ttf-gara.xml modified in the future.
    [copy] Warning: fonts\ttf-garabd.xml modified in the future.
    [copy] Warning: fonts\ttf-garait.xml modified in the future.
    [copy] Warning: userconfig.xml modified in the future.
    [copy] Copying 7 files to E:\svn\struts\current\site\target\pdf

fo:fo:
    [echo] Generating e:\svn\struts\current\site/target/pdf/project.fo from e:\s
vn\struts\current\site/xdocs/navigation.xml ...
    [xslt] Processing E:\svn\struts\current\site\xdocs\navigation.xml to E:\svn struts\current\site\target\pdf\project.fo
    [xslt] Loading stylesheet C:\Documents and Settings\wendy\.maven\cache\maven
-pdf-plugin-SNAPSHOT\plugin-resources\project2fo.xslt

BUILD FAILED
File...... C:\Documents and Settings\wendy\.maven\cache\maven-pdf-plugin-SNAPSHO
T\plugin.jelly
Element... xslt
Line...... 122
Column.... 177
Provider for javax.xml.transform.TransformerFactory cannot be found
Total time: 4 seconds
Finished at: Sun Aug 14 20:48:02 MST 2005


wendy@imbrium-1 /cygdrive/e/svn/struts/current/site
$
To fix: add xalan.jar in $MAVEN_HOME/lib/endorsed

HomePage | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited October 23, 2006 8:46 am by WendySmoak (diff)
Search: