2010-09-11 97 views
1

对于JMeter + Maven插件有没有人使用Chronos。我有艰难的时间试图Maven的JMeter的插件,并给予想到一试Maven Chronos JMeter插件

我有以下POM设立克罗诺斯但是当我执行“MVN验证”我遭遇的异常以下 -

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 

是否因为插件在repo中不可用? 我POM是 -

<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> 

感谢 塔伦ķ

回答

2

我没有与这个插件,但对于Codehaus的插件快照版本的任何特殊经验,你可能需要声明codehaus快照资源库:

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

难怪你有93,395的声望......比KS ... – Tarun 2010-09-11 16:44:54

+0

你需要 https://nexus.codehaus.org/content/groups/snapshots-group/ 目前(虽然毫无疑问帕斯卡的回答是当时正确的) – Chad 2011-06-14 05:43:30

+0

这是否回购存在的今天? – zygimantus 2017-05-27 09:17:40