maven的settings文件配置

查询:

1、http://search.maven.org/

2、https://mvnrepository.com/

3、https://maven-repository.com/

4、http://maven.aliyun.com/nexus/(阿里云镜像站速度最快)

flink源码编译出现maven以来找不到的情况,需要配置仓库镜像,收藏于下:



<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 http://maven.apache.org/xsd/settings-1.2.0.xsd">
          
  

  

  

  <pluginGroups>
  pluginGroups>


  <proxies>
  proxies>

  <servers>
  servers>

  <mirrors>
	<mirror>
      	<id>mavenRepositoryid>
      	<mirrorOf>*mirrorOf>
      	<name>mavenRepositoryname>
      	<url>http://insecure.repo1.maven.org/maven2/url>
    mirror>
    
	<mirror>
       <id>mvnRepositoryid>
       <name>mvnRepositoryname>
       <url>http://mvnrepository.com/repos/url>
       <mirrorOf>centralmirrorOf>
    mirror>
	
	<mirror>
    	<id>alimavenid>
    	<mirrorOf>centralmirrorOf>
        <name>aliyun mavenname>
        <url>https://maven.aliyun.com/nexus/content/repositories/central/url>
    mirror>
	
	<mirror>
  		<id>nexus-aliyunid>
  		<mirrorOf>*mirrorOf>
  		<name>Nexus aliyunname>
  		<url>https://maven.aliyun.com/nexus/content/groups/publicurl>
	mirror>

	<mirror>
		<id>repo2id>
		<name>Mirror from Maven Repo2name>
		<url>http://repo2.maven.org/maven2/url>
		<mirrorOf>centralmirrorOf>
	mirror>

	<mirror>
		<id>repo1id>
		<name>Maven Repository Switchboardname>
		<url>http://repo1.maven.org/maven2/url>
		<mirrorOf>centralmirrorOf>
	mirror>

	<mirror>
		<id>jboss-public-repository-groupid>
		<name>JBoss Public Repository Groupname>
		<url>http://repository.jboss.org/nexus/content/groups/publicurl>
		<mirrorOf>centralmirrorOf>
	mirror>

	<mirror>
		<id>googleid>
		<name>google mavenname>
		<url>https://maven.google.com/url>
		<mirrorOf>centralmirrorOf>
	mirror>

  mirrors>

  <profiles>
	<profile>
    	<id>aliyunRepositoryid>
       	<activation>    
           	<activeByDefault>trueactiveByDefault>    
           	<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>    
 
    	<repositories>
             <repository>
                 <id>publicid>
                 <url>http://maven.nuxeo.org/nexus/content/groups/publicurl>
                 <releases>
                     <enabled>trueenabled>
                 releases>
                 <snapshots>
                     <enabled>falseenabled>
                 snapshots>
             repository>

             <repository>
                  <id>public-snapshotid>
                  <url>http://maven.nuxeo.org/nexus/content/groups/public-snapshoturl>
                  <releases>
                      <enabled>falseenabled>
                  releases>
                  <snapshots>
                      <updatePolicy>alwaysupdatePolicy>
                      <enabled>trueenabled>
                  snapshots>
              repository>
              <repository>
                  <id>aliyun-nexusid>
                  <name>aliyun-nexusname>
                  <url>http://maven.aliyun.com/nexus/content/groups/public/url>
                  <releases>
                      <enabled>trueenabled>
                  releases>
              repository>
          repositories>

	        <pluginRepositories>
	              <pluginRepository>
	                  <id>publicid>
	                  <url>http://maven.nuxeo.org/nexus/content/groups/publicurl>
	                  <name>Nuxeo virtual release repositoryname>
	                  <releases>
	                      <enabled>trueenabled>
	                  releases>
	                  <snapshots>
	                      <enabled>falseenabled>
	                  snapshots>
	              pluginRepository>
	              <pluginRepository>
	                  <id>public-snapshotid>
	                  <url>http://maven.nuxeo.org/nexus/content/groups/public-snapshoturl>
	                  <name>Nuxeo virtual snapshot repositoryname>
	                  <releases>
	                      <enabled>falseenabled>
	                  releases>
	                  <snapshots>
	                      <updatePolicy>alwaysupdatePolicy>
	                      <enabled>trueenabled>
	                  snapshots>
	              pluginRepository>
	              <pluginRepository>
                    <id>publicid>
                    <name>aliyun nexusname>
                    <url>http://maven.aliyun.com/nexus/content/groups/public/url>
                    <releases>
                        <enabled>trueenabled>
                    releases>
                    <snapshots>
                        <enabled>falseenabled>
                    snapshots>
                pluginRepository>
            pluginRepositories>
	  profile>
	profiles>

  	<activeProfiles>
    	<activeProfile>aliyunRepositoryactiveProfile>
  	activeProfiles>

settings>


你可能感兴趣的:(flink,Java,java,maven)