SOFA框架跨包调用报错NoClassDefFoundError

 

 

 报错信息:

java.lang.NoClassDefFoundError

乍一看是找不到这个包,POM也加了  <dependency>  依赖,

        <dependency>

            <groupId>A</groupId>

            <artifactId>B</artifactId>

        </dependency>

 

但是就是报错无法调用。

实际上POM里还需要添加

        <artifactItem>

              <groupId>A</groupId>

              <artifactId>B</artifactId>

        </artifactItem>

 

原因是SOFA版本过低,所以需要添加<artifactItem>来支持跨包调用。

相关文章:

  • 2021-05-07
  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
  • 2021-09-24
  • 2021-12-21
  • 2022-12-23
  • 2021-08-17
猜你喜欢
  • 2021-07-01
  • 2021-08-13
  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
  • 2021-10-06
  • 2021-09-16
相关资源
相似解决方案