eclipse maven use mirror aliyun & install local jars on Ubuntu16.04

来源:互联网 发布:设置数据有效范围 编辑:程序博客网 时间:2024/05/12 14:42

use mirror of aliyun

//not install SouGou input method successfully

Eclipse:
window->preference->Maven->User setting s->user setting->[Update]button

create file ~/.m2/settings.xml with following content

<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">  <mirrors>    <mirror>      <id>alimaven</id>      <name>aliyun maven</name>      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>      <mirrorOf>central</mirrorOf>    </mirror>  </mirrors></settings>

use local jars

on pom.xml file
right click->run as->maven build…(2nd)->fill & apply

Goals : install:install-fileProiles: -Dfile=jar包的位置 -DgroupId=上面的groupId -DartifactId=上面的artifactId -Dversion=上面的version -Dpackaging=jar

Apply . Run

1 0
原创粉丝点击