On Apr 8, 2013, at 3:05 PM, Babak Vahdat <babak.vah...@swissonline.ch> wrote:
> Am 08.04.13 16:59 schrieb "Daniel Kulp" unter <dk...@apache.org>:
> On Apr 8, 2013, at 7:13 AM, Babak Vahdat <babak.vah...@swissonline.ch>
>> How are you pulling Camel into Eclipse?    m2e or using the
>> maven-eclipse-plugin?  If using the latter, you should likely be using
>> our -Psetup.eclipse profile that would run to the appropriate phase
>> (process-test-sources) before calling the plugin.   (or do "mvn
>> process-test-sources eclipse:eclipse")
> 
> I do exactly the same SIMPLE way the documentation recommends:
> 
> http://camel.apache.org/building.html#Building-UsinganIDE

Well, I would say those docs could be wrong or could be updated.

> And NO even the usage of the setup.eclipse profile will not help either
> (see below for the reason, but you're welcome to try it by yourself if you
> don't believe this),

Umm…  -Psetup.eclipse does work.   That's how I've been setting it up for 
years.   It sets the default target to be the process-test-sources and then 
adds the eclipse plugin into the mix after that.  I'm failing to see how this 
doesn't work.   The additional benefit of the setup.eclipse is to get all the 
other things (like checkstyle and pmd things) into there.


> as well I don't see any good reason why I should
> (because of this commit) always call the EXTRA build phase
> "process-test-sources" (yes that would work but our Wiki SAYS something
> else as per link above!)

Then fix the wiki!

> And don't want to install any m2e plugin just because of that commit
> either even if using the eclipse m2e plugin probably could resolve the
> problem (didn't even try that)

Likely no.  That's why I asked.  m2e generally has issues with projects as 
large and complex as Camel.   I did spend a lot of time trying to get it to 
work  for CXF and never really managed to get it to work acceptably.  Never 
tried Camel though.


> as I insist to stick to whatever
> documentation we manage/maintain at Apache so that I'm -1 to that commit
> of yours.

The main "fix" in that original commit was to get the generated test sources 
out of the final jars.   The original poms we causing the generated code to get 
compiled with the rest of the sources, stuck in target/classes, and then output 
into the jars.    Having test specific stuff in the final jars is not really a 
good thing. 
 
Dan


>  Actually the root cause of the problem is this closed/duplicate
> JIRA ticket:
> 
> http://jira.codehaus.org/browse/MECLIPSE-409
> 
> So although I agree with you that generate-test-sources is the RIGHT phase
> to use, more importantly I prefer to NOT break things already working EVEN
> IF they're technically wrong from a Maven standpoint of view. So better
> let's keep things working as they ALREADY do until such JIRA tickets are
> properly fixed. Then we can of course upgrade to whatever
> maven-eclipse-plugin version this issue has been already fixed with.
> 
> Babak
> 
> 
>> 
>> 
>> Dan
>> 
>> 
>>> 
>>> Babak
>>> 
>>> 
>>> Babak Vahdat wrote
>>>> Hi
>>>> 
>>>> Using eclipse I've got some similar build problems as well by some
>>>> modules
>>>> like camel-soap or camel-cxf where eclipse is not able to see any of
>>>> the
>>>> Java sources being generated by cxf-codegen-plugin. I digged a bit into
>>>> this and came to the following commit:
>>>> 
>>>> http://svn.apache.org/viewvc?view=revision&revision=r1458383
>>>> 
>>>> As an example if I revert the following change of this commit then
>>>> eclipse
>>>> is happy and camel-soap builds properly again:
>>>> 
>>>> 
>>>> http://svn.apache.org/viewvc/camel/trunk/components/camel-soap/pom.xml?r
>>>> 1=1458383&r2=1458382&pathrev=1458383
>>>> 
>>>> Other way of fixing the compilation problem under eclipse for this
>>>> module
>>>> is to add the following source folder *manually*:
>>>> 
>>>> camel/components/camel-soap/target/generated/src/test/java
>>>> 
>>>> And yes I was suspicious about my old 2011 eclipse installation could
>>>> be
>>>> the root cause of this build problem, but upgrading to the newest
>>>> version:
>>>> 
>>>> Version: Juno Service Release 2
>>>> Build id: 20130225-0426
>>>> 
>>>> didn't make any change.
>>>> 
>>>> Anybody else using eclipse having similar build problems on trunk?
>>>> 
>>>> Babak
>>> 
>>> 
>>> 
>>> 
>>> 
>>> --
>>> View this message in context:
>>> http://camel.465427.n5.nabble.com/IDEA-12-1-cannot-build-Apache-Camel-pro
>>> ject-anymore-tp5730468p5730491.html
>>> Sent from the Camel Development mailing list archive at Nabble.com.
>> 
>> -- 
>> Daniel Kulp
>> dk...@apache.org - http://dankulp.com/blog
>> Talend Community Coder - http://coders.talend.com
>> 
> 
> 

-- 
Daniel Kulp
dk...@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to