Hi Will,
I was in the same situtation few times ago. I managed to make it works
completely.
This is my way to do it:
- I'm using the jdk 1.5 in windows, but my project is compliant to 1.4.2
- I'm using maven 2.0.6
-Tomcat 5.0.X
- Delete your ".m2" repository in your personnal directory.
- In the tomcat installation directory go in common->lib and erase the
two libraries present.
- Checkout the trunk of magnolia for the latest version or a branch for
a more stable version.
- Checkout also the module dms that is necessary and not included in
magnolia trunk.
- Then change the main pom to include the module dms
- Then install the jar of jcr thanks to this maven command:
mvn install:install-file -DgroupId=javax.jcr -DartifactId=jcr
-Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
- Then do a mvn clean install, there should be any kind of problem, if
there are try to solve them and eventually post in the list.
- Do a mvn eclipse:clean -Dwtpversion=1.5
- Do a mvn eclipse:eclipse -Dwtpversion=1.5
- Open eclipse, go to windows->preference->Java->Build Path-> classpath
variable and add this one M2_REPO and make it point to your .m2 repository.
- It should ask to you if you want to build the project click on yes.
- Wait that the build finishes.
- Add a new server with tomcat 5.0 set and java 1.5 (don't worry the
project will still be compliant to 1.4.2
- You should be able to add it to the server and to launch it.
If this solution works, could you fill the WIKI of magnolia.
Don't hesitate to if you have some questions
HTH
CAPITAINE Harold
Will Scheidegger a écrit :
I'm still fooling around with Magnolia modules and custom repositories
/ node types. Since everyone so far said that this does not work with
a plain vanilla Magnolia, I decided to get the latest version and
apply the mentioned patches etc.
I followed the instructions here
http://www.magnolia.info/wiki/Wiki.jsp?page=MagnoliaEclipseWTP but gut
stuck near the end.
1. I don't get "call maven copylibs". I did try mvn copylibs in the
trunk folder, but this does not seem to be right.
2. I cannot ad the project to the server. Eclipse keeps saying that
"there are no projects that can bee added..." to the server. So I
assume Eclipse did not realize yet that Magnolia is a web project.
Apparently the step "Convert non Java Project to Dynamic Web Project"
did not work as expected?
Can anyone give me some advice here? Thanks a bunch!
Regards,
Will
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------