当前位置: 首页 > 工具软件 > OpenJFX > 使用案例 >

eclipse maven异常:Failed to read artifact descriptor for org.openjfx:javafx.base:jar

薛修能
2023-12-01

导入maven新项目后,报异常:

Failed to read artifact descriptor for org.openjfx:javafx.base:jar

控制台还带有信息,说无法从这个http://maven.oschina.net/content/groups/public/ 镜像下载jar包。赶紧到maven本地配置setting.xml看看,果然存在,于是把对应的注释掉即可:

    <mirror>
     	<id>alimaven</id>
     	<name>aliyun maven</name>
     	<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
     	<mirrorOf>central</mirrorOf>
    </mirror>

    <!--
    <mirror>
        <id>osc</id>
        <mirrorOf>*</mirrorOf>
        <url>http://maven.oschina.net/content/groups/public/</url>
    </mirror>
    -->
 类似资料: