2016-04-25 183 views
-1

在AnypointStudio中创建新的支持Maven的项目时,我无法找到这个特定的Maven依赖项。当我尝试对现有的Mule项目进行试运行时,会出现同样的问题。有没有人解决这个问题 Anypoint Studio版本 - 5.4.3 骡运行时版本 - 3.6.1Mule项目中的Maven依赖关系问题

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.4:copy (copy-clover-plugins) on project tradeshift-connector: Unable to find artifact. Failure to find com.cloveretl:cloveretl-engine:zip:3.6.1 in http://repo1.maven.org/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of Central has elapsed or updates are forced 
[ERROR] 
[ERROR] Try downloading the file manually from the project website. 
[ERROR] 
[ERROR] Then, install it using the command: 
[ERROR] mvn install:install-file -DgroupId=com.cloveretl -DartifactId=cloveretl-engine -Dversion=3.6.1 -Dpackaging=zip -Dfile=/path/to/file 
[ERROR] 
[ERROR] Alternatively, if you host your own repository you can deploy the file there: 
[ERROR] mvn deploy:deploy-file -DgroupId=com.cloveretl -DartifactId=cloveretl-engine -Dversion=3.6.1 -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] 
[ERROR] 
[ERROR] 
[ERROR] com.cloveretl:cloveretl-engine:zip:3.6.1 
[ERROR] 
[ERROR] from the specified remote repositories: 
[ERROR] Central (http://repo1.maven.org/maven2/, releases=true, snapshots=true), 
[ERROR] mulesoft-releases (http://repository.mulesoft.org/releases/, releases=true, snapshots=true), 
[ERROR] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false) 
+0

我遇到了这个问题,并寻求帮助。有人不喜欢它,并投票表决。不明白什么是错的。 –

+0

只需评论该依赖关系即可。大多数时候,我们不使用它,虽然它在默认情况下出现在pom.xml当你创建一个新的Maven项目 – tortoise

+0

感谢您的建议 –

回答

0

去您当地的M2_REPO文件夹,删除/ COM/cloveretl的内容。这将迫使Maven再次拉它。

+0

没有帮助。但更新是,当我从Mule EE存储库更改为Mule版本3.7.3时,它成功下载了这个依赖关系。这让我相信版本3.6.1不存在于回购中。不知道如何验证它。 –

+0

我不认为如果你试图访问特定的依赖关系jar,Mule Version会很重要。我看着骡子发布 - ee回购,并可以在下面的位置看到cloveretl 3.6.1 zip - https://repository.mulesoft.org/nexus/content/repositories/releases-ee/com/cloveretl/cloveretl-engine/3.6。 1/cloveretl-engine-3.6.1.zip。您需要您的EE凭证才能访问此网址。 –

+0

有问题的日志显示 - http://repository.mulesoft.org/releases/ ...这不是企业回购,也不包含clover etl。你可以在浏览器中浏览它来验证。 –

0

转到本地.m2回购并删除/ com/cloveretl的内容,如其他人所建议的。

Mule正确地重新创建文件夹,但ZIP文件被称为cloveretl-engine-3.6.1.zip。 lastupdated

重命名为cloveretl-engine-3.6.1.zip,它工作正常。