Hi Again,

Sorry about having to disturb this much, i hope this will be my last email
regarding this subject.

Just to make sure that i don't have any mistakes on my part, i did the
following.

1. Deleted everything in my local maven repository.

2. On the command line, ran 'mvn install -Pall' at the top-level trunk and
everything built just fine :)

3. Ran 'mvn clean' and again 'mvn --offilne install -Pall' to make sure that
my local maven repository is up-to-date. Everything built just fine :)

4. Reinstalled latest version of Eclipse (v3.3.2) and latest version of
m2eclipse from scratch.

5. Imported everything from trunks/xwiki-product-enterprise to a newly
created eclipse workspace. Here, m2eclipse downloaded some additional
artifacts (jigsaw, selenium-core and bunch of others - so it took a while
for the workspace to built).

6. Then on package explorer, selected "xwiki-enterprise-parent" and
[right-click->Run As->Maven Install]. Half way down the build process  I got
the same error as i mentioned above and everything died.

Please let me know if i'm doing anything wrong here, otherwise just forget
it. I'll stick to my good-old command line.

Vincent, do you think
http://dev.xwiki.org/xwiki/bin/view/Community/BuildingInEclipse is OK ? Let
me know if there is any adjustment need to be done.

Thanks.

- Asiri

On Sat, Mar 22, 2008 at 4:56 PM, Asiri Rathnayake <
[EMAIL PROTECTED]> wrote:

> Hi All,
>
> On Sat, Mar 22, 2008 at 4:09 PM, Asiri Rathnayake <
> [EMAIL PROTECTED]> wrote:
>
> >
> >
> > On Sat, Mar 22, 2008 at 4:05 PM, Thomas Mortagne <
> > [EMAIL PROTECTED]> wrote:
> >
> > > On Sat, Mar 22, 2008 at 11:29 AM, Asiri Rathnayake
> > > <[EMAIL PROTECTED]> wrote:
> > > > Hi Thomas,
> > > >
> > > >  On Sat, Mar 22, 2008 at 3:56 PM, Thomas Mortagne <
> > > [EMAIL PROTECTED]>
> > > >  wrote:
> > > >
> > > >
> > > >  > On Sat, Mar 22, 2008 at 9:27 AM, Vincent Massol <
> > > [EMAIL PROTECTED]>
> > > >  > wrote:
> > > >  > >
> > > >  > >  On Mar 22, 2008, at 9:19 AM, Asiri Rathnayake wrote:
> > > >  > >
> > > >  > >  > Hi Vincent,
> > > >  > >  >
> > > >  > >  > On Fri, Mar 21, 2008 at 8:16 PM, Vincent Massol <
> > > [EMAIL PROTECTED]>
> > > >  > >  > 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).
> > > >  > >  >
> > > >  > >  > http://m2eclipse.codehaus.org/
> > > >  > >  >
> > > >  > >  > I think I have hit a wall here. It seems like m2eclipse is
> > > only mean
> > > >  > >  > for windows *groans*.
> > > >  > >  >
> > > >  > >  > The embedded version of maven seems to be incapable of
> > > building
> > > >  > XWiki,
> > > >  > >
> > > >  > >  Works just fine for Thomas and me. I didn't change anything
> > > from the
> > > >  > >  defaults. That's what we use. I'm on Mac and Thomas on unix I
> > > think.
> > > >  > >
> > > >  > >  FWIW I'm using Eclipse 3.4M5.
> > > >  >
> > > >  > I'm working on Ubuntu Linux with Eclipse 3.3, I never tryed
> > > M2Eclipse
> > > >  > on Windows. The m2eclipse embeded maven works fine for me since
> > > >  > m2eclipse 0.0.12 and even better in 0.9 as I said previously.
> > > >  >
> > > >
> > > >  I couldn't build xwiki-platform-core with m2eclipse with the
> > > default
> > > >  embedded maven, and i couldn't change it to my local maven
> > > installation
> > > >  either. Anyway, if it works for ubuntu, then it means something is
> > > wrong
> > > >  with my configuration (although i couldn't hunt it down so far).
> > > >
> > >
> > > Well I'm using AJDT Eclipse plugin to build the xwik-core AspectJ for
> > > debuging needs but I'm not sure it's really needed if you just want to
> > > build java sources (and I'm pretty sure Vincent does not use it). What
> > > problem have ou exactly ?
> > >
> >
> > The whole build process get stuck at some point with a failure message.
> > And now i'm faced with another problem, the import process takes years to
> > complete.
> >
>
> Can anyone help me with this. I can build xwiki-product-enterprise on
> command line within seconds, but it takes a lot of time for m2eclipse only
> to import the projects under xwiki-product-enterprise into my eclipse
> workspace. It seems it is downloading some artifacts.
>
> Thanks.
>
> - Asiri
>
>
> > I'll post the error message once i get the workspace up.
> >
> > Thanks.
> >
> > - Asiri
> >
> >
> > >
> > > >  Thanks.
> > > >
> > > >  - Asiri
> > > >
> > > >
> > > >
> > > >
> > > >  >
> > > >  > >
> > > >  > >  -Vincent
> > > >  > >
> > > >  > >  > so i tried to change it to our own version of Maven (refer
> > > to
> > > >  > >  > settings.png attached ). But when i try to build XWiki (in
> > > >  > >  > m2eclipse) with the new settings, it complains that it is
> > > unable to
> > > >  > >  > find the maven executable. If you refer to error.png , it
> > > becomes
> > > >  > >  > evident that m2eclipse doesn't know how to handle path names
> > > in
> > > >  > Linux.
> > > >  > >  >
> > > >  > >  > One more tiny problem is that i can't find any place where i
> > > can set
> > > >  > >  > MAVEN_OPTS=-Xmx600m. But this can be overcome by setting it
> > > in
> > > >  > >  > bash_profile, so I guess it is not a big deal.
> > > >  > >  >
> > > >  > >  > Any comments ?
> > > >  > >  >
> > > >  > >  > Thanks.
> > > >  > >  >
> > > >  > >  > - Asiri
> > > >  > >  >
> > > >  > >  >
> > > >  > >  > Thanks
> > > >  > >  > -Vincent
> > > >  > >  >
> > > >  > >  >
> > > >  > >  >
> > > >  > >  > <settings.png><error.png>
> > > >  > >
> > > >  > >  _______________________________________________
> > > >  > >  devs mailing list
> > > >  > >  devs@xwiki.org
> > > >  > >  http://lists.xwiki.org/mailman/listinfo/devs
> > > >  > >
> > > >  >
> > > >  >
> > > >  >
> > > >  > --
> > > >  > Thomas Mortagne
> > > >  > _______________________________________________
> > > >  > devs mailing list
> > > >  > devs@xwiki.org
> > > >  > http://lists.xwiki.org/mailman/listinfo/devs
> > > >  >
> > > >  _______________________________________________
> > > >  devs mailing list
> > > >  devs@xwiki.org
> > > >  http://lists.xwiki.org/mailman/listinfo/devs
> > > >
> > >
> > >
> > >
> > > --
> > > Thomas Mortagne
> > > _______________________________________________
> > > devs mailing list
> > > devs@xwiki.org
> > > http://lists.xwiki.org/mailman/listinfo/devs
> > >
> >
> >
>
_______________________________________________
devs mailing list
devs@xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to