Hi Robby
i adjusted my sitemap (see snippet below)
It's the pom.xml not the sitemap (just to avoid missunderstandings) ;-)
<!--
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-fop-impl</artifactId>
<version>1.0.0</version>
</dependency>
-->
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-fop-impl</artifactId>
<version>1.0.0</version>
<exclusions>
<exclusion>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>fop</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>fop</artifactId>
<version>0.94</version>
</dependency>
<!--
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-fop-ng-impl</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
-->
This looks ok so far. BTW I'm using it as well with the
cocoon-fop-ng-impl block.
It seems that the org.apache.xmlgraphics:fop dependency is taken in as
transitive dependency also by another dependency, I guess it's the
fop:fop one.
You can try different ways:
- only exclude the org.apache.xmlgraphicsfop from the cocoon-fop-impl
and don't add it as separate dependency (then the one from fop:fop will
be taken):
- exclude org.apache.xmlgraphics:fop from fop:fop as well and add
org.apache.xmlgraphics:fop to your dependency list
But when I run mvn clean package I get following exception:
$ mvn clean package
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
----
[INFO] Building ciberBlock
[INFO] task-segment: [clean, package]
[INFO]
------------------------------------------------------------------------
----
[INFO] [clean:clean]
[INFO] Deleting directory d:\development\projects\ciberBlock\target
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
https://maven.atlassian.com/repository/public/org/apache/xmlgraphics/fop
/0.94/fop-0.94.pom
5K downloaded
Downloading:
https://maven.atlassian.com/repository/public/org/apache/xmlgraphics/xml
graphics-commons/1.2/xmlgraphics-commons-1.2.pom
3K downloaded
Downloading:
https://maven.atlassian.com/repository/public/org/apache/xmlgraphics/fop
/0.94/fop-0.94.jar
2038K downloaded
Downloading:
https://maven.atlassian.com/repository/public/org/apache/xmlgraphics/xml
graphics-commons/1.2/xmlgraphics-commons-1.2.jar
335K downloaded
[INFO] [compiler:compile]
Compiling 3 source files to
d:\development\projects\ciberBlock\target\classes
[INFO] Preparing cocoon:prepare
[WARNING] Removing: prepare from forked lifecycle, to prevent recursive
invocation.
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [cocoon:prepare {execution: prepare}]
[INFO] Preparing a Cocoon web application.
[INFO] Deploying string-template to WEB-INF/log4j.xml
[INFO] Adding lib to WEB-INF/lib:
commons-logging:commons-logging:1.1:jar
[INFO] Adding lib to WEB-INF/lib:
org.apache.commons:commons-jci-core:1.0:jar
[INFO] Adding lib to WEB-INF/lib: commons-io:commons-io:1.3.1:jar
[INFO] Adding lib to WEB-INF/lib:
commons-logging:commons-logging-api:1.1:jar
[INFO] Adding lib to WEB-INF/lib: log4j:log4j:1.2.14:jar
[INFO] Adding lib to WEB-INF/lib: javax.servlet:servlet-api:2.3:jar
[INFO] Adding lib to WEB-INF/lib:
org.apache.cocoon:cocoon-rcl-webapp-wrapper:1.0.0-M2:jar
[INFO] Adding lib to WEB-INF/lib:
org.apache.commons:commons-jci-fam:1.0:jar
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] There are at least two artifacts with the ID 'fop':
org.apache.xmlgraphics:fop:jar:0.94:compile
com.ciber:ciberBlock:jar:1.0-SNAPSHOT
org.apache.cocoon:cocoon-fop-impl:jar:1.0.0
fop:fop:jar:0.20.5
org.apache.xmlgraphics:fop:jar:0.94:compile
com.ciber:ciberBlock:jar:1.0-SNAPSHOT
org.apache.xmlgraphics:fop:jar:0.94
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 23 seconds
[INFO] Finished at: Tue Jul 01 10:39:59 CEST 2008
[INFO] Final Memory: 20M/37M
[INFO]
------------------------------------------------------------------------
-----Original Message-----
From: Felix Knecht [mailto:[EMAIL PROTECTED]
Sent: dinsdag 1 juli 2008 10:28
To: users@cocoon.apache.org
Subject: Re: Cocoon-fop-impl using old version of fop.jar
Hi Robby
You'll need to exclude the existing fop from the cocoon-fop-impl
dependency that it gets not resolved via transitivity and then add the
one you like:
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-fop-impl</artifactId>
<version>1.0.0</version>
<exclusions>
<exclusion>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>fop</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>fop</artifactId>
<version>0.94</version>
</dependency>
HTH
Felix
Robby Pelssers schrieb:
Hi guys,
I would like to use at least the stable fop0.94 or even try out the
0.95 beta. What is the easiest way to accomplish this?
Currently I have just added the FOP-dependency to my pom like below:
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-fop-impl</artifactId>
<version>1.0.0</version>
</dependency>
Any help would be most appreciated.
Cheers,
Robby Pelssers
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]