首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当导入到STS中时,为什么会有这么多的验证错误出现在jhipster上呢?

当导入到STS中时,为什么会有这么多的验证错误出现在jhipster上呢?
EN

Stack Overflow用户
提问于 2014-09-17 15:15:39
回答 2查看 2.5K关注 0票数 2

我在看What is the correct Eclipse setup for JHipster?,并决定我有一个类似的问题,有足够的差异,需要发布一个单独的问题。

我能够使用yo构建并运行一个运行良好的应用程序(除了数据库之外,我选择默认值--这是本地和prod中的MySQL,加上websockets,以及CSS包中的"y“)。

然后,我可以将maven项目导入到STS3.5中,并从那里运行ok。

我唯一想弄明白的是,为什么在这个项目的STS中有这么多DTD、JSON、XML甚至一个Java错误报告时,所有这些似乎都能工作呢?在我的STS项目中,我应该选择忽略其中的一些验证,还是这些合法的jhipster错误?

错误包括:

描述资源路径定位类型

APT问题(1项)

JSR250: CommonAnnotations for Java,2.5:@PostConstruct方法不能抛出选中的异常。Application.java /pdbClient/src/main/java/com/staples/pdbc第35行注释问题

DTD问题(2项)

实体"ContentType“的声明必须以‘entity >’结尾./pdbClient/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-svgo/node_modules/svgo/node_modules/sax/examples strict.dtd 81DTD问题。。。

JSON问题(23项)

对象未关闭。/pdbClient/node_modules/bower/node_modules/bower-json/test/pkg-bower-json-malformed bower.json第1行JSON问题

意料之外的标记'/‘预期的'}‘,',’。/pdbClient/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/npmconf/node_modules/config-chain/test broken.json第10行JSON问题(等等)。。。

意外标记“<%”。期望字符串或“}”。/pdbClient/node_modules/generator-jhipster/app/templates _bower.json第4行JSON问题(等等)。。。

XML问题(30项)

元素的内容必须由格式良好的字符数据或标记组成。/pdbClient/node_modules/generator-jhipster/app/templates第4行_pom.xml问题

元素类型"slurm“必须由匹配的结束标记"”结束。/pdbClient/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-svgo/node_modules/svgo/node_modules/sax/examples第7行的大问题(等等)。。。

注释中不允许使用字符串"--“。/pdbClient/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-svgo/node_modules/svgo/node_modules/sax/examples test.xml第10行的问题(等等)。。。

XML声明中"version“后面的值必须是一个引号字符串。/pdbClient/node_modules/generator-jhipster/node_modules/cheerio/node_modules/CSSselect/test/sizzle/data第1行fries.xml问题(等等)。。。

与元素类型“列”关联的属性"defaultValueDate“的值不能包含'<‘字符。_db-changelog-001.xml /pdbClient/node_modules/generator-jhipster/app/templates/src/main/resources/config/liquibase/changelog第28行XML问题

与元素类型"cache“关联的属性"name”的值不能包含'<‘字符。/pdbClient/node_modules/generator-jhipster/app/templates/src/main/resources _ehcache.xml第20行的问题(等等)。。。

EN

回答 2

Stack Overflow用户

发布于 2015-05-02 03:22:55

下面是关于如何排除Eclipse中不想要的文件夹的更多详细信息:

排除Eclipse中的“node_modules”文件夹(基于Eclipse3.6.2)

  • 右键单击Project -> Resource ->资源筛选器
  • 然后,您应该选择:排除所有,应用于文件夹,名称匹配node_modules
  • 按ok,你就可以走了。

在src/main/webapp中还有两个文件夹应该排除在外:“bower_components”和“脚本”

为此:

  • 右键单击Project -> Javascript ->包含路径
  • 然后,您可以单击“source”选项卡并选择您的_project/src/main/webapp
  • 然后您可以选择“排除:(无) ->编辑->添加多个
  • 您可以选择“bower_components”和“脚本”,然后单击“ok”。
票数 3
EN

Stack Overflow用户

发布于 2014-09-17 20:34:05

不应该验证您的node_modules目录。它不是生成的应用程序的一部分(在.gitignore中被排除在外),因为它包含创建应用程序的模板,所以它包含一些无效的XML和JSON文件。无论如何,真正的潮人不会在Eclipse中工作:-)

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25894363

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档