If maven compile install no class files or can not find reference packages and classes. However, it is normal to compile manually or compile with eclipse.
Check the scope of the dependencies of the pom.xml file.
Your scope may be test or runtime. Causes compilation problems
* compile, the default value, applies to all stages, will be released with the project.
* provided, similar to compile, expects JDK, container or user to provide this dependency. Such as servlet.jar.
* runtime, only used at runtime, such as JDBC driver, suitable for running and testing phases.
* test, used only when testing, for compiling and running test code. Not released with the project.
* system, like provided, needs to explicitly provide the jar containing the dependencies, Maven will not look it up in the Repository
maven compile install no class file or can not find reference packages and classes
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326269423&siteId=291194637
Recommended
Ranking