部门要求进行一些常规性的功能封装,可是发现很多引用了第三方的jar包,如果进行二次打包成jar包,会出现java.lang.NoClassDefFoundError的异常,导致没法使用,请教该怎么解决这种问题呢?
Just add these third-party jar packages to the project's lib
The IDE seems to have options such as compileDependencies when creating Artifact. You can package dependent jar packages, but these third-party jars must be added to the library first in the project
In your project, check whether the jar package where your class is located is imported. If not, you can use mvn install to import it.
Just add these third-party jar packages to the project's lib
The IDE seems to have options such as compileDependencies when creating Artifact. You can package dependent jar packages, but these third-party jars must be added to the library first in the project
In your project, check whether the jar package where your class is located is imported. If not, you can use mvn install to import it.