JDK配置
Window->Preferences
搜索JRE選取jdk
Maven庫配置文件
創建txt文件,復制下列代碼到文件中,文件重命名為settings.xml
1 <?xml version="1.0" encoding="UTF-8"?> 2 <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 4 xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> 5 6 <!-- 本地maven庫 --> 7 <localRepository>D:\DxOffice\repository</localRepository> 8 9 <!-- 中央maven庫 --> 10 <mirrors> 11 <mirror> 12 <id>nexus-aliyun</id> 13 <mirrorOf>*</mirrorOf> 14 <name>Nexus aliyun</name> 15 <url>http://maven.aliyun.com/nexus/content/groups/public</url> 16 </mirror> 17 </mirrors> 18 19 </settings> 20 <!-- 配置:Preferences -> Maven -> User Settings -> User Settings -->
Window-Preferences
搜索maven,修改Maven下User Settings下的User Settings路徑到settings.xml所在路徑
統一編碼方式
Window->Preferences
Project
工程(Project):
Properties-Resource->Text file encoding
文件:
Properties-Resource->Text file encoding