JHipster的正确Eclipse设置是什么? [英] What is the correct Eclipse setup for JHipster?
问题描述
我第一次尝试在STS Eclipse中编译jhipster项目时遇到了这个错误.
I am getting this error from the first attempt to get a jhipster project compiled in STS Eclipse.
The type org.springframework.core.NestedRuntimeException cannot be resolved. It is indirectly referenced from required .class files CustomPersistentRememberMeServices.java /us-modeldrivers-jhipsterTest003/src/main/java/us/modeldrivers/jhipsterTest003/security line 1 Java Problem
我到目前为止的过程:
- 安装jhipster并运行项目构建
- 在STS Eclipse中创建Spring项目
- 将pom更新为jhipster生成的pom
- 将jhipster代码复制到eclipse项目中的相应程序包中
- 得到找不到tools.jar错误,因此强制eclipse使用JDK,而不是JRE
- 出现无法解决javax.servlet.http.HttpServletResponse"错误,因此将Tomcat运行时库添加到构建路径
- 获取未找到NestedRuntimeException错误,找不到任何答案,意识到必须做的是根本错误的事情.
非常感谢收到任何帮助.
Any help gratefully received.
编辑2014-03-17 我安装了STS的新版本,包括32位和较旧的版本-结果相同-缺少jar文件.
EDIT 2014-03-17 I installed fresh versions of STS, including 32 bit and older versions - same result - missing jar files.
我可以通过添加
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-servlet_2.5_spec</artifactId>
<version>1.2</version>
</dependency>
我可以通过添加
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>3.1.0.RELEASE</version>
</dependency>
但是jhipster不能期望您在pom上添加核心弹力.
But jhipster cant expect you to add core spring to the pom to work.
在STS之外一定有什么问题吗?
Something must be wrong outside STS?
在Maven尝试将所需的jar文件下载到Users \ IBP.m2 \ repository \ org \ springframework \ spring-instrument \ 3.0.5.RELEASE之前,我遇到了问题.如果失败,则不再重试.因此,您会找到失败的内容并删除其目录-强制重新下载.但是,在这种情况下,其他项目在.m2中丢失的东西就消失了.
I have had the problem before that Maven tries to download the required jar files to Users\IBP.m2\repository\org\springframework\spring-instrument\3.0.5.RELEASE (for example). If this fails then it doesnt try again. So you find the thing that failed and delete its directory - that forces a re-download. But in this case the things that said to be missing are in .m2 from other projects.
无论如何,这完全是个猜测,我完全被困住了.
Anyway, that is a total guess, and I am totally stuck.
推荐答案
我执行了以下步骤,并且有效
I did the following steps and it works
- 安装sts 3.4.0版本
- 使用yo jhipster命令生成新项目
- 将生成的项目导入sts
- 作为应用程序运行Application.java
一切正常.
这篇关于JHipster的正确Eclipse设置是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!