chronos-maven-plugin:运行 maven 时找不到 mojo-sandbox-5-SNAPSHOT.pom

发布于 2024-10-28 03:11:45 字数 1782 浏览 1 评论 0原文

这个问题基于stackoverflow上的另一个问题:Maven Chronos JMeter插件

我有同样的问题,但按照上面的建议添加pluginRepositories并不能完全解决问题。

这是我的 pom 的摘录:

<project>
  ...
  <pluginRepositories>
    <pluginRepository>
      <id>snapshots.repository.codehaus.org</id>
      <url>http://snapshots.repository.codehaus.org/</url>
    </pluginRepository>
  </pluginRepositories>
  ...
  <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>chronos-maven-plugin</artifactId>
    <version>1.0-SNAPSHOT</version>
    <configuration>
      <input>${basedir}/src/test/jmeter/test.jmx</input>
    </configuration>
    <executions>
      <execution>
        <id>jmeter-tests</id>
        <phase>verify</phase>
        <goals>
          <goal>jmeter</goal>
        </goals>
      </execution>
    </executions>
  </plugin>
...
</project>

在 maven 尝试从不同位置获取 mjjo-sandbox-5-SNAPSHOT.pom 后,我收到以下 maven 错误:

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.codehaus.mojo:chronos-maven-plugin:maven-plugin:1.0-SNAPSHOT

Reason: Cannot find parent: org.codehaus.mojo:mojo-sandbox for project: org.code
haus.mojo:chronos-maven-plugin:maven-plugin:1.0-SNAPSHOT for project org.codehau
s.mojo:chronos-maven-plugin:maven-plugin:1.0-SNAPSHOT

有人可以帮助我吗?

This question is based on another question on stackoverflow: Maven Chronos JMeter plugin

I have the same problem, but adding the pluginRepositories as suggested above doesn't solve the problem completely.

Here's an extract of my pom:

<project>
  ...
  <pluginRepositories>
    <pluginRepository>
      <id>snapshots.repository.codehaus.org</id>
      <url>http://snapshots.repository.codehaus.org/</url>
    </pluginRepository>
  </pluginRepositories>
  ...
  <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>chronos-maven-plugin</artifactId>
    <version>1.0-SNAPSHOT</version>
    <configuration>
      <input>${basedir}/src/test/jmeter/test.jmx</input>
    </configuration>
    <executions>
      <execution>
        <id>jmeter-tests</id>
        <phase>verify</phase>
        <goals>
          <goal>jmeter</goal>
        </goals>
      </execution>
    </executions>
  </plugin>
...
</project>

I get the following maven error after maven has tried to get the mjjo-sandbox-5-SNAPSHOT.pom from different locations:

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.codehaus.mojo:chronos-maven-plugin:maven-plugin:1.0-SNAPSHOT

Reason: Cannot find parent: org.codehaus.mojo:mojo-sandbox for project: org.code
haus.mojo:chronos-maven-plugin:maven-plugin:1.0-SNAPSHOT for project org.codehau
s.mojo:chronos-maven-plugin:maven-plugin:1.0-SNAPSHOT

Can anybody help me?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

猫瑾少女 2024-11-04 03:11:45

您似乎使用了旧版本的插件。 Codehaus 的所有插件都引用一个共同的父级。旧版本的 chronos 指的是旧版本的父版本,不再易于访问。

可以通过添加存储库位置来找到较新的版本 http://nexus.codehaus.org/snapshots/

You seem to have used an old version of the plugin. All plugins at codehaus refers to a common parent. The old version of chronos was referring to and old version of the parent, which is no longer easily accessible.

Newer versions can be found by adding a repository location http://nexus.codehaus.org/snapshots/

╰沐子 2024-11-04 03:11:45

那个插件好像有问题。

它曾经对我们有用,我的本地存储库中仍然有工作版本。我注意到的第一件事是,parent 曾经是 mojo-sandbox-parent,它也从仓库中丢失了。

<parent>
   <groupId>org.codehaus.mojo</groupId>
   <artifactId>mojo-sandbox-parent</artifactId>
   <version>8</version>
</parent>

更新

我在这里找到了答案:org.codehaus在哪里.mojo:mojo-sandbox:pom:5-SNAPSHOT?

您需要将存储库更改为 https://nexus.codehaus.org/content/groups/snapshots-group/
作为解决方法,添加 http://repository.opencastproject。 org/nexus/content/repositories/codehaus-snapshot-repo/

这是修复此问题的 JIRA 票证http://jira.codehaus.org/browse/MSANDBOX-50

There seem to be something wrong with that plugin.

It used to work for us and I still have the working version in my local repo. First thing I notice, parent used to be mojo-sandbox-parent which is also missing from repo.

<parent>
   <groupId>org.codehaus.mojo</groupId>
   <artifactId>mojo-sandbox-parent</artifactId>
   <version>8</version>
</parent>

Update

I found answer here: Where is org.codehaus.mojo:mojo-sandbox:pom:5-SNAPSHOT?

You need to change repository to https://nexus.codehaus.org/content/groups/snapshots-group/
and, as a workaround, add http://repository.opencastproject.org/nexus/content/repositories/codehaus-snapshot-repo/

Here is JIRA ticket to fix this http://jira.codehaus.org/browse/MSANDBOX-50

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文