在Eclipse中添加了Javascript的一些第大三方库的文件时,会提示构建错误,如下图

Eclipse中避免导入Javascript三方库导致的构建错误

此时,可以通过如下步骤解决:

1. 鼠标右击项目名"xxx-ui" project --> "properties"
2. 选择 "JavaScript" --> "Include Path"

Eclipse中避免导入Javascript三方库导致的构建错误
3. 选择 "Source" --> "Exclude" for your project --> click "Add"

Eclipse中避免导入Javascript三方库导致的构建错误
4. Add directory "src\main\webapp\assets\libs\" for "Exclusion patterns" area.

Eclipse中避免导入Javascript三方库导致的构建错误

点击“完成”之后,Eclipse在构建当前项目时,就会忽略检查添加的路径下的目录。

转载于:https://my.oschina.net/u/658505/blog/678340

相关文章:

  • 2021-09-09
  • 2021-09-22
  • 2022-12-23
  • 2021-07-15
  • 2022-01-09
  • 2021-11-13
  • 2021-07-29
猜你喜欢
  • 2021-11-17
  • 2022-03-02
  • 2022-01-15
  • 2021-09-15
  • 2021-05-30
  • 2022-12-23
  • 2021-09-07
相关资源
相似解决方案