Loading

在maven Repository中添加自定义的jar包

1、在项目的pom.xml中添加该jar包的<dependency> 依赖标签,用以表名在项目中应用该jar包。

<dependency>
        <groupId>xml2html</groupId>
        <artifactId>xml2html</artifactId>
        <version>1.0</version>
        <type>jar</type>
        <scope>compile</scope> 
</dependency>

 

 

 2、将被引用的jar添加到本地的repository中去,目录结构如:

 

注意点:自定义的jar包所在的当前目录下,必须要有pom文件。

 

posted @ 2012-12-13 10:41  街头诗人  阅读(5968)  评论(1编辑  收藏  举报