2016-07-02 72 views
0

嗨,我有以下進口jar文件:找不到進口

import org.hyperic.hq.measurement.UnitsConvert; 
import org.hyperic.hq.product.MeasurementInfo; 
import org.hyperic.hq.product.MeasurementPlugin; 
import org.hyperic.hq.product.MeasurementPluginManager; 
import org.hyperic.hq.product.MetricValue; 
import org.hyperic.hq.product.PluginNotFoundException; 
import org.hyperic.hq.product.ProductPlugin; 
import org.hyperic.hq.product.ProductPluginManager; 
import org.hyperic.hq.product.TypeInfo; 
import org.hyperic.util.config.ConfigResponse; 
import org.hyperic.util.units.FormattedNumber; 

它說無法解析符號HQ,因爲我沒有所需的jar文件。

我在互聯網上搜索過,但找不到jar文件。我一直在嘗試很長時間,但沒有成功,我發現類似的東西是hyperic/hq,但我怎麼能從這個jar文件或maven存儲庫?

有人請幫助我。任何方向將是非常有幫助的。

https://github.com/pivotal/tcs-hq-product-plugin/blob/master/pom.xml

它包含列表庫:

+0

當然,它在一個maven nexus – redFIVE

+0

從哪裏知道你必須導入上述進口? – niceman

回答

1

我從樞紐複製的設置

<repositories> 
    <repository> 
    <id>hyperic-external</id> 
    <name>Hyperic External Repository</name> 
    <url>http://maven.cm.hyperic.org/external</url> 
    </repository> 
    <repository> 
    <id>hyperic-milestone</id> 
    <name>Hyperic Milestone Repository</name> 
    <url>http://maven.cm.hyperic.org/milestone</url> 
    <snapshots> 
     <enabled>false</enabled> 
    </snapshots> 
    </repository> 
    <repository> 
    <id>hyperic-release</id> 
    <name>Hyperic Release Repository</name> 
    <url>http://maven.cm.hyperic.org/release</url> 
    <snapshots> 
     <enabled>false</enabled> 
    </snapshots> 
    </repository> 
    <repository> 
    <id>private-springsource-external</id> 
    <name>Private Springsource External Repository</name> 
    <url>http://private.maven.springsource.com/external</url> 
    </repository> 
</repositories> 

https://github.com/hyperic/hq相比,做了細微的修改(已以上修改):maven.hyperic.org/... =>maven.cm.hyperic.org/...

這個工程:

<dependency> 
    <groupId>org.hyperic.hq</groupId> 
    <artifactId>hq-util</artifactId> 
    <version>4.6.5</version> 
</dependency> 
<dependency> 
    <groupId>org.hyperic.hq</groupId> 
    <artifactId>hq-common</artifactId> 
    <version>4.6.5</version> 
</dependency> 

我也對這些回購(使用我的IDE)的工件的搜索,它上市僅2個版本的HQ-常見:4.5.0.M64.6.5

另一種選擇你有,是從github克隆代碼(https://github.com/hyperic/hq)並在本地構建它。 然後,您將能夠使用最新版本。

+0

謝謝,我會嘗試 –

相關問題