安装本地 jar 文件
Maven 提供了 maven-install-plugin 可将 jar 文件安装至本地 repository。安装命令如下: mvn install:install-file -Dfile=
-DgroupId=
-DartifactId=
-Dversion=
-Dpackaging=
例如,安装由源码编译来的 Java HDF5 接口: mvn install:install-file -Dfile=jarhdf5-1.10.5.jar -DgroupId=org.hdfgroup -DartifactId=hdf5lib -Dversion=1.10.5 -Dpackaging=jar 在 pom.xml 中依赖如下
org.hdfgroup
hdf5lib
1.10.5
猜你喜欢
转载自www.cnblogs.com/lph970417/p/11395121.html
今日推荐
周排行