Thanks. That helped a lot! Magnolia now starts up fine from within
Eclipse!
Now I'm waiting for Sameer to publish the documentation on modules
that he has announced about a month ago...
http://www.mail-archive.com/user-list@magnolia.info/msg05294.html
-Will
On 25.04.2007, at 20:21, Grégory Joseph wrote:
This has been discussed a number of times, please see the archives
and jira.
The dms module has been moved to the modules section of svn because
it has a different lifecycle than Magnolia itself.
Cheers
g
On Apr 25, 2007, at 19:36 , Will Scheidegger wrote:
I'm getting closer! I now figured out how to checkout the trunk
and do the necessary flips and twists to get Eclipse to recognize
it as Dynamic Web Project. Unfortunately the trunk (and also tag
3.0.2) does not contain the dms module. I tried using the one from
3.0.1 (made some changes to the pom.xml and needed to modify two
java classes). When I run magnolia from within Eclipse I get the
following exception:
ERROR info.magnolia.cms.beans.config.ModuleRegistration
ModuleRegistration.java(checkDependencyVersion:266) 25.04.2007
14:40:40 wrong version dependency: module [dms] needs
[adminInterface 3.0] but [adminInterface 3.1] is installed
ERROR org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/magnolia] StandardContext.java(listenerStart:3768)
25.04.2007 14:40:40 Exception sending context initialized event
to listener instance of class
info.magnolia.cms.servlets.PropertyInitializer
info.magnolia.cms.beans.config.MissingDependencyException: wrong
version dependency: module [dms] needs [adminInterface 3.0] but
[adminInterface 3.1] is installed
at
info.magnolia.cms.beans.config.ModuleRegistration.checkDependencyVers
ion(ModuleRegistration.java:267)
at
info.magnolia.cms.beans.config.ModuleRegistration.checkDependency
(ModuleRegistration.java:243)
...
Does anyone have an idea
- why the trunk and release 3.0.2 does not contain the dms module?
- how and where I can change the dependecy?
Thanks for the help!
-Will
On 24.04.2007, at 17:43, Will Scheidegger wrote:
Despite a bunch of Wiki pages and threads on the mailing list, I
cannot setup Magnolia in Eclipse/WTP. Any help gladly
appreciated! Here's what I do:
Setup:
- Mac OS X
- Java 1.5
- Tomcat 5.5
- Eclipse 3.2 with WTP 1.5
I failed building trunk and 3.0.2 (despite manual integration of
3.0.1 dms module). So I thought, that I should _first_ get thinks
(WTP) working with 3.0.1 w/o any hacks. Here's what I did:
1. Delete maven repo folder
% rm -r ~/.m2
2. In Eclipse checkout magnolia tag 3.0.1
- Window > Open Perspective > SVN Repository Exploring
- If repository does not exist: Add repository "http://
svn.magnolia.info/svn/magnolia
- Open repository
- Open tags
- Ctrl-click (right-click) on magnolia-3.0.1 and select checkout
- Choose "Check out as a project in workspace" and hit "Finish"
- Close eclipse
3. Install JCR
% cd magnolia-3.0.1
% mvn install:install-file -DgroupId=javax.jcr -DartifactId=jcr -
Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
4. Build the project on the command line
% mvn clean install
5. Try to convert it to an eclipse web project
% mvn eclipse:clean -Dwtpversion=1.5
% mvn eclipse:eclipse -Dwtpversion=1.5 -DdownloadSources=true
6. Back to Eclipse again
- Start it up
- Update the project
- Ad a classpath variable "M2_REPO" pointing to your .m2 folder
(Windows > Preference > Java > Build Path > Classpath Variable)
=> Project is still not a WTP project!!!
It's the "magnolia" subproject that should turn into a WTP
project, right?
Then I created a dynamic web project using the wizzard and tried
to figure out the differences. Unfortunately I did not find the
problem. Could anyone tell me what I'm doing wrong?
Thanks a bunch!
-Will
P.S.: It builds fine with maven on the command line. I end up
with a working "magnolia-3.0.1.war" under magnolia/target. I must
assume however that the mvn eclipse:eclipse command does not do
its job.
----------------------------------------------------------------
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
----------------------------------------------------------------