Maven Chronos JMeter插件 [英] Maven Chronos JMeter plugin

查看:110
本文介绍了Maven Chronos JMeter插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人为JMeter + Maven插件使用 Chronos 在.我在尝试使用Maven JMeter插件时遇到了困难,并且想尝试一下

Has any one used Chronos for JMeter + Maven plug-in. I am having tough time trying Maven JMeter plug-in and thought of giving it a try

我为chronos设置了以下pom,但是当我执行"mvn verify"时,遇到以下异常-

I have following pom set up for chronos but when I execute "mvn verify " I encounter following exception -

Maven cannot calculate your build plan, given the following information:

Tasks:
- verify

Current project:
Group-Id: chronos1
Artifact-Id: chronos1
Version: 0.0.1-SNAPSHOT
From file: C:\SelNG\chronos\pom.xml


Error message: Failed to resolve plugin for mojo binding: org.codehaus.mojo:chronos-maven-plugin:1.0-SNAPSHOT:jmeter
Root error message: Unable to download the artifact from any repository

#

是因为回购中不提供插件吗? 我的pom是-

#

Is it because plug-in is not available in repo? My pom is -

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>chronos1</groupId>
  <artifactId>chronos1</artifactId>
  <packaging>jar</packaging>
  <version>0.0.1-SNAPSHOT</version>
  <name>chronos1</name>
  <url>http://maven.apache.org</url>

  <dependencies>
        <dependency>
              <groupId>junit</groupId>
              <artifactId>junit</artifactId>
              <version>3.8.1</version>
              <scope>test</scope>
        </dependency>
  </dependencies>

  <properties>
        <jmeter.home>C:/Program Files/jakarta-jmeter-2.4</jmeter.home>
  </properties>

  <build>
        <plugins>
              <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>chronos-maven-plugin</artifactId>
                    <version>1.0-SNAPSHOT</version>
                    <configuration>
                          <input>${basedir}/src/jmeter/EducationSSL.jmx</input>
                    </configuration>
                    <executions>
                          <execution>
                                <id>jmeter-tests</id>
                                <phase>verify</phase>
                                <goals>
                                      <goal>jmeter</goal>
                                </goals>
                          </execution>
                    </executions>
              </plugin>
        </plugins>
  </build>
  <reporting>
        <plugins>
              <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>chronos-maven-plugin</artifactId>
                    <version>1.0-SNAPSHOT</version>
              </plugin>
        </plugins>
  </reporting>

谢谢 塔伦(Tarun K)

Thanks Tarun K

推荐答案

我对 this 插件没有任何特别的经验,但是对于SNAPSHOT版本的codehaus插件,您可能需要声明codehaus快照存储库:

I don't have any particular experience with this plugin but for SNAPSHOT versions of codehaus plugins, you probably need to declare the codehaus snapshot repository:

<project>
  ...
  <pluginRepositories>
    <pluginRepository>
      <id>snapshots.repository.codehaus.org</id>
      <url>http://snapshots.repository.codehaus.org/</url>
    </pluginRepository>
    ...
  </pluginRepositories>
  ...
</project>

这篇关于Maven Chronos JMeter插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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