You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by borgel <bo...@gmail.com> on 2007/06/26 15:49:42 UTC
Example pom
Hi,
I downloaded Camel and tried out the examples. I get an error when running
the examples.
When I try 'mvn exec:java' in the camel-example-jms-file I receive:
[INFO] Failed to resolve artifact.
GroupId: org.apache.camel
ArtifactId: camel-parent
Version: 1.0.0
Reason: Unable to download the artifact from any repository
I looked at what i thought should be the parent pom (the pom file in the
examples directory), but this file refers to the same parent:
<parent>
<groupId>org.apache.camel</groupId>
<artifactId>camel-parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>examples</artifactId>
<name>Camel :: Examples</name>
<description>Camel Examples</description>
<packaging>pom</packaging>
Is this right?
--
View this message in context: http://www.nabble.com/Example-pom-tf3982536s22882.html#a11306101
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Example pom
Posted by James Strachan <ja...@gmail.com>.
On 6/27/07, borgel <bo...@gmail.com> wrote:
>
> Great. Now it works! :)
> For the spring example I had to add
> http://people.apache.org/~chirino/apache-camel-1.0.0-RC2/maven2/ to the
> pluginRepository, in settings.xml, and specify version 1.0.0 of the plugin
> in pom.xml.
Yeah, sorry about that. The sooner 1.0.0 is out the better! :)
> Thank you for your help and quick answers!
You're welcome! :)
--
James
-------
http://macstrac.blogspot.com/
Re: Example pom
Posted by borgel <bo...@gmail.com>.
Great. Now it works! :)
For the spring example I had to add
http://people.apache.org/~chirino/apache-camel-1.0.0-RC2/maven2/ to the
pluginRepository, in settings.xml, and specify version 1.0.0 of the plugin
in pom.xml.
Thank you for your help and quick answers!
James.Strachan wrote:
>
> On 6/26/07, James Strachan <ja...@gmail.com> wrote:
>
>
> Aha - so this turned out to be one of those random maven excepton farts
> :).
>
> The workaround is to run
>
> mvn install exec:java
>
> and it should just work. I've patched the code so that the next
> release will explicitly set the 'install' phase when running the
> exec:java goal.
>
> --
> James
> -------
> http://macstrac.blogspot.com/
>
>
--
View this message in context: http://www.nabble.com/Example-pom-tf3982536s22882.html#a11319147
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Example pom
Posted by James Strachan <ja...@gmail.com>.
On 6/26/07, James Strachan <ja...@gmail.com> wrote:
> On 6/26/07, borgel <bo...@gmail.com> wrote:
> >
> > Thank you.
> > Now everything was downloaded, but I receive an error:
> > [ERROR] BUILD ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > ---------------------------------------------------
> > constituent[0]: file:/C:/Program
> > Files/maven-2.0.6/bin/../lib/maven-core-2.0.6-uber.jar
> > ---------------------------------------------------
> > java.lang.NullPointerException
>
> Damn! :)
>
> Will investigate further...
Aha - so this turned out to be one of those random maven excepton farts :).
The workaround is to run
mvn install exec:java
and it should just work. I've patched the code so that the next
release will explicitly set the 'install' phase when running the
exec:java goal.
--
James
-------
http://macstrac.blogspot.com/
Re: Example pom
Posted by James Strachan <ja...@gmail.com>.
On 6/26/07, borgel <bo...@gmail.com> wrote:
>
> Thank you.
> Now everything was downloaded, but I receive an error:
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> ---------------------------------------------------
> constituent[0]: file:/C:/Program
> Files/maven-2.0.6/bin/../lib/maven-core-2.0.6-uber.jar
> ---------------------------------------------------
> java.lang.NullPointerException
Damn! :)
Will investigate further...
> I am doing a PoC on Camel, but perhaps it's better to wait for version
> 1.0.0?
BTW the easiest approach currently, is to grab the source code...
http://activemq.apache.org/camel/source.html
then building it
http://activemq.apache.org/camel/building.html
then try using the examples
http://activemq.apache.org/camel/running-examples.html
e.g. these commands should get you going quickly...
svn co https://svn.apache.org/repos/asf/activemq/camel/trunk camel
cd camel
mvn clean install
cd examples//camel-example-jms-file
mvn exec:java
or to run the spring example
cd ../camel-example-spring
mvn camel:run
--
James
-------
http://macstrac.blogspot.com/
Re: Example pom
Posted by borgel <bo...@gmail.com>.
Thank you.
Now everything was downloaded, but I receive an error:
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
---------------------------------------------------
constituent[0]: file:/C:/Program
Files/maven-2.0.6/bin/../lib/maven-core-2.0.6-uber.jar
---------------------------------------------------
java.lang.NullPointerException
at
org.apache.maven.usability.MojoExecutionExceptionDiagnoser.diagnose(MojoExecutionExceptionDiagnoser.java:64)
at
org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(ErrorDiagnostics.java:84)
at
org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:711)
at org.apache.maven.DefaultMaven.logError(DefaultMaven.java:656)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:131)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
I am doing a PoC on Camel, but perhaps it's better to wait for version
1.0.0?
James.Strachan wrote:
>
> You could temporarily point your pom/settings.xml at the 1.0.0 RC repo
> and things should just work...
>
> http://people.apache.org/~chirino/apache-camel-1.0.0-RC2/maven2/
>
> Hopefully in the next couple of days 1.0.0 can go out so the examples
> will just work without any manual intervention.
>
> --
> James
> -------
> http://macstrac.blogspot.com/
>
>
--
View this message in context: http://www.nabble.com/Example-pom-tf3982536s22882.html#a11306898
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Example pom
Posted by James Strachan <ja...@gmail.com>.
On 6/26/07, borgel <bo...@gmail.com> wrote:
>
> Hi,
>
> I downloaded Camel and tried out the examples. I get an error when running
> the examples.
> When I try 'mvn exec:java' in the camel-example-jms-file I receive:
Sorry about that!
> [INFO] Failed to resolve artifact.
>
> GroupId: org.apache.camel
> ArtifactId: camel-parent
> Version: 1.0.0
>
> Reason: Unable to download the artifact from any repository
>
> I looked at what i thought should be the parent pom (the pom file in the
> examples directory), but this file refers to the same parent:
>
> <parent>
> <groupId>org.apache.camel</groupId>
> <artifactId>camel-parent</artifactId>
> <version>1.0.0</version>
> </parent>
>
> <artifactId>examples</artifactId>
> <name>Camel :: Examples</name>
> <description>Camel Examples</description>
> <packaging>pom</packaging>
>
>
> Is this right?
Yeah - its right. The main issue is we've not yet released 1.0.0 so
its not quite yet in a downloadable repository unfortunately.
You could temporarily point your pom/settings.xml at the 1.0.0 RC repo
and things should just work...
http://people.apache.org/~chirino/apache-camel-1.0.0-RC2/maven2/
Hopefully in the next couple of days 1.0.0 can go out so the examples
will just work without any manual intervention.
--
James
-------
http://macstrac.blogspot.com/