1.配置环境变量
MAVEN_HOME :E:\tools\maven\apache-maven-3.3.9
path : %MAVEN_HOME%\bin;
2.maven库配置
打开maven的conf-->settings.xml
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- maven库路径 -->
<localRepository>E:\tools\maven\MavenRepository</localRepository>
3.eclipse -->Window-->preferences-->maven-->user settings-->Global Setings(配置成E:\tools\maven\apache-maven-3.3.9\conf\settings.xml,这个路径)
MAVEN_HOME :E:\tools\maven\apache-maven-3.3.9
path : %MAVEN_HOME%\bin;
2.maven库配置
打开maven的conf-->settings.xml
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- maven库路径 -->
<localRepository>E:\tools\maven\MavenRepository</localRepository>
3.eclipse -->Window-->preferences-->maven-->user settings-->Global Setings(配置成E:\tools\maven\apache-maven-3.3.9\conf\settings.xml,这个路径)