java - 本地安装 Spring 温室的问题

标签 java spring

我正在尝试安装 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\libjdk\jre\中库!

关于java - 本地安装 Spring 温室的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5583209/

相关文章:

java - 使用 Jackson ObjectMapper 将 Json 的一部分转换为 HashMap

java - 将任务路由到 GAE devserver 中的特定模块

Java:当特定类定义有任何参数的构造函数时,如何让编译器显示错误?

java - 在 pom.xml 中的一个 groupId 下声明多个 artifactId

java - 使用基于java的注释的Spring自动线bean

java - 匹配的通配符是严格的,但找不到元素'context :component-scan的声明

spring - 如何在 Webflux WebClient 中自定义异常?

java - 为什么javac在这种情况下可以编译

java - 可以通过 OSGI 与运行在不同服务器上的组件进行通信

java - Spring 示例应用程序