maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rfscho...@apache.org
Subject maven-archetype git commit: [ARCHETYPE-520] Following mirror configuration from settings.xml for downloading archetype metadata
Date Sat, 01 Apr 2017 09:42:36 GMT
Repository: maven-archetype
Updated Branches:
  refs/heads/ARCHETYPE-520 50b21e8a9 -> 35b4a76d1


[ARCHETYPE-520] Following mirror configuration from settings.xml for downloading archetype
metadata

Add verify script to ensure nothing is downloaded directly from Central


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

Branch: refs/heads/ARCHETYPE-520
Commit: 35b4a76d1d6d73f23320aa2c825c616c9816760c
Parents: 50b21e8
Author: rfscholte <rfscholte@apache.org>
Authored: Sat Apr 1 11:39:22 2017 +0200
Committer: rfscholte <rfscholte@apache.org>
Committed: Sat Apr 1 11:39:22 2017 +0200

----------------------------------------------------------------------
 .../ARCHETYPE-520_mirror/invoker.properties     |  3 +--
 .../projects/ARCHETYPE-520_mirror/verify.groovy | 21 ++++++++++++++++++++
 2 files changed, 22 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/35b4a76d/maven-archetype-plugin/src/it/projects/ARCHETYPE-520_mirror/invoker.properties
----------------------------------------------------------------------
diff --git a/maven-archetype-plugin/src/it/projects/ARCHETYPE-520_mirror/invoker.properties
b/maven-archetype-plugin/src/it/projects/ARCHETYPE-520_mirror/invoker.properties
index 262d621..0517021 100644
--- a/maven-archetype-plugin/src/it/projects/ARCHETYPE-520_mirror/invoker.properties
+++ b/maven-archetype-plugin/src/it/projects/ARCHETYPE-520_mirror/invoker.properties
@@ -15,5 +15,4 @@
 # specific language governing permissions and limitations
 # under the License.
 
-invoker.goals = org.apache.maven.plugins:maven-archetype-plugin:${project.version}:generate
-invoker.debug = true
\ No newline at end of file
+invoker.goals = org.apache.maven.plugins:maven-archetype-plugin:${project.version}:generate
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/35b4a76d/maven-archetype-plugin/src/it/projects/ARCHETYPE-520_mirror/verify.groovy
----------------------------------------------------------------------
diff --git a/maven-archetype-plugin/src/it/projects/ARCHETYPE-520_mirror/verify.groovy b/maven-archetype-plugin/src/it/projects/ARCHETYPE-520_mirror/verify.groovy
new file mode 100644
index 0000000..ffbb061
--- /dev/null
+++ b/maven-archetype-plugin/src/it/projects/ARCHETYPE-520_mirror/verify.groovy
@@ -0,0 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+buildLog = new File( basedir, "build.log" )
+assert !buildLog.text.contains( "://repo.maven.apache.org" )
\ No newline at end of file


Mime
View raw message