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

来源:互联网 发布:郑州java培训 编辑:程序博客网 时间:2024/05/29 19:11

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文件。

 

原创粉丝点击