English 中文(简体)
Maven 不使用本地回购
原标题:Maven not using the local repo

I m using maven without m2e, my mvn install is failing because a plugin is not available anymore on maven central. I m working with an old pom.xml dating from 2008 and must uses maven-cdk-plugin version 3.3.3.Final.

Since it was not available anymore I took it on someone else computer and putted it in my .m2 local repo. .m2org ichfacescdkmaven-cdk-plugin3.3.3.Final

然而,我仍然得到这个错误。

[ERROR] Plugin org.richfaces.cdk:maven-cdk-plugin:3.3.3.Final or one of its depe
ndencies could not be resolved: Failed to read artifact descriptor for org.richf
aces.cdk:maven-cdk-plugin:jar:3.3.3.Final: Failure to find org.richfaces.cdk:mav
en-cdk-plugin:pom:3.3.3.Final in http://uk.maven.org/maven2 was cached in the lo
cal repository, resolution will not be reattempted until the update interval of
UK has elapsed or updates are forced -> [Help 1]

为什么他要检查马文2, 它在我的本地回购里?

感谢 谢谢

最佳回答
问题回答

首先,您提到的maven-cdk-plugin从未出现在Maven Central上, 原因是它可以通过 richfaces 仓库提供, 因此您也必须配置使用 richfaces 仓库。 这导致您使用一个仓库管理器, 如 < a href=" http://archiva.apache.org" 。 org" rel= "nofollow", < a href=" http://www.jfrog.org" rel="nofollow" > > Artifactory 或 < a href=" "http://nexus.sonatymbly.org/" rel=" nofolpol" > Nexus (fabetic 顺序) 。 所以您需要配置使用 richfaces 仓库 。

见:https://community.jbos.org/wiki/MavenRepostory 如何做到这一点。

您可以在此看到插件存在于此仓库 < a href=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

一件非常重要的事。在玛文中心的任何艺术品 以后都不会被删除, 否则这个“坚固”将打破全世界的建筑 '/坚固'。

In case you are using m2e, first you have to check Maven user settings(Window->Preference->Maven->User Settings) In that you have first empty the input field of Global Settings. Then in User Settings you have to map the Settings.xml file like C:Userso3355.m2Settings.xml. Lastly, you have to map the local Repository folder location in local Repository input field like : C:Userso3355.m2 epository then try to build the project.

"https://i.sstatic.net/sGTqA.png" alt="Kindly, 找到图像以更清晰地查看"/ >





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签