检查Maven本地存储库上的工件状态 [英] Check artifacts status on maven local repository

查看:93
本文介绍了检查Maven本地存储库上的工件状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以检查本地行家仓库中的工件是否有效? 我的本地存储库中的某些工件具有有效的名称(artifact.jar),但是内容是带有错误消息的html(这些工件是从codehaus或openqa存储库下载的,当前处于脱机状态):

There are any way to check if the artifacts in the local maven repostiry are valid? Some artifacts in my local repostory has a valid name (artifact.jar) but the content is html with error messages (the artifacts were downloaded from codehaus or openqa repositires, offline currently):

<html>
<head>
    <title>OpenQA, RIP (2006 - 2013)</title>
</head>

<body>

<h1>Looking for a different OpenQA?</h1>

<p>
    There are a few other projects with similar names. They are not related to this OpenQA but they are still very cool projects. Check them out!
</p>

<ul>
    <li><a href="https://os-autoinst.github.io/openQA/">openQA by openSUSE</a>, automated tests for operating systems</li>
    <li><a href="http://openqa.aksw.org/">openQA by AKSW</a>, an open source question answering framework</li>
</ul>

<h1>Looking for an OpenQA project?</h1>

<p>
    Unfortunately, OpenQA has seen its final days. Started originally by some of the great minds of open source
    test automation, it had a great run and supported some of the best open source test automation projects out there:
</p>

<ul>
    <li><a href="http://docs.seleniumhq.org">Selenium</a></li>
    <li><a href="http://watir.com/">Watir</a></li>
    <li>Session Tester</li>
    <li>Pylot</li>
    <li>Floyd</li>
    <li>pyWinAuto</li>
    <li>Frankenstein</li>
    <li>Watir Recorder</li>
    <li>WET</li>
    <li>JTC</li>
</ul>

<p>
    Some of these projects have moved on: <a href="http://docs.seleniumhq.org">Selenium</a> and <a href="http://watir.com/">Watir</a> survive as a standalone projects while others have evolved in to new efforts and have found new homes. But others have been left stagnant for years and were unfairly misleading to users, giving the impression that they were viable projects even though no one had been involved in years.
</p>

<p>
    Rather than continue to mislead developers about the state of the projects, we've decided to lay it all out there
    and hope that the interesting projects will eventually get forked and live again on another site such as <a
        href="http://code.google.com/">Google Code</a>, <a href="https://github.com/">Github</a>, or <a
        href="https://bitbucket.org/">Bitbucket</a>.
</p>

<h1>So what now?</h1>

<p>
    If you're looking for information on the following projects, you can find more information at it's new home:
</p>

<table>
    <thead>
    <tr>
        <th>Project</th>
        <th>New Home</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>Selenium</td>
        <td><a href="http://docs.seleniumhq.org">http://docs.seleniumhq.org/</a></td>
    </tr>
    <tr>
        <td>Watir</td>
        <td><a href="http://watir.com/">http://watir.com/</a></td>
    </tr>
    <tr>
        <td>CubicTest</td>
        <td><a href="http://www.cubictest.org/">http://www.cubictest.org/</a></td>
    </tr>
    </tbody>
</table>

<p>
    If you're looking for information on a project not listed, that means it's not actively maintained. That doesn't
    mean the project is useless, it just means no one runs it right now. But some projects are still certainly useful,
    so
    the following may help you better use it.
</p>

<h2>Project Websites</h2>

<p>
    We recommend using the Internet Archive Wayback Machine to browse around the old project sites, which are no longer
    hosted here. Follow <a href="http://web.archive.org/web/20130614113118/http://openqa.org/">this link</a>
    to see what the site looked like in June, 2013.
</p>

<h2>Downloads</h2>

<p>
  For older downloads, the best place to look is in the <a href="http://search.maven.org">public Maven repository</a>. Search for "openqa" or the specific project name (ie: "selenium").

</p>

<h2>Bug Tracker and Wiki</h2>

<p>
    Again, we recommend the Wayback Machine for the old <a
        href="http://web.archive.org/web/20130116202849/http://jira.openqa.org/secure/Dashboard.jspa">JIRA
    instance (bug tracker)</a> and <a href="http://web.archive.org/web/20130115080426/http://wiki.openqa.org/dashboard.action">Confluence instance (wiki)</a>.
</p>

<h1>Final Words</h1>

<p>
    While it's sad to finally put OpenQA to bed, we hope this announcement at least gives clarity on the status of
    the projects. If you have questions that aren't answered on this page, you can email <a
        href="mailto:openqa@lightbody.net">openqa@lightbody.net</a> but we can't
    guarantee that we can answer your question. We will try to keep this page updated with more information as it comes
    up.
</p>

</body>
</html>

我正在考虑获取所有工件的sha1字符串,并将其与artifact.pom.sha1文件内容进行比较.还有其他想法吗?有任何Maven命令行参数可以做到吗? 我的Maven版本是3.3.9.

I was thinking to get a sha1 string of all artifacts and compare it with the artifact.pom.sha1 file content. Some another ideas? There are any maven command line parameter to do that? My maven version is 3.3.9.

推荐答案

我想到的最接近的解决方案是清除,然后重新解析它(也许有点困难,我知道).

The nearest solution I think of is to purge the local repository and then re-resolve it (Maybe a little hard, I know).

http://maven.apache. org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html

这篇关于检查Maven本地存储库上的工件状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆