maven setting.xml配置,修改为阿里云镜像

maven setting.xml配置

1 mirrors添加阿里云镜像

 <mirrors>
   <mirror>
     <id>alimavenid>
     <name>aliyun mavenname>
     <url>http://maven.aliyun.com/nexus/content/groups/public/url>
     <mirrorOf>centralmirrorOf>
   mirror>
 mirrors>

2 profiles添加,设置jdk1.8编译

<profiles>
    <profile>
      <id>jdk-1.8id>
      <activation>
        <jdk>1.8jdk>
      activation>
      <properties>
        <maven.compiler.source>1.8maven.compiler.source>
        <maven.compiler.target>1.8maven.compiler.target>
        <maven.compiler.compilerVersion>1.8maven.compiler.compilerVersion>
      properties>
    profile>
proflies>    

你可能感兴趣的:(maven)