我正在尝试安装 spring 的温室项目,但遇到了一些错误。
这是我正在工作的网站:greenhouse
我能够下载 eclipse git 插件并安装该项目,但它无法构建。
我的日志是
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-SNAPSHOT
4/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 12
4/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 8
4/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 available
4/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
我想学习他们的移动教程,但我被困在这里。
任何帮助或指示将不胜感激。
谢谢
最佳答案
您需要 JDK,JRE 还不够。
您可能需要更改环境变量(JAVA_HOME、PATH),使它们指向 JDK 而不是 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
位于 jdk\lib
目录中,但不在 jre6\lib
或 jdk\jre\中库
!
关于java - 本地安装 Spring 温室的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5583209/