添加本地jar文件到本地maven仓库
2011年09月01日
mvn install:install-file -Dfile=easyjweb-core-1.0-m3.jar -DgroupId=com.easyjf.easyjweb -DartifactId=easyjweb-core -Dversion=1.0-m3 -Dpackaging=jar
mvn install:install-file -Dfile=easyjweb-ext-1.0-m3.jar -DgroupId=com.easyjf.easyjweb -DartifactId=easyjweb-ext -Dversion=1.0-m3 -Dpackaging=jar
说明:
上面的第一条命令是把easyjweb-core-1.0-m3.jar传到了本地仓库中(假设本地仓库地址为:E:\app\m2\repository\),上传到仓库中的jar包名为easyjweb-core-1.0-m3.jar,目录结构为com/easyjf/easyjweb/easyjweb-core/1.0-m3/easyjweb- core-1.0-m3.jar
第二条命令是把easyjweb-ext-1.0-m3.jar传到了本地仓库中(假设本地仓库地址为:E:\app\m2\repository\),上传到仓库中的jar包名为easyjweb-ext-1.0-m3.jar,目录结构为com/easyjf/easyjweb/easyjweb-ext/1.0-m3/easyjweb-e xt-1.0-m3.jar
2011年09月01日
mvn install:install-file -Dfile=easyjweb-core-1.0-m3.jar -DgroupId=com.easyjf.easyjweb -DartifactId=easyjweb-core -Dversion=1.0-m3 -Dpackaging=jar
mvn install:install-file -Dfile=easyjweb-ext-1.0-m3.jar -DgroupId=com.easyjf.easyjweb -DartifactId=easyjweb-ext -Dversion=1.0-m3 -Dpackaging=jar
说明:
上面的第一条命令是把easyjweb-core-1.0-m3.jar传到了本地仓库中(假设本地仓库地址为:E:\app\m2\repository\),上传到仓库中的jar包名为easyjweb-core-1.0-m3.jar,目录结构为com/easyjf/easyjweb/easyjweb-core/1.0-m3/easyjweb- core-1.0-m3.jar
第二条命令是把easyjweb-ext-1.0-m3.jar传到了本地仓库中(假设本地仓库地址为:E:\app\m2\repository\),上传到仓库中的jar包名为easyjweb-ext-1.0-m3.jar,目录结构为com/easyjf/easyjweb/easyjweb-ext/1.0-m3/easyjweb-e xt-1.0-m3.jar
本文详细介绍了使用Maven命令将本地jar文件添加到本地仓库的方法,包括命令参数解释和目录结构说明。
858

被折叠的 条评论
为什么被折叠?



