Scene description
When a relies on B to run a project, the class file in B project cannot be found
The project dependency is intact. There is no problem that the class cannot be found, but an error is reported during operation
Solution:
check whether the JDK
configured in idea is consistent with the environment, and whether project B is a runnable project. If it is a runnable project, add the following contents to the POM
file (this problem is caused by bloggers)
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.xxx</mainClass>
<skip>true</skip>
</configuration>
</plugin>
someone runs successfully after checking the following
If there are other solutions, please leave a message
Read More:
- Maven compiles Scala and reports an error stackoverflowerror
- IDEA reports an error Could not reserve enough space for xxxxKB object heap processing
- The Ajax return value reports an error, and the spring boot development Ajax return value reports an error
- Git under Windows reports an error: warning: LF will be replaced by CRLF in ××××.××
- [Solved] A needed class was not found. This could be due to an error in your runpath. Missing class: scala/co
- An error was reported when Maven package was running the packaged jar package: there is no main list attribute in xxx.jar, which can be solved by configuring Maven plugin
- Android studio reports an error when running the main() method
- [kubernetes] the pod instance of calico node always reports an error and restarts
- [Solved] Jquery addclass reports an error under Firefox
- [Solved] Laravel reports an error when executing composer update
- The index.nvue page of uniapp reports an error about CSS
- mybatis-plus calls its own selectById method and reports an error: org.apache.ibatis.binding.BindingException:
- [Solved] Unreal Engine Error: Widget Blueprint could not be loaded because it derives from an invalid class
- [Solved] Unity3d reports an error using the opencv plug-in: unsafe code may only appear if compiling with/unsafe.
- The pip installation package under Windows reports an error: Microsoft Visual C++ 9.0 is required Unable to find vcvarsall.bat
- [Solved] QT error: the packaged exe of Enigma virtual box reports an error cannot load library qt5core.dll
- Vue Import Baidu map error: BMap is not defined, eslint BMap reports an error
- [Solved] “Field pet in XXX.HelloController required a bean of type ‘XXX.Pet‘ that could not be found.“
- Log4j2 reports ERROR StatusLogger Unrecognized format specifier
- The SDK of Android webrtc compiled with Ninja – C out / release command reported an error, and the Android NDK processing method could not be found