maven “churchofjesuschrist.org” issue

huangapple go评论74阅读模式
英文:

maven "churchofjesuschrist.org" issue

问题

  1. 我使用IntelliJ创建了一个虚拟的Java项目,使用了Maven模板。
  2. 编辑了我的 pom.xml 文件,并添加了以下内容:
<dependency>
  <groupId>com.oracle</groupId>
  <artifactId>ojdbc6</artifactId>
  <version>12.2.0.1</version>
</dependency>
  1. 这个库出现了错误,如果我在本地仓库查看下载的文件,我看到了以下内容:
<!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;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。

英文:
  1. I have created a dummy java project with IntelliJ using the maven template

  2. Edited my pom.xml and added the following:

    &lt;dependency&gt;
    &lt;groupId&gt;com.oracle&lt;/groupId&gt;
    &lt;artifactId&gt;ojdbc6&lt;/artifactId&gt;
    &lt;version&gt;12.2.0.1&lt;/version&gt;
    &lt;/dependency&gt;
    
  3. 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
    &lt;!DOCTYPE html&gt;
    &lt;html xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;
    &lt;head&gt;
    &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
    &lt;title&gt;Out of Service&lt;/title&gt;
    &lt;style&gt;
    ... some style ...
    &lt;/style&gt;
    &lt;/head&gt;
    &lt;body id=&quot;error-page&quot;&gt;
    &lt;div class=&quot;supercenter&quot;&gt;
    &lt;h1&gt;This website is down for maintenance.&lt;/h1&gt;
    &lt;p&gt;We apologize for the inconvenience. Please come back later.&lt;/p&gt;
    &lt;p&gt;&lt;a href=&quot;javascript:history.back()&quot;&gt;Go Back&lt;/a&gt;.&lt;/p&gt;
    &lt;p&gt;Please check the URL for proper spelling and capitalization.
    If you&#39;re having trouble locating a page on churchofjesuschrist.org, try visiting
    &lt;a href=&quot;https://www.churchofjesuschrist.org/&quot;&gt;churchofjesuschrist.org&lt;/a&gt;
    or enter a search term in the field below.&lt;/p&gt;
    &lt;div id=&quot;search&quot;&gt;
    &lt;form accept-charset=&quot;utf-8&quot; method=&quot;get&quot; action=&quot;https://www.churchofjesuschrist.org/search&quot;&gt;
    &lt;input type=&quot;hidden&quot; name=&quot;lang&quot; value=&quot;eng&quot;&gt;
    &lt;span class=&quot;search-field&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;query&quot; maxlength=&quot;150&quot; class=&quot;ac_input&quot;&gt;&lt;/span&gt;
    &lt;input type=&quot;submit&quot; value=&quot;⌕&quot; class=&quot;search-button&quot;&gt;
    &lt;/form&gt;
    &lt;/div&gt;
    &lt;br&gt;
    &lt;p&gt;&lt;a href=&quot;https://www.churchofjesuschrist.org/tools/feedback?lang=eng&amp;amp;body=Error%3ahttps%3a//www.churchofjesuschrist.org/lb&quot;&gt;Leave Feedback&lt;/a&gt;&lt;/p&gt;
    &lt;div class=&quot;pf-logo&quot;&gt;
    &lt;a href=&quot;https://www.churchofjesuschrist.org/&quot; class=&quot;ldschurch-logotype&quot;&gt;
    &lt;span class=&quot;ldschurch-logotype__text&quot;&gt;The Church of Jesus Christ of Latter-day Saints&lt;/span&gt;
    &lt;/a&gt;
    &lt;/div&gt;
    &lt;/div&gt;
    &lt;/body&gt;
    &lt;/html&gt;
    

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.

huangapple
  • 本文由 发表于 2020年5月29日 04:20:42
  • 转载请务必保留本文链接:https://go.coder-hub.com/62073840.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定