On Thu, Apr 28, 2011 at 10:47, Andreas Hahn <[email protected]> wrote:
> Am 28.04.2011 09:33, schrieb Thomas Mortagne:
>> On Wed, Apr 27, 2011 at 23:34, Andreas Hahn<[email protected]>  wrote:
>>> Finally it seems I built the platform
>>> https://docs.google.com/leaf?id=0B05JH-hYx5XIMjliMGRhOGYtYzMxMi00NmY4LTk5YTktNjExMmU0ZWRlNzA0&hl=de&authkey=CM_DmuME
>>>
>>> But it doesn't look like a regular build in Eclipse - lots of error flags:
>>> https://docs.google.com/leaf?id=0B05JH-hYx5XIMmZkNzRiNDItZjA0Zi00NzYxLTgzNjMtOTk5NWZhMTY3MWNj&hl=de&authkey=CP2qq_QH
>>>
>>> maybe it has to do that m2eclipse builds aren't fully supported ?
>>> https://docs.google.com/leaf?id=0B05JH-hYx5XINjQxYmM3NDUtMzdlZC00ZWExLTgxMzgtN2M4NzdiMGFjZmE4&hl=de&authkey=CLX8g7YE
>>>
>>> I'm not sure if its necessary to further investigate in a 'clean' build
>>> or if its ok just ignore the errors ?
>> Do you really need to build with M2Eclipse ? I find using console to
>> do plain mvn install a lot easier unless you are on Windows maybe. IMO
>> the point of using M2Eclipse is to be integrated into Eclipse, I never
>> need to build a project when using M2Eclipse since Eclipse give me the
>> java error and I can run unit tests directly from Eclipse too, I even
>> have checkstyle thanks to eclipse-cs. I just run the plain maven
>> sometimes before committing a big modification to validate a bunch of
>> projects (I never open the whole platform into Eclipse, only what I'm
>> really working on otherwise it's very slow).
>>
>
> Your words are bit of a contrast to the instructions "build the easy way"
> http://dev.xwiki.org/xwiki/bin/view/Community/BuildingInEclipse#HBuildingWithM2Eclipse28Easy29
>
> As a maven rookie i'm just looking for the easisest solution. So I
> followed the above instructions 'like a slave' and it seemed to work.
> Except that the workbench looks like a mess - lots of Java errors and
> Maven errors - see screenshots above.
>
> I haven't yet installed maven - only the m2eclipse plugin - should I do
> that - and if so is the most recent version ok ?
> What is the recommendation ?

The real reference is
http://dev.xwiki.org/xwiki/bin/view/Community/Building which explain
how to use maven. "Building in Eclipse" is just an alternative and as
so is at the end of the documentation.

>
> Rookie question #2:
> Once i install maven manually and run 'mvn install' from command line as
> you say - will the IDE reflect all
> the results of the build process - that is after refreshing all the Java
> errors that became apparent after importing from maven would disappear ?

What I really said is that you don't need to do mvn install at all
except if you want to distribute the result. If all you want is java
error/warning and run unit tests etc... just let Eclipse take care of
it, that's what M2Eclipse is for.

>
> Rookie question #3:
> Is it advisable to just copy and paste an .m2 repository to another
> workstation (other VM) to save there the long repository download times ?

Yep you can copy .m2 repositories and indeed to avoid having to
download a lot of stuff.

>
> - im still learning -
>
> thanks
> Andreas
>
>
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>



-- 
Thomas Mortagne
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to