转载 maven 添加本地jar

分类:2017-12-29 16:57:56   178人阅读  评论   分享

转载于:http://blog.csdn.net/wabiaozia/article/details/52798194 (以下我项目中用法,详情看链接文章)

 <dependency>
            <groupId>timevale</groupId>
            <artifactId>tech-sdk</artifactId>
            <version>2.0.16</version>
            <type>jar</type>
            <scope>system</scope>
            <systemPath>${project.basedir}/lib/timevale/tech-sdk/2.0.16/tech-sdk-2.0.16.jar</systemPath>
	</dependency>


3.1 Maven内置变量说明:
${basedir} 项目根目录
${project.build.directory} 构建目录,缺省为target
${project.build.outputDirectory} 构建过程输出目录,缺省为target/classes
${project.build.finalName} 产出物名称,缺省为${project.artifactId}-${project.version}
${project.packaging} 打包类型,缺省为jar
${project.xxx} 当前pom文件的任意节点的内容

分享到: