gpt4 book ai didi

eclipse - m2eclipse 问题 ArtifactTransferException - 但是 pom.xml 从命令行编译/安装

转载 作者:行者123 更新时间:2023-12-04 13:07:19 25 4
gpt4 key购买 nike

<project xmlns="http://maven.apache.org/POM/4.0.0"  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<groupId>com.cloudst</groupId>
<artifactId>cloudst</artifactId>
<version>0.1.2</version>
<packaging>jar</packaging>

<name>cloudst</name>
<url>http://maven.apache.org</url>

<repositories>
<repository>
<id>com.springsource.repository.bundles.release</id>
<url>http://repository.springsource.com/maven/bundles/release/</url>
</repository>
<repository>
<id>EclipseLink</id>
<url>http://download.eclipse.org/rt/eclipselink/maven.repo</url>
</repository>
<repository>
<id>java.net2</id>
<name>Repository hosting the jee6 artifacts</name>
<url>http://download.java.net/maven/2</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>org.kitchen-eel</groupId>
<artifactId>json-schema-validator</artifactId>
<version>${kitchen-eel.version}</version>
</dependency>

<build>
<finalName>cloudst</finalName>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</build>
</project>

能够使用标准 mvn 命令从命令行成功清理、编译和安装此项目...

但是,在 Eclipse Juno 的问题 Pane 中,我有以下 2 个错误:
  • 缺少 Artifact org.kitchen-eel:json-schema-validator:jar:1.2.1 pom.xml/com.cloudst line 45 Maven 依赖问题
  • ArtifactTransferException:无法传输 org.kitchen-eel:json-schema-validator:jar:1.2.1

  • 来自 http://repo.maven.apache.org/maven2缓存在本地存储库中,
    在 central 的更新间隔达到之前不会重新尝试解析
    已过去或强制更新。原始错误:无法传输 Artifact
    org.kitchen-eel:json-schema-validator:jar:1.2.1 从/到中央
    (http://repo.maven.apache.org/maven2):

    转账失败 http://repo.maven.apache.org/maven2/org/kitchen-eel/json-schema-validator/1.2.1/json-schema-validator-1.2.1.jar .

    为什么它在命令行中工作但 m2eclipse 发布问题?

    感谢您抽时间阅读...

    最佳答案

    这是解决 Eclipse 中 Maven 项目中可能发生的错误“ArtifactTransferException:Could not transfer artifact”的非常简短的提示。

    解决步骤:

     1. Open folder by running this text (without Quotes) in Search Explorer of Window “%USERPROFILE%\.m2″.
    2. After running above command, “m2″ folder of maven will open. Now search for file (without Quotes) “*.lastUpdated”.
    3. In this step, delete all the files found by running Step 2.
    4. Now go to Eclipse project and select “Maven | Update Dependency” or “Maven | Update Project”.

    快乐编码。

    关于eclipse - m2eclipse 问题 ArtifactTransferException - 但是 pom.xml 从命令行编译/安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13425941/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com