camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: classpath problem with camel:dot and provided dependencies
Date Wed, 12 Jan 2011 05:45:30 GMT
2011/1/12 Pablo Graña <pablo.grana@globant.com>:
> Thanks for your answer.
>
> The problem is that in my maven project I have:
>
>      <dependency>
>        <groupId>javax.servlet</groupId>
>        <artifactId>servlet-api</artifactId>
>        <version>2.5</version>
>        <scope>provided</scope>
>      </dependency>
>
> camel-maven-plugin only includes jars with the compile scope in the
> classpath. jars with the provided scope are not included, hence the
> class not found exception. If I change that to:
>
>      <dependency>
>        <groupId>javax.servlet</groupId>
>        <artifactId>servlet-api</artifactId>
>        <version>2.5</version>
>        <scope>compile</scope>
>      </dependency>
>
> then camel-maven-plugin correctly generates the output. The fact is
> that the servlet-api jar must not be included in the final war. I
> guess that the right thing to do would be to include also the provided
> scoped jars. And possibly system scoped also. Is this possible with
> the current plugin?
>

Fell free to open a JIRA ticket in our issue tracker for this enhancement.
http://camel.apache.org/support.html

You can take a look in the source code and contribute a patch :)
https://svn.apache.org/repos/asf/camel/trunk/tooling/maven/camel-maven-plugin/




> thanks a lot.
>
> On Tue, Jan 11, 2011 at 9:44 PM, Ashwin Karpe <akarpe@fusesource.com> wrote:
>>
>> Hi,
>>
>> Please check out the following
>>
>> http://camel.apache.org/camel-dot-maven-goal.html
>> http://camel.apache.org/camel-dot-maven-goal.html
>>
>> This is a class not found issue, so you are missing the required jars on the
>> classpath.
>>
>> Cheers
>>
>> Ashwin...
>>
>> -----
>> ---------------------------------------------------------
>> Ashwin Karpe
>> Apache Camel Committer & Sr Principal Consultant
>> FUSESource (a Progress Software Corporation subsidiary)
>> http://fusesource.com http://fusesource.com
>>
>> Blog: http://opensourceknowledge.blogspot.com
>> http://opensourceknowledge.blogspot.com
>> ---------------------------------------------------------
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/classpath-problem-with-camel-dot-and-provided-dependencies-tp3336823p3337567.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message