Hi,
I'm too using maven 2.05 and jdk 1.5_06 and I do the following steps:
1) Checking out the magnolia trunk from :
http://svn.magnolia.info/svn/magnolia/trunk
2) Opened a command prompt and run: mvn clean install
3) Downloaded jcr1.0.jar and run:
mvn install:install-file -DgroupId=javax.jcr -DartifactId=jcr
-Dversion=1.0 -Dpackaging=jar -Dfile=c:/usr/jcr-1.0.jar
4) then run : mvn package
But Building magnolia-module-samples fails.
There is somenthing wrong in my steps?
What can I do to avoid this problem?
This is the error log:
[INFO] Building magnolia-module-samples
[INFO] task-segment: [package]
[INFO]
------------------------------------------------------------------------
----
[INFO] [tools:require-maven-version {execution: default}]
[INFO] [setproperty:set-property {execution: currentDate}]
[INFO] property magnolia.currentDate set to value 21. March 2007 (scope:
project)
[INFO] property magnolia.niceVersion set to value 3.1 (Snapshot:
21.03.2007 17:50:33) (scope: project)
[INFO] property magnolia.releaseDate set to value 21. March 2007 (scope:
project)
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[WARNING]
Artifact log4j:log4j:jar:1.2.13:runtime retains local scope
'runtime' overriding broader scope 'compile'
given by a dependency. If this is not intended, modify or remove
the local scope.
[INFO] [jspc:compile {execution: jspc}]
Mar 21, 2007 5:50:36 PM org.apache.jasper.compiler.TldLocationsCache
processWebDotXml
WARNING: Internal Error: File /WEB-INF/web.xml not found
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO]
javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjav
a/lang/String;ZZLjava/lang/String;ZZLjava
/lang/String;Ljava/lang/String;)V
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NoSuchMethodError:
javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjav
a/lang/String;ZZLja
va/lang/String;ZZLjava/lang/String;Ljava/lang/String;)V
at
org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibrary
InfoImpl.java:584)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryIn
foImpl.java:397)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImp
l.java:250)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.
java:180)
at
org.apache.jasper.compiler.JspDocumentParser.getTaglibInfo(JspDocumentPa
rser.java:1264)
at
org.apache.jasper.compiler.JspDocumentParser.startPrefixMapping(JspDocum
entParser.java:771)
at
org.apache.xerces.parsers.AbstractSAXParser.startNamespaceMapping(Unknow
n Source)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scan
RootElementHook(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at
org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.jav
a:179)
at
org.apache.jasper.compiler.ParserController.doParse(ParserController.jav
a:199)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:
102)
at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
at org.apache.jasper.JspC.processFile(JspC.java:994)
at org.apache.jasper.JspC.execute(JspC.java:1143)
at
org.codehaus.mojo.jspc.AbstractJspcMojo.execute(AbstractJspcMojo.java:24
7)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:420)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:48
0)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.jav
a:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:143)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 minute 9 seconds
[INFO] Finished at: Wed Mar 21 17:50:37 CET 2007
[INFO] Final Memory: 15M/27M
[INFO]
------------------------------------------------------------------------
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 20, 2007 1:59 PM
To: [email protected]
Subject: Re: [magnolia-user] Where is 'magnolia-project' for building
magnolia?
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
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------