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-hYx5XIMjliMGRhOGYtYzMxMi00NmY4LTk5YTk...
But it doesn't look like a regular build in Eclipse - lots of error flags: https://docs.google.com/leaf?id=0B05JH-hYx5XIMmZkNzRiNDItZjA0Zi00NzYxLTgzNjM...
maybe it has to do that m2eclipse builds aren't fully supported ? https://docs.google.com/leaf?id=0B05JH-hYx5XINjQxYmM3NDUtMzdlZC00ZWExLTgxMzg...
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#HBuildingWit... 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 ? 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 ? 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 ? - im still learning - thanks Andreas