maven项目在打包编译时提示:

   程序包org.junit不存在和编码GBK的不可映射字符问题解决

解决办法:

    将pom中junit依赖中的scope给注释掉 

        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.10</version>
            <!-- 表示开发的时候引入,发布的时候不会加载此包
            <scope>test</scope>
         -->
</dependency>

 

相关文章:

  • 2021-07-11
  • 2021-05-22
  • 2022-12-23
  • 2021-07-08
  • 2021-06-24
  • 2021-10-08
  • 2021-06-14
  • 2021-09-14
猜你喜欢
  • 2021-09-07
  • 2022-01-14
  • 2021-08-25
相关资源
相似解决方案