maven git commit: [MNG-6112] Central repository in the 4.0.0 super POM should declare update policy 'never'.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

maven git commit: [MNG-6112] Central repository in the 4.0.0 super POM should declare update policy 'never'.

schulte
Repository: maven
Updated Branches:
  refs/heads/MNG-6112 [created] 13adc1bc2


[MNG-6112] Central repository in the 4.0.0 super POM should declare update policy 'never'.


Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/13adc1bc
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/13adc1bc
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/13adc1bc

Branch: refs/heads/MNG-6112
Commit: 13adc1bc2b6d9fc3a62ec2389996726c2edce4d8
Parents: d54e6f9
Author: Christian Schulte <[hidden email]>
Authored: Tue Mar 21 00:30:28 2017 +0100
Committer: Christian Schulte <[hidden email]>
Committed: Tue Mar 21 00:30:28 2017 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/maven/bridge/MavenRepositorySystem.java | 4 ++--
 .../src/main/resources/org/apache/maven/model/pom-4.0.0.xml      | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/13adc1bc/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java
----------------------------------------------------------------------
diff --git a/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java b/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java
index 9331710..509f302 100644
--- a/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java
+++ b/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java
@@ -573,8 +573,8 @@ public class MavenRepositorySystem
         throws Exception
     {
         return createRepository( RepositorySystem.DEFAULT_REMOTE_REPO_URL, RepositorySystem.DEFAULT_REMOTE_REPO_ID,
-                                 true, ArtifactRepositoryPolicy.UPDATE_POLICY_DAILY, false,
-                                 ArtifactRepositoryPolicy.UPDATE_POLICY_DAILY,
+                                 true, ArtifactRepositoryPolicy.UPDATE_POLICY_NEVER, false,
+                                 ArtifactRepositoryPolicy.UPDATE_POLICY_NEVER,
                                  ArtifactRepositoryPolicy.CHECKSUM_POLICY_WARN );
     }
     

http://git-wip-us.apache.org/repos/asf/maven/blob/13adc1bc/maven-model-builder/src/main/resources/org/apache/maven/model/pom-4.0.0.xml
----------------------------------------------------------------------
diff --git a/maven-model-builder/src/main/resources/org/apache/maven/model/pom-4.0.0.xml b/maven-model-builder/src/main/resources/org/apache/maven/model/pom-4.0.0.xml
index 91492a9..9487a9a 100644
--- a/maven-model-builder/src/main/resources/org/apache/maven/model/pom-4.0.0.xml
+++ b/maven-model-builder/src/main/resources/org/apache/maven/model/pom-4.0.0.xml
@@ -32,6 +32,9 @@ under the License.
       <snapshots>
         <enabled>false</enabled>
       </snapshots>
+      <releases>
+        <updatePolicy>never</updatePolicy>
+      </releases>
     </repository>
   </repositories>