2013-12-23 76 views

回答

1

解决!

有两种情况需要发出Maven的命令来手动将一个jar包括到Maven本地存储库中。

1.The jar you want to use doesn’t exist in the Maven center repository. 
2.You created a custom jar, and need to use for another Maven project. 

请检查链接。 mkyong http://www.mkyong.com/maven/how-to-include-library-manully-into-maven-local-repository/

谢谢mkyong。

+0

请你分享你从那里得到javaplanner依赖的链接。我试着让火一样。但无法找到罐子。赞赏... –

0

在Netbeans中:

1.在您的pom文件中添加maven dependency。

<dependency> 
     <groupId>com.dhtmlx</groupId> 
     <artifactId>javaplanner</artifactId> 
     <version>1.5</version> 
    </dependency> 

2.Clean生成项目

3.You会看到你的Maven的依赖列表中你javaplanner1.5警告标志。

4.右击并选择'手动安装工件'并选择下载的jar文件。

5.选择'本地安装'即可完成。