屏幕录像机在 artifactory 上找不到 pom.xml

screen-recorder do not find pom.xml on artifacory

我想通过 Maven 使用屏幕录像机。

<dependency>
    <groupId>org.monte</groupId>
    <artifactId>screen-recorder</artifactId>
    <version>0.7.7</version>
 </dependency>

我还有一个仓库:

<repository>
    <id>jenkins-releases</id>
    <url>http://repo.jenkins-ci.org/releases/</url>
</repository>
<repository>
    <id>sonatype-releases</id>
    <url>https://oss.sonatype.org/content/repositories/releases</url>
</repository>
<repository>
    <id>maven.oracle.com</id>
    <releases>
        <enabled>true</enabled>
    </releases>
    <snapshots>
        <enabled>false</enabled>
    </snapshots>
    <url>https://maven.oracle.com</url>
    <layout>default</layout>
</repository>

当我有我的 Maven 时 setting.xml 对我来说还好,但对其他人来说是 KO。

21:30:45 Downloading: http://repo.jenkins-ci.org/releases/org/monte/screen-recorder/0.7.7/screen-recorder-0.7.7.pom
21:30:46 
Downloading: https://oss.sonatype.org/content/repositories/releases/org/monte/screen-recorder/0.7.7/screen-recorder-0.7.7.pom
21:30:46 
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/monte/screen-recorder/0.7.7/screen-recorder-0.7.7.pom
21:30:51 
Downloading: https://maven.oracle.com/org/monte/screen-recorder/0.7.7/screen-recorder-0.7.7.pom
21:30:54 
[INFO] ------------------------------------------------------------------------
16:30:54 [INFO] BUILD FAILURE
16:30:54 [INFO] ------------------------------------------------------------------------
21:30:54 [ERROR] Failed to execute goal on project foo: Could not resolve dependencies for project com.comp:foo:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at com.github.fii:fuu:jar:1.1.0 -> org.monte:screen-recorder:jar:0.7.7: Failed to read artifact descriptor for org.monte:screen-recorder:jar:0.7.7: Could not transfer artifact org.monte:screen-recorder:pom:0.7.7 from/to maven.oracle.com (https://maven.oracle.com): Not authorized , ReasonPhrase:Authorization Required. -> [Help 1]


http://repo.jenkins-ci.org/releases/org/monte/screen-recorder/0.7.7/screen-recorder-0.7.7.pom do not return a real 404:

    {
      "errors" : [ {
        "status" : 404,
        "message" : "File not found."
      } ]
    }

我的构建崩溃了,因为它试图转到 Oracle 存储库,但我希望它能加载 http://repo.jenkins-ci.org/releases/org/monte/screen-recorder/0.7.7/screen-recorder-0.7.7.jar

上的 jar 文件

我该如何配置?

您的构建崩溃,因为它正在尝试下载工件的 pom(元数据文件):

Could not transfer artifact org.monte:screen-recorder:pom:0.7.7

位于存储库中(只有 .jar 文件驻留在那里)。

我建议从 https://github.com/stephenc/monte-screen-recorder

手动下载工件

并将其安装到您的本地存储库中。

Maven:

<dependency>
    <groupId>com.github.stephenc.monte</groupId>
    <artifactId>monte-screen-recorder</artifactId>
    <version>0.7.7.0</version>
</dependency>