You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Kojo Ampia-Addison <jo...@gmail.com> on 2013/09/03 13:36:01 UTC

How to get camel-saxon working in camel 2.11.x (My Solution)

Hi,
Here is how I got the example camel-example-spring-xquery to work.

1. Open the pom.xml and add the saxon-he dependency:


<dependency>
<groupId>net.sf.saxon</groupId>
<artifactId>Saxon-HE</artifactId>
<version>9.4</version>
</dependency>

2. Exclude the dependency from camel-saxon


<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-saxon</artifactId>
<exclusions>
<exclusion>
<groupId>net.sf.saxon</groupId>
<artifactId>saxon9he</artifactId>
</exclusion>
</exclusions>
</dependency>

:-) Thats it.

mvn compile

mvn camel:run 

And you're good to go. I hope these steps help some newbie like myself! :-)

/Kojo



--
View this message in context: http://camel.465427.n5.nabble.com/How-to-get-camel-saxon-working-in-camel-2-11-x-My-Solution-tp5738578.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to get camel-saxon working in camel 2.11.x (My Solution)

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Yeah for some strange reasons 9.4.0.4 has been deleted from central.

Logged a ticket to upgrade to use 9.4.0.7 which is avail
https://issues.apache.org/jira/browse/CAMEL-6704

On Wed, Sep 4, 2013 at 10:07 AM, Kojo Ampia-Addison
<jo...@gmail.com> wrote:
> Hi Christian,
>
> I could not run the example as described from the README.txt without the
> changes I described because:
>
> mvn compile failed with the following errors:
>
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Camel :: Example :: Spring :: XQuery 2.11.1
> [INFO]
> ------------------------------------------------------------------------
> Downloading:
> http://192.168.1.69:8081/nexus/content/groups/public/net/sf/saxon/saxon9he/9.4.0.4/saxon9he-9.4.0.4.pom
> [WARNING] The POM for net.sf.saxon:saxon9he:jar:9.4.0.4 is missing, no
> dependency information available
> Downloading:
> http://192.168.1.69:8081/nexus/content/groups/public/net/sf/saxon/saxon9he/9.4.0.4/saxon9he-9.4.0.4.jar
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 4.234s
> [INFO] Finished at: Wed Sep 04 10:04:10 CEST 2013
> [INFO] Final Memory: 10M/58M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project camel-example-spring-xquery: Could
> not resolve dependencies for project
> org.apache.camel:camel-example-spring-xquery:bundle:2.11.1: Could not find
> artifact net.sf.saxon:saxon9he:jar:9.4.0.4 in nexus
> (http://192.168.1.69:8081/nexus/content/groups/public) -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>
> I searched all over the net for saxon9he:jar:9.4.04 to no avail.
> There seems to be no such version for saxon9he.
>
> That is what prompted me to use the steps I described earlier to solve the
> issue and get it working.
> :-)
>
> /kojo
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/How-to-get-camel-saxon-working-in-camel-2-11-x-My-Solution-tp5738578p5738644.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Re: How to get camel-saxon working in camel 2.11.x (My Solution)

Posted by Kojo Ampia-Addison <jo...@gmail.com>.
Hi Christian,

I could not run the example as described from the README.txt without the
changes I described because:

mvn compile failed with the following errors:

[INFO] Scanning for projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Camel :: Example :: Spring :: XQuery 2.11.1
[INFO]
------------------------------------------------------------------------
Downloading:
http://192.168.1.69:8081/nexus/content/groups/public/net/sf/saxon/saxon9he/9.4.0.4/saxon9he-9.4.0.4.pom
[WARNING] The POM for net.sf.saxon:saxon9he:jar:9.4.0.4 is missing, no
dependency information available
Downloading:
http://192.168.1.69:8081/nexus/content/groups/public/net/sf/saxon/saxon9he/9.4.0.4/saxon9he-9.4.0.4.jar
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4.234s
[INFO] Finished at: Wed Sep 04 10:04:10 CEST 2013
[INFO] Final Memory: 10M/58M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal on project camel-example-spring-xquery: Could
not resolve dependencies for project
org.apache.camel:camel-example-spring-xquery:bundle:2.11.1: Could not find
artifact net.sf.saxon:saxon9he:jar:9.4.0.4 in nexus
(http://192.168.1.69:8081/nexus/content/groups/public) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

I searched all over the net for saxon9he:jar:9.4.04 to no avail. 
There seems to be no such version for saxon9he.

That is what prompted me to use the steps I described earlier to solve the
issue and get it working.
:-)

/kojo



--
View this message in context: http://camel.465427.n5.nabble.com/How-to-get-camel-saxon-working-in-camel-2-11-x-My-Solution-tp5738578p5738644.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to get camel-saxon working in camel 2.11.x (My Solution)

Posted by Christian Müller <ch...@gmail.com>.
Thanks for sharing your solution with us! I'm wondering what kind of issue
did you faced? I could run to example as described in the README.txt file
(mvn compile + mvn camel:run).

Best,
Christian
-----------------

Software Integration Specialist

Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Tue, Sep 3, 2013 at 1:36 PM, Kojo Ampia-Addison <jo...@gmail.com>wrote:

> Hi,
> Here is how I got the example camel-example-spring-xquery to work.
>
> 1. Open the pom.xml and add the saxon-he dependency:
>
>
> <dependency>
> <groupId>net.sf.saxon</groupId>
> <artifactId>Saxon-HE</artifactId>
> <version>9.4</version>
> </dependency>
>
> 2. Exclude the dependency from camel-saxon
>
>
> <dependency>
> <groupId>org.apache.camel</groupId>
> <artifactId>camel-saxon</artifactId>
> <exclusions>
> <exclusion>
> <groupId>net.sf.saxon</groupId>
> <artifactId>saxon9he</artifactId>
> </exclusion>
> </exclusions>
> </dependency>
>
> :-) Thats it.
>
> mvn compile
>
> mvn camel:run
>
> And you're good to go. I hope these steps help some newbie like myself! :-)
>
> /Kojo
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/How-to-get-camel-saxon-working-in-camel-2-11-x-My-Solution-tp5738578.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>