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>
>wrote:
>
>> Hi
>> 
>> I've committed a fix for this, so please shout out if this causes any
>> problems for your workspace/IDE.
>
>This commit moves the generation of the test classes out of the
>generate-test-sources and into the generate-sources phase, which from a
>maven standpoint is technically wrong.
>
>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

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), 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!)

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) as I insist to stick to whatever
documentation we manage/maintain at Apache so that I'm -1 to that commit
of yours. 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
>


Reply via email to