Maven的下载/安装/配置 |
您所在的位置:网站首页 › maven离线安装jar › Maven的下载/安装/配置 |
Maven的下载/安装/配置
Maven的下载
Maven的官方网址:maven.apache.org/ 将下载的Maven压缩包进行解压 第一步:配置MAVEN_HOME的值 第二步:在Path路径下配置 第三步:打开命令窗口,输入mvn-v 第一步:打开maven目录 -> conf -> settings.xml 第二步:在settings.xml中添加localRepository标签,配置自己的本地依赖下载的地方 D:/software/Maven/repository_personal第三步:在settings.xml文件中的mirrors下添加mirror标签 nexus-aliyun central Nexus aliyun http://maven.aliyun.com/nexus/content/groups/public修改后完整版: D:/software/Maven/repository_personal nexus-aliyun central Nexus aliyun http://maven.aliyun.com/nexus/content/groups/public Maven离线安装jar包:F:\Maven\gexin-rp-fastjson-1.0.0.7.jar:指定离线安装包的地址 DgroupId=com.gexin.platform: 指定groupId -DartifactId=gexin-rp-fastjson: 指定artifactId -Dversion=1.0.0.7: 指定version -Dpackaging=jar: 指定包类型 例如: com.gexin.platform gexin-rp-fastjson 1.0.0.7上面jar包的安装命令为: mvn install:install-file -Dfile=F:\Maven\gexin-rp-fastjson-1.0.0.7.jar -DgroupId=com.gexin.platform -DartifactId=gexin-rp-fastjson -Dversion=1.0.0.7 -Dpackaging=jar |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |