一.創建maven工程File-New-other-Maven Project

二.設置項目工作空間,取消默認勾選,手動設置

三.選擇internal,輸入web,選擇maven.archetypes,這里第一次進來需要等待加載

四.輸入項目名稱

第一次創建,生成的是java工程,需要手動更改為web工程,方法見另一篇日志,
創建完成pom報錯,Multiple annotations found at this line,

添加遠程倉庫配置,這里涉及到maven倉庫管理nexus,暫時添加學習鏈接http://www.blogjava.net/baoyaer/articles/355040.html,稍后補充,這段配置不添加不影響項目運行
<pluginRepositories>
<pluginRepository>
<id> gw-nexus-plugin</id>
<name>goalwisdom nexus-plugin</name>
<url> http://nexus.goalwisdom.com/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
完成
有時候創建的項目沒有
這兩個依賴庫,右鍵項目,maven->Update Project即可,pom文件標簽配置錯誤也有可能導致maven dependencies消失
修改項目名稱為student,並且修改pom文件中name標簽中的項目名稱。
