配置 maven 中央仓库
1.打开 maven/conf/settings.xml 文件
2.找到 mirrors 标签 , 在 mirrors 标签里新增 mirror 标签
3.配置阿里云的中央仓库:
<mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> <mirrorOf>central</mirrorOf> </mirror>
eclipse 使用 maven 配置 JDK 版本
1.继续在 settings.xml 文件中
2.找到 profiles 标签
3.在 profiles 标签里面添加 profile 标签:
<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> </profile>
maven 配置本地版本
<localRepository>E:\maven-3.5.4\repository</localRepository>
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于