Cannot resolve plugin org.apache.maven.plugins:org.apache.maven.plugins:maven-clean-plugin:3.0.1

本文分析了Maven插件无法解析的问题,并提供了详细的排查思路。主要包括:检查pom文件配置、maven私服配置及插件版本等。通过更换mavensetting.xml配置到官方设置并下载对应插件的方法来解决问题。

记录一次无法解析maven插件 :XXX问题解决

原因分析

1.pom文件配置有误
2.maven私服配置有误
3.maven私服中没有相对应的插件版本

排查思路

1.查看pom文件(出现问题几率不大)
2.查看私服配置(本次中枪),更换maven setting.xml配置为官方配置,下载对应插件后在更换为官网配置
3.有时间在补全吧。。。。。
Warning: Flutter support for your project&#39;s Android Gradle Plugin version (Android Gradle Plugin version 8.1.0) will soon be dropped. Please upgrade your Android Gradle Plugin version to a version of at least Android Gradle Plugin version 8.3.0 soon. Alternatively, use the flag "--android-skip-build-dependency-validation" to bypass this check. Potential fix: Your project&#39;s AGP version is typically defined in the plugins block of the `settings.gradle` file (F:\projects\flutter\hbw_edu_app\android/settings.gradle), by a plugin with the id of com.android.application. If you don&#39;t see a plugins block, your project was likely created with an older template version. In this case it is most likely defined in the top-level build.gradle file (F:\projects\flutter\hbw_edu_app\android/build.gradle) by the following line in the dependencies block of the buildscript: "classpath &#39;com.android.tools.build:gradle:<version>&#39;". 2 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task &#39;:app:checkDebugAarMetadata&#39;. > Could not resolve all files for configuration &#39;:app:debugRuntimeClasspath&#39;. > Failed to transform compressor-3.0.1.aar (id.zelory:compressor:3.0.1) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}. > Could not download compressor-3.0.1.aar (id.zelory:compressor:3.0.1) > Could not get resource &#39;https://repo.maven.apache.org/maven2/id/zelory/compressor/3.0.1/compressor-3.0.1.aar&#39;. > Could not HEAD &#39;https://repo.maven.apache.org/maven2/id/zelory/compressor/3.0.1/compressor-3.0.1.aar&#39;. > Got socket exception during request. It might be caused by SSL misconfiguration > Connect to repo.maven.apache.org:443 [repo.maven.apache.org/146.75.112.215] failed: Connection refused: getsockopt > Failed to transform fijkplayer-full-0.7.16.aar (com.befovy.fijkplayer:fijk
最新发布
08-24
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值