解决办法:

  1. build path->configure build path->source,双击“conntains test source:yes” 变为“conntains test source:yes”
    新建maven项目 src/test/java文件夹显示灰色,且junit/testng JAR包也显示灰色
  2. pom文件里面去掉或注释掉test
    新建maven项目 src/test/java文件夹显示灰色,且junit/testng JAR包也显示灰色

相关文章:

  • 2021-08-30
  • 2022-12-23
  • 2021-07-12
  • 2021-04-29
  • 2021-11-21
  • 2022-12-23
  • 2021-06-10
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-04-19
  • 2021-07-23
  • 2021-08-29
  • 2021-10-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案