Java – Problems installing spring greenhouse locally

java, spring

I am trying to install spring's greenhouse project and I am running into some errors.

This is the site I am working off: greenhouse

I was able to download the eclipse git plugin and install the project but it does not build.

My logs are

4/7/11 7:54:44 AM MST: Maven Builder: FULL_BUILD 4/7/11 7:54:44 AM MST: [WARN] 4/7/11 7:54:44 AM MST: [WARN] Some problems were encountered while building the effective model for com.springsource:greenhouse:war:1.0.0-BUILD-SNAPSHOT4/7/11 7:54:44 AM MST: [WARN] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 418, column 124/7/11 7:54:44 AM MST: [WARN] 'distributionManagement.snapshotRepository.id' must not be 'local', this identifier is reserved for the local repository, using it for other repositories will corrupt your repository metadata. @ line 575, column 84/7/11 7:54:44 AM MST: [WARN] 4/7/11 7:54:44 AM MST: [WARN] It is highly recommended to fix these problems because they threaten the stability of your build.4/7/11 7:54:44 AM MST: [WARN] 4/7/11 7:54:44 AM MST: [WARN] For this reason, future Maven versions might no longer support building such malformed projects.4/7/11 7:54:44 AM MST: [WARN] 4/7/11 7:54:44 AM MST: [WARN] The POM for joda-time:joda-time-jsptags:jar:1.0.2 is missing, no dependency information available4/7/11 7:54:45 AM MST: [WARN] The requested profile "greenhouse-embedded" could not be activated because it does not exist.4/7/11 7:54:45 AM MST: Build errors for greenhouse; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.2:compile (default) on project greenhouse: Execution default of goal org.codehaus.mojo:aspectj-maven-plugin:1.2:compile failed: Plugin org.codehaus.mojo:aspectj-maven-plugin:1.2 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:1.4.2 at specified path C:\Program Files\Java\jre6/../lib/tools.jar

I want to follow their mobile tutorials but I am stuck here.

Any help or pointers would be appreciated.

Thank you

Best Solution

You need a JDK, a JRE is not enougth.

May you need to change you environment variables (JAVA_HOME, PATH) , that they point to the JDK and not the JRE.

Could not find artifact com.sun:tools:jar:1.4.2 at specified path C:\Program Files\Java\jre6/../lib/tools.jar

tools.jar is in the jdk\lib directory, but not in the jre6\lib or jdk\jre\lib!