英文:
maven "churchofjesuschrist.org" issue
问题
- 我使用IntelliJ创建了一个虚拟的Java项目,使用了Maven模板。
- 编辑了我的 pom.xml 文件,并添加了以下内容:
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>12.2.0.1</version>
</dependency>
- 这个库出现了错误,如果我在本地仓库查看下载的文件,我看到了以下内容:
<!DOCTYPE html>
<html xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Out of Service</title>
<style>
... 一些样式 ...
</style>
</head>
<body id="error-page">
<div class="supercenter">
<h1>This website is down for maintenance.</h1>
<p>We apologize for the inconvenience. Please come back later.</p>
<p><a href="javascript:history.back()">Go Back</a>.</p>
<p>Please check the URL for proper spelling and capitalization.
If you're having trouble locating a page on churchofjesuschrist.org, try visiting
<a href="https://www.churchofjesuschrist.org/">churchofjesuschrist.org</a>
or enter a search term in the field below.</p>
<div id="search">
<form accept-charset="utf-8" method="get" action="https://www.churchofjesuschrist.org/search">
<input type="hidden" name="lang" value="eng">
<span class="search-field"><input type="text" name="query" maxlength="150" class="ac_input"></span>
<input type="submit" value="⌕" class="search-button">
</form>
</div>
<br>
<p><a href="https://www.churchofjesuschrist.org/tools/feedback?lang=eng&amp;body=Error%3ahttps%3a//www.churchofjesuschrist.org/lb">Leave Feedback</a></p>
<div class="pf-logo">
<a href="https://www.churchofjesuschrist.org/" class="ldschurch-logotype">
<span class="ldschurch-logotype__text">The Church of Jesus Christ of Latter-day Saints</span>
</a>
</div>
</div>
</body>
</html>
Maven 中央仓库是否有问题或中断?有什么想法吗?这种情况也发生在其他库中,我只展示了一个简单的例子,但这是一个旧项目,有许多其他的依赖项,前面的示例只是以简单的方式展示了问题,以便每个人都可以复制。当我运行 mvn 时,我看到了这个:
Downloading from codelds: https://code.lds.org/nexus/content/groups/main-repo/com/oracle/ojdbc6/12.2.0.1/ojdbc6-12.2.0.1.pom
这个URL是所有依赖文件都在下载的URL。
英文:
-
I have created a dummy java project with IntelliJ using the maven template
-
Edited my pom.xml and added the following:
<dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc6</artifactId> <version>12.2.0.1</version> </dependency>
-
The library comes with errors, if I cat the downloaded file at my local repo, this is what I see:
$ cat .m2/repository/com/oracle/ojdbc6/12.2.0.1/ojdbc6-12.2.0.1.jar <!DOCTYPE html> <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Out of Service</title> <style> ... some style ... </style> </head> <body id="error-page"> <div class="supercenter"> <h1>This website is down for maintenance.</h1> <p>We apologize for the inconvenience. Please come back later.</p> <p><a href="javascript:history.back()">Go Back</a>.</p> <p>Please check the URL for proper spelling and capitalization. If you're having trouble locating a page on churchofjesuschrist.org, try visiting <a href="https://www.churchofjesuschrist.org/">churchofjesuschrist.org</a> or enter a search term in the field below.</p> <div id="search"> <form accept-charset="utf-8" method="get" action="https://www.churchofjesuschrist.org/search"> <input type="hidden" name="lang" value="eng"> <span class="search-field"><input type="text" name="query" maxlength="150" class="ac_input"></span> <input type="submit" value="⌕" class="search-button"> </form> </div> <br> <p><a href="https://www.churchofjesuschrist.org/tools/feedback?lang=eng&amp;body=Error%3ahttps%3a//www.churchofjesuschrist.org/lb">Leave Feedback</a></p> <div class="pf-logo"> <a href="https://www.churchofjesuschrist.org/" class="ldschurch-logotype"> <span class="ldschurch-logotype__text">The Church of Jesus Christ of Latter-day Saints</span> </a> </div> </div> </body> </html>
Is there some kind of issue/outage with maven central repository ? any ideas?
It is happening with other libs too, I just show one to keep it simple, but this is an old project with many other dependencies, the previous example just show the issue in a simple way so everyone can replicate it
When I run mvn I see this:
Downloading from codelds: https://code.lds.org/nexus/content/groups/main-repo/com/oracle/ojdbc6/12.2.0.1/ojdbc6-12.2.0.1.pom
That URL is the one beign downloaded on all dependency files
答案1
得分: 3
所以,首先,mvnrepository.com 不是 MavenCentral,并且与其无关。
MavenCentral 不包含 ojdbc6.jar
,我不知道其他获取它的途径是否合法。
那个现在处于“维护中”状态的奇怪仓库可能出现在您的 settings.xml
、POM 文件、或者您的父 POM 文件中,甚至可能出现在依赖项中。
英文:
So, first of all, mvnrepository.com is not MavenCentral and has nothing to do with it.
MavenCentral does not contain ojdbc6.jar
and I don't know whether other sources for it are legal.
That strange repository that is now "down for maintenance" must be somewhere in your settings.xml
, your POM or one of your parent POMs or maybe even dependencies.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论