camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Schneider <ch...@die-schneider.net>
Subject Re: How to do Source code attachments for camel osgi bundles in eclipse
Date Tue, 18 May 2010 18:46:07 GMT
Hi Stephen,

for non osgi projects I also use maven and have no problem getting the 
sources. Currently I do not use maven for my osgi projects as the ide 
support is better when using the pde mode in eclipse.
The only problem is that the source code is not attached this way.

Greetings

Christian


Am 18.05.2010 18:19, schrieb Stephen Gargan:
> if you run the eclipse plugin with the following flag it will download
> the sources and attach them in the classpath.
>
> mvn eclipse:eclipse -DdownloadSources=true
>
> if you're in linux or use cygwin, add quick alias to 'me' and you
> never need worry about it again.
>
> alias me='mvn eclipse:eclipse -DdownloadSources=true'
>
> If you're so inclined you can download the javadoc too, but usually
> having the source is enough!
>
> Here are a few more mvn aliases that I regularly use, you might get
> some use out of them too.
>
> mci='mvn clean install'
> mcist='mvn clean install -Dmaven.test.skip=true'
> mdt='mvn dependency:tree'
> me='mvn eclipse:eclipse -DdownloadSources=true'
> mep='mvn help:effective-pom'
> mes='mvn help:effective-settings'
> mag='mvn archetype:generate
> -DarchetypeCatalog="internal,file:///opt/mf/repo/archetype-catalog.xml,http://cocoon.apache.org,http://download.java.net/maven/2,http://myfaces.apache.org,http://tapestry.formos.com/maven-repository,http://scala-tools.org,http://www.terracotta.org/download/reflector/maven2/"
> '
>
> ste
>
>
> On Tue, May 18, 2010 at 12:17 AM, Christian Schneider
> <chris@die-schneider.net>  wrote:
>    
>> Hi all,
>>
>> while trying to get camel running in osgi I would like to be able to debug
>> through the source code in eclipse. When I am not using osgi I usually leave
>> the task of attaching the source to maven which does a great job here.
>> For osgi I have set up a target platform where I copied the camel jars and
>> also the source jars from the maven repo. The problem is though that the
>> source is not resolved and there is no setting to tell eclipse how to do it.
>> The source for the eclipse bundles is resolved so I guess it has to do with
>> the fact how the source is bundled.
>>
>> Is there any way to use the sources from maven in eclipse plugin
>> dependencies? If not then I think it would be great to setup the camel build
>> in such a way that the source is bundled in a way that works in eclipse
>> plugin dependencies. Is this possible?
>>
>> Gereetings
>>
>> Christian
>>
>> --
>> ----
>> http://www.liquid-reality.de
>>
>>
>>      
>    

-- 
----
http://www.liquid-reality.de


Mime
View raw message