2013-07-29 57 views
0

我使用cobertura,當我指定版本2.5時,它下載1.9。爲什麼?Cobertura maven插件版本不正確

我POM: org.codehaus.mojo 的Cobertura,Maven的插件 2.5.2 ZA/CO/C2D/* /的.class 乾淨 預置地址 清潔 儀器 站點 儀器 的Cobertura

<reporting> 
    <plugins> 
     <plugin> 
      <!-- use mvn cobertura:cobertura to generate cobertura reports --> 
      <groupId>org.codehaus.mojo</groupId> 
      <artifactId>cobertura-maven-plugin</artifactId> 
      <version>2.5.2</version> 
      <configuration> 
       <formats> 
        <format>html</format> 
        <format>xml</format> 
       </formats> 
      </configuration> 
     </plugin> 
    </plugins> 
</reporting> 

輸出: [INFO] ---的Cobertura-行家-插件:2.5.2:儀器(缺省-cli)@ services --- Dow nloading:http://repo1.maven.org/maven2/net/sourceforge/cobertura/cobertura/1.9.4.1/cobertura-1.9.4.1.pom

當我運行這一點,然後用 [錯誤] net.sourceforge.cobertura.javancss.parser.ParseException打破:遇到 「 」>「」> 「」

據我瞭解,這在版本2.0.2中修復。

回答

0

當然,你不能指定括號內的版本......你能解釋更多關於項目層次嗎?和你的完整的pom.xml?