SpringBoot项目报错:[WARNING] The requested profile "pom.xml" could not be activated because it does not

SpringBoot项目中报错:

[WARNING] The requested profile "pom.xml" could not be activated because it does not exist.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project springDemo1: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?


问题原因在于你的maven仓库的问题,请检查你的maven仓库配置对了没有,同时检查你的镜像地址,因为这个是由于你的pom.xml找不到,所以无法下载各种jar导致的错误,这都是小问题
D:\soft\jdk\bin\java.exe -Dmaven.multiModuleProjectDirectory=D:\ideaPro\surveyking-master\server\rdbms -Dmaven.home=D:\soft\maven\apache-maven-3.6.3 -Dclassworlds.conf=D:\soft\maven\apache-maven-3.6.3\bin\m2.conf "-Dmaven.ext.class.path=D:\soft\IntelliJ IDEA 2021.2.2\plugins\maven\lib\maven-event-listener.jar" "-javaagent:D:\soft\IntelliJ IDEA 2021.2.2\lib\idea_rt.jar=59001:D:\soft\IntelliJ IDEA 2021.2.2\bin" -Dfile.encoding=UTF-8 -classpath D:\soft\maven\apache-maven-3.6.3\boot\plexus-classworlds-2.6.0.jar;D:\soft\maven\apache-maven-3.6.3\boot\plexus-classworlds.license org.codehaus.classworlds.Launcher -Didea.version=2021.2.2 -s D:\soft\maven\apache-maven-3.6.3\conf\settings.xml install -P dev [INFO] Scanning for projects... [INFO] [INFO] ------------------------< cn.surveyking:rdbms >------------------------- [INFO] Building rdbms v1.8.2 [INFO] --------------------------------[ jar ]--------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.548 s [INFO] Finished at: 2025-04-01T17:57:09+08:00 [INFO] ------------------------------------------------------------------------ [WARNING] The requested profile "dev" could not be activated because it does not exist. [ERROR] Failed to execute goal on project rdbms: Could not resolve dependencies for project cn.surveyking:rdbms:jar:v1.8.2: Failed to collect dependencies at cn.surveyking:shared:jar:v1.8.2: Failed to read artifact descriptor for cn.surveyking:shared:jar:v1.8.2: Failure to find cn.surveyking:survey-server:pom:${revision} in http://maven.aliyun.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException Process finished with exit code 1
最新发布
04-02
[INFO] Scanning for projects... [INFO] [INFO] ---------------< com.longshare.ta:parameter-center-run >---------------- [INFO] Building parameter-center-run 2023.7-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [WARNING] The POM for com.longshare.ta:parameter-center-support:jar:2023.7-SNAPSHOT is missing, no dependency information available [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.463 s [INFO] Finished at: 2023-07-16T21:44:34+08:00 [INFO] ------------------------------------------------------------------------ [WARNING] The requested profile "as" could not be activated because it does not exist. [ERROR] Failed to execute goal on project parameter-center-run: Could not resolve dependencies for project com.longshare.ta:parameter-center-run:jar:2023.7-SNAPSHOT: Failure to find com.longshare.ta:parameter-center-support:jar:2023.7-SNAPSHOT in https://repo.91asl.com:9443/nexus/repository/maven-public/ was cached in the local repository, resolution will not be reattempted until the update interval of maven-public has elapsed or updates are forced -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException Process finished with exit code 1
07-17
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值