600字范文,内容丰富有趣,生活中的好帮手!
600字范文 > 【SpringBoot】解决Build失败 提示 程序包xxx不存在 找不到符号

【SpringBoot】解决Build失败 提示 程序包xxx不存在 找不到符号

时间:2021-07-05 22:43:58

相关推荐

【SpringBoot】解决Build失败 提示 程序包xxx不存在 找不到符号

一、程序包xxx不存在 找不到符号

我在引入依赖之后,写了个工具类,然后运行发现build失败了。

提示 程序包xxx不存在 找不到符号

二、解决方案

mvn idea:idea

[INFO] Scanning for projects...Downloading from central: https://repo./maven2/org/apache/johnzon/johnzon-maven-plugin/1.2.15/johnzon-maven-plugin-1.2.15.pomDownloaded from central: https://repo./maven2/org/apache/johnzon/johnzon-maven-plugin/1.2.15/johnzon-maven-plugin-1.2.15.pom (4.0 kB at 3.2 kB/s)Downloading from central: https://repo./maven2/org/apache/johnzon/johnzon/1.2.15/johnzon-1.2.15.pomDownloaded from central: https://repo./maven2/org/apache/johnzon/johnzon/1.2.15/johnzon-1.2.15.pom (27 kB at 55 kB/s)Downloading from central: https://repo./maven2/org/apache/johnzon/johnzon-maven-plugin/1.2.15/johnzon-maven-plugin-1.2.15.jarDownloaded from central: https://repo./maven2/org/apache/johnzon/johnzon-maven-plugin/1.2.15/johnzon-maven-plugin-1.2.15.jar (31 kB at 58 kB/s)Downloading from central: https://repo./maven2/org/apache/maven/plugins/maven-idea-plugin/maven-metadata.xmlDownloaded from central: https://repo./maven2/org/apache/maven/plugins/maven-idea-plugin/maven-metadata.xml (471 B at 1.3 kB/s)Downloading from central: https://repo./maven2/org/apache/maven/plugins/maven-idea-plugin/2.2.1/maven-idea-plugin-2.2.1.pomDownloaded from central: https://repo./maven2/org/apache/maven/plugins/maven-idea-plugin/2.2.1/maven-idea-plugin-2.2.1.pom (6.6 kB at 16 kB/s)Downloading from central: https://repo./maven2/org/apache/maven/plugins/maven-idea-plugin/2.2.1/maven-idea-plugin-2.2.1.jarDownloaded from central: https://repo./maven2/org/apache/maven/plugins/maven-idea-plugin/2.2.1/maven-idea-plugin-2.2.1.jar (54 kB at 117 kB/s)[INFO] [INFO] -------------------< com.metaxiaoyu:SpringBoot-JWT >--------------------[INFO] Building SpringBoot-JWT 0.0.1-SNAPSHOT[INFO] --------------------------------[ jar ]---------------------------------[INFO] [INFO] >>> maven-idea-plugin:2.2.1:idea (default-cli) > generate-resources @ SpringBoot-JWT >>>[INFO] [INFO] <<< maven-idea-plugin:2.2.1:idea (default-cli) < generate-resources @ SpringBoot-JWT <<<[INFO] [INFO] [INFO] --- maven-idea-plugin:2.2.1:idea (default-cli) @ SpringBoot-JWT ---Downloading from central: https://repo./maven2/org/apache/maven/maven-plugin-api/2.0.1/maven-plugin-api-2.0.1.pomDownloaded from central: https://repo./maven2/org/apache/maven/maven-plugin-api/2.0.1/maven-plugin-api-2.0.1.pom (643 B at 1.7 kB/s)Downloading from central: https://repo./maven2/org/apache/maven/maven/2.0.1/maven-2.0.1.pomDownloaded from central: https://repo./maven2/org/apache/maven/maven/2.0.1/maven-2.0.1.pom (11 kB at 29 kB/s)Downloading from central: https://repo./maven2/org/apache/maven/maven-project/2.0.1/maven-project-2.0.1.pomDownloaded from central: https://repo./maven2/org/apache/maven/maven-project/2.0.1/maven-project-2.0.1.pom (1.7 kB at 4.6 kB/s)Downloading from central: https://repo./maven2/org/apache/maven/maven-profile/2.0.1/maven-profile-2.0.1.pomDownloaded from central: https://repo./maven2/org/apache/maven/maven-profile/2.0.1/maven-profile-2.0.1.pom (1.5 kB at 4.0 kB/s)Downloading from central: https://repo./maven2/org/apache/maven/maven-model/2.0.1/maven-model-2.0.1.pomDownloaded from central: https://repo./maven2/org/apache/maven/maven-model/2.0.1/maven-model-2.0.1.pom (2.5 kB at 6.7 kB/s)Downloading from central: https://repo./maven2/org/codehaus/plexus/plexus-utils/1.0.5/plexus-utils-1.0.5.pomDownloaded from central: https://repo./maven2/org/codehaus/plexus/plexus-utils/1.0.5/plexus-utils-1.0.5.pom (918 B at 2.4 kB/s)Downloading from central: https://repo./maven2/org/apache/maven/maven-artifact-manager/2.0.1/maven-artifact-manager-2.0.1.pomDownloaded from central: https://repo./maven2/org/apache/maven/maven-artifact-manager/2.0.1/maven-artifact-manager-2.0.1.pom (1.4 kB at 3.7 kB/s)Downloading from central: https://repo./maven2/org/apache/maven/maven-repository-metadata/2.0.1/maven-repository-metadata-2.0.1.pomDownloaded from central: https://repo./maven2/org/apache/maven/maven-repository-metadata/2.0.1/maven-repository-metadata-2.0.1.pom (1.3 kB at 3.5 kB/s)Downloading from central: https://repo./maven2/org/apache/maven/maven-artifact/2.0.1/maven-artifact-2.0.1.pomDownloaded from central: https://repo./maven2/org/apache/maven/maven-artifact/2.0.1/maven-artifact-2.0.1.pom (765 B at 2.1 kB/s)Downloading from central: https://repo./maven2/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-5/wagon-provider-api-1.0-alpha-5.pomDownloaded from central: https://repo./maven2/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-5/wagon-provider-api-1.0-alpha-5.pom (4.6 kB at 12 kB/s)Downloading from central: https://repo./maven2/dom4j/dom4j/1.6.1/dom4j-1.6.1.pomDownloaded from central: https://repo./maven2/dom4j/dom4j/1.6.1/dom4j-1.6.1.pom (6.8 kB at 18 kB/s)Downloading from central: https://repo./maven2/org/apache/maven/maven-plugin-api/2.0.1/maven-plugin-api-2.0.1.jarDownloading from central: https://repo./maven2/org/apache/maven/maven-project/2.0.1/maven-project-2.0.1.jarDownloading from central: https://repo./maven2/org/apache/maven/maven-profile/2.0.1/maven-profile-2.0.1.jarDownloading from central: https://repo./maven2/org/apache/maven/maven-artifact/2.0.1/maven-artifact-2.0.1.jarDownloading from central: https://repo./maven2/org/apache/maven/maven-artifact-manager/2.0.1/maven-artifact-manager-2.0.1.jarDownloaded from central: https://repo./maven2/org/apache/maven/maven-plugin-api/2.0.1/maven-plugin-api-2.0.1.jar (8.2 kB at 22 kB/s)Downloading from central: https://repo./maven2/org/apache/maven/maven-repository-metadata/2.0.1/maven-repository-metadata-2.0.1.jarDownloaded from central: https://repo./maven2/org/apache/maven/maven-profile/2.0.1/maven-profile-2.0.1.jar (30 kB at 39 kB/s)Downloading from central: https://repo./maven2/org/apache/maven/maven-model/2.0.1/maven-model-2.0.1.jarDownloaded from central: https://repo./maven2/org/apache/maven/maven-repository-metadata/2.0.1/maven-repository-metadata-2.0.1.jar (20 kB at 25 kB/s)Downloading from central: https://repo./maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-9/plexus-container-default-1.0-alpha-9.jarDownloaded from central: https://repo./maven2/org/apache/maven/maven-artifact/2.0.1/maven-artifact-2.0.1.jar (78 kB at 80 kB/s)Downloading from central: https://repo./maven2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jarDownloaded from central: https://repo./maven2/org/apache/maven/maven-artifact-manager/2.0.1/maven-artifact-manager-2.0.1.jar (49 kB at 49 kB/s)Downloading from central: https://repo./maven2/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-5/wagon-provider-api-1.0-alpha-5.jarDownloaded from central: https://repo./maven2/org/apache/maven/maven-project/2.0.1/maven-project-2.0.1.jar (105 kB at 95 kB/s)Downloading from central: https://repo./maven2/dom4j/dom4j/1.6.1/dom4j-1.6.1.jarDownloaded from central: https://repo./maven2/org/apache/maven/maven-model/2.0.1/maven-model-2.0.1.jar (80 kB at 60 kB/s)Downloading from central: https://repo./maven2/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jarDownloaded from central: https://repo./maven2/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-5/wagon-provider-api-1.0-alpha-5.jar (52 kB at 36 kB/s)Downloaded from central: https://repo./maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-9/plexus-container-default-1.0-alpha-9.jar (195 kB at 125 kB/s)Downloaded from central: https://repo./maven2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar (169 kB at 106 kB/s)Downloaded from central: https://repo./maven2/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar (109 kB at 62 kB/s)Downloaded from central: https://repo./maven2/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar (314 kB at 163 kB/s)[INFO] Not adding resource directory as it has an incompatible target path or filtering: /Users/lixiaoyu/onedrive/code/gs-securing-web/SpringBoot-JWT/src/main/resources[INFO] jdkName is not set, using [java version1.8.0_311] as default.[INFO] ------------------------------------------------------------------------[INFO] BUILD SUCCESS[INFO] ------------------------------------------------------------------------[INFO] Total time: 10.982 s[INFO] Finished at: -11-22T17:42:50+08:00[INFO] ------------------------------------------------------------------------

再次运行,显示build成功。

三、总结

遇到引入依赖后,还是提示没找到,就执行mvn idea:idea

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。