Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-1459

Can't import project on Eclipse wtp with JDK 1.4.2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an issue
    • Minor
    • None
    • 3.0.2
    • build
    • 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

        Attachments

          Activity

            People

              fgiust Fabrizio Giustina
              hcapitaine Capitaine Harold
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD