Hi,

In response to David I'm using maven 2.05, and my jdk is 1.5 something
(I can check the precise update later if needs be).

These are the steps I've tried:

Checking out the magnolia trunk from
http://svn.magnolia.info/svn/magnolia/trunk
Opened a command prompt at the trunk directory and ran "mvn package"
Downloaded the jcr1.0.jar and ran the command specified by maven to
include the file
Ran "mvn -U eclipse:clean eclipse:eclipse -Dwtpversion=1.5" to generate
the eclipse project settings
I then imported the projects into eclipse
I registered "M2_REPO" to point to the maven repository
Added xalan-2.7.0.jar to the build path

I did NOT "register 'maven as an external tool' within eclipse" as you
say. This sounds quite important - is this what I've been missing?
 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] 
Sent: 20 March 2007 12:15
To: [email protected]
Subject: Re: [magnolia-user] Where is 'magnolia-project' for building
magnolia?

Hi Chris,

i took exactly the following steps:

1. checked out tag 3.0.1
2. run "mvn package" on the top directory
-- At this stage, maven downloaded a LOT of files, BUT I had to download
the jcr.jar manually,and run a mvn -D... command (maven told me exactly,
which command i was supposed to run, so I copied and pasted it ...)

3. Then, I ran "mvn eclipse:eclipse" on the top directory 4. Within
Eclipse, I registered "M2_REPO" to point to the local maven
repository(~/.m2/repository)
5. Import every Magnolia
Module-Folder..("magnolia","magnolia-core","magnolia...") as Project 6.
registerd "maven as an external tool" within eclipse
(http://maven.apache.org/plugins/maven-eclipse-plugin/overview.html)
- so I can compile within eclipse

It took me a lot of time, the last resort was to ask the mailing list...
;)

Hope I helped you..

Regards,
Florian

On 3/20/07, Allan, CJ (Chris) <[email protected]> wrote:
> Hi Florian,
>
> So did you get it working with eclipse by just following the 
> instructions below? Did you not have to explicitly get maven to add 
> the jcr jar separately? And then build the eclipse project settings
(e.g.
> mvn -U eclipse:clean eclipse:eclipse -Dwtpversion=1.5). I have tried 
> these steps, and still can't get magnolia to properly run from
eclipse.
> Initially I get errors relating to the absence of the xalan jar, so 
> I've added this to the build path. But then I get errors about 
> 'premature end of file'.
>
> Any clues what's going wrong?
>
> Chris
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED]
> Sent: 20 March 2007 10:58
> To: [email protected]
> Subject: Re: [magnolia-user] Where is 'magnolia-project' for building 
> magnolia?
>
> Hi David,
>
> thank you very much!
> It worked as you told.
>
>
> Florian
>
> On 3/19/07, David Smith <[email protected]> wrote:
> > That's old.  Current build process is easy:
> >
> > 1. Checkout the sources from svn
> > 2. Open a command prompt and cd to the top of your svn checkout (the

> > directory with all the modules) 3. Assuming you have Maven 2.0.5 
> > installed and working correctly ('mvn -v' to test), run 'mvn
package'.
> >
> > --David
> >
> > Florian Fuchs wrote:
> >
> > > Hello List,
> > >
> > > I want to build Magnolia 3.0.1 for use with eclipse. I tried it as

> > > described in the Wiki 
> > > (http://www.magnolia.info/wiki/Wiki.jsp?page=IntroductionToBuildin
> > > gM
> > > agnolia)
> > >
> > >
> > > But I didn't find the "magnolia-project" directory, which is used 
> > > in
>
> > > the Building-Tutorial.
> > >
> > > How can I build Magnolia and develop it with eclipse, anyway?
> > >
> > > Thanks in advance!
> > >
> > >
> > > Regards,
> > > Florian Fuchs
> > >
> > > ----------------------------------------------------------------
> > > for list details see
> > > http://www.magnolia.info/en/developer.html
> > > ----------------------------------------------------------------
> >
> >
> >
> > ----------------------------------------------------------------
> > for list details see
> > http://www.magnolia.info/en/developer.html
> > ----------------------------------------------------------------
> >
>
> ----------------------------------------------------------------
> for list details see
> http://www.magnolia.info/en/developer.html
> ----------------------------------------------------------------
>
> ----------------------------------------------------------------
> for list details see
> http://www.magnolia.info/en/developer.html
> ----------------------------------------------------------------
>

----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------

----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------

Reply via email to