On Mar 21, 2008, at 6:50 PM, Pascal Voitot wrote:
On Fri, Mar 21, 2008 at 6:38 PM, Vincent Massol
<vincent(a)massol.net>
wrote:
On Mar 21, 2008, at 6:28 PM, Pascal Voitot wrote:
In fact, I have tried to checkout every module
independently and
directly in
Eclipse with Subclipse...
But then, I had no Maven project so I configured everything with
some
clicks...
but if I had read the tuto, I would have seen "mvn
eclipse:eclipse" :)
Moreover, when you forget to set the right MAVEN_EXEC, it doesn't
compile
and I have been wondering what was wrong because in my professional
projects, I had never seen such error.
Anyway, you're right, I'm no brainer ;)
:)
I'm serious, try starting over using m2eclipse.
mvn eclipse:eclipse is 100X time less good (it's not synced
automatically with the pom for example).
-Vincent
in fact, this is exactly what I did... I have been using m2eclipse
in my
work for some time... So I tried the same with XWiki after checking it
out... But I could not compile using m2eclipse maven facilities...
Apparently the version of maven embedded in my version of m2eclipse
is not
compliant to maven-2.1-SNAPSHOT...
Did you succeed to compile just with m2eclipse?
You don't need to compile in Eclipse... ;) It's compiled automatically.
Yes it all works (all works) but you may need to use the LATEST
version of m2eclipse released a few days ago.
-Vincent
>> On Fri, Mar 21, 2008 at 6:14 PM, Vincent
Massol <vincent(a)massol.net>
>> wrote:
>>
>>>
>>> On Mar 21, 2008, at 6:09 PM, Pascal Voitot wrote:
>>>
>>> and highlight the fact that compiling in Eclipse requires
>>> MAVEN_EXEC set
>>> to 2.1-snapshot :):):) (I spend some time on that because I don't
>>> read
>>> well your tuto;))
>>>
>>> some info how to obtain a real "Eclipse enabled" project with
>>> dependencies
>>> management and other configurations could be useful for Maven
>>> beginners...
>>>
>>>
>>> This is a no brainer with m2eclipse.
>>> In less than 3 minutes you get a working eclipse workspace for
>>> XWiki.
>>>
>>>
>>
>>> -Vincent
>>>
>>> On Fri, Mar 21, 2008 at 5:41 PM, Vincent Massol
>>> <vincent(a)massol.net>
>>> wrote:
>>>
>>>>
>>>> On Mar 21, 2008, at 5:32 PM, Asiri Rathnayake wrote:
>>>>
>>>>
>>>>
>>>> On Fri, Mar 21, 2008 at 8:16 PM, Vincent Massol <vincent(a)massol.net
>>>> >
>>>> wrote:
>>>>
>>>>> Hi Asiri,
>>>>>
>>>>> If you have some time... :) I think it would be great if you
>>>>> could
>>>>> document how to use the m2eclipse plugin in Eclipse to set up
>>>>> XWiki
>>>>> (with screenshots). I've been using it for the past 5 days and
>>>>> it's
>>>>> great and makes setting up a XWiki dev environment a breeze and
>>>>> it's
>>>>> much much better than doing it the manual way for lots of reasons
>>>>> (always synced with the POMs, etc).
>>>>>
>>>>
>>>> No problem :). But I was updating
>>>>
http://dev.xwiki.org/xwiki/bin/view/Community/BuildingInEclipse
>>>> and I'm
>>>> almost done except for the two sections,
>>>>
>>>> * [Optional] Import the WAR as a web project
>>>> * [Optional] Use the Jetty Launcher plugin
>>>>
>>>> With which i'm not familiar with. I will finish the above doc by
>>>> today.
>>>> But where are we going to add the new tutorial ? (Have two
>>>> sections in the
>>>> above document, one for manual configuration and one for
>>>> m2eclipse ?)
>>>>
>>>>
>>>> sure. Either that or 2 pages if each is too long.
>>>>
>>>> Thanks!
>>>> -Vincent
>>>>
>>>>
>>>>>
http://m2eclipse.codehaus.org/
>>>>>
>>>>> Thanks
>>>>> -Vincent