Details
-
Bug
-
Resolution: Not an issue
-
Minor
-
None
-
3.0.2
-
None
-
Windows XP Pro, tomcat 5.0, JDK 1.4.2.12, maven 2.5, eclipse wtp 3.2.2
Description
This procedure is based on a fresh install procedure:
- Be sure that there is no .m2 directory
- download the jar of jcr, then type "mvn install:install-file -DgroupId=javax.jcr -DartifactId=jcr -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/the/jar"
- Type the following command in the source directory of the project: mvn clean eclipse:clean eclipse:eclipse -Dwtpversion=1.5
You can import the project into eclipse but the project is not runnable with the embedded server because of the project facet that is set to 5.0 instead of 1.4
A workaround and a tricky way to avoid this problem is to change a specific value in the main pom.xml (see the file attached).
Under the artifactId tag which is set to the value maven-compiler-plugin, set the values of the tag target and source to 1.4.
And if you want to generate the war, just type :
mvn install -Dmaven.test.skip=true
It's necessary because the tests don't work anymore.
Checklists
Acceptance criteria