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