JAVA-eclipes-maven安裝配置

  1. 官網(wǎng)下載eclipse(http://www.eclipse.org/downloads/)
    等待下載完安裝.....
  2. 配置maven 官網(wǎng)下載(http://maven.apache.org)
Snip20170518_3.png
Snip20170518_4.png
Snip20170518_5.png
Snip20170518_6.png
Snip20170518_9.png

配置apache-maven-3.5.0/conf/settings.xml
鏡像
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>

配置倉(cāng)庫(kù)地址
<localRepository>自己的目錄</localRepository>

更改默認(rèn)jdk為1.8 (maven默認(rèn)jdk是1.5)
<profiles>
<profile>

        <id>jdk-1.8</id>

        <activation>

            <activeByDefault>true</activeByDefault>

            <jdk>1.8</jdk>

        </activation>

        <properties> 

            <maven.compiler.source>1.8</maven.compiler.source> 

            <maven.compiler.target>1.8</maven.compiler.target> 

            <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion> 

        </properties>

        <repositories>

            <repository>

                <id>nexus</id>

                <name>local

private nexus</name>

                <url>http://maven.oschina.net/content/groups/public/</url>

                <releases>

                    <enabled>true</enabled>

                </releases>

                <snapshots>

                    <enabled>false</enabled>

                </snapshots>

            </repository>

        </repositories>

        <pluginRepositories>

            <pluginRepository>

                <id>nexus</id>

                <name>local

private nexus</name>

                <url>http://maven.oschina.net/content/groups/public/</url>

                <releases>

                    <enabled>true</enabled>

                </releases>

                <snapshots>

                    <enabled>false</enabled>

                </snapshots>

            </pluginRepository>

        </pluginRepositories>

    </profile>

</profiles>

Snip20170518_10.png
Snip20170518_11.png
Snip20170518_12.png
Snip20170518_13.png
Snip20170518_14.png

3 新建maven項(xiàng)目
project explorer空白區(qū)域->new->other->maven project->next

Snip20170518_15.png
Snip20170518_16.png

最后點(diǎn)擊finish 一個(gè)maven項(xiàng)目就建好了

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • Spring Cloud為開(kāi)發(fā)人員提供了快速構(gòu)建分布式系統(tǒng)中一些常見(jiàn)模式的工具(例如配置管理,服務(wù)發(fā)現(xiàn),斷路器,智...
    卡卡羅2017閱讀 136,506評(píng)論 19 139
  • 搭建 nexus 私服(centos6.7) 備注:Centos 6.7 、 nexus-2.12.1-01-bu...
    逐暗者閱讀 2,604評(píng)論 3 9
  • |-1-更新內(nèi)容[6.從倉(cāng)庫(kù)解析依賴(lài)的機(jī)制(重要)] 1Maven倉(cāng)庫(kù)作用 倉(cāng)庫(kù)用來(lái)存儲(chǔ)所有項(xiàng)目使用到構(gòu)件,在ma...
    zlcook閱讀 6,447評(píng)論 0 25
  • 關(guān)于maven私服 慢慢的團(tuán)隊(duì)人多了起來(lái),每個(gè)新人加入時(shí)都需要從maven中心倉(cāng)庫(kù)下載一堆東西,而且項(xiàng)目拆分后互相...
    AlanKim閱讀 1,192評(píng)論 5 2
  • 周末 停止了匆忙的腳步 躲進(jìn)了父母的家里 卸下了一身的疲憊 早晨 雞鳴狗吠小鳥(niǎo)啾啾 空氣清新溪水潺潺 韭菜肥嫩蠶豆...
    若水_086閱讀 369評(píng)論 1 9

友情鏈接更多精彩內(nèi)容