maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rfscho...@apache.org
Subject [maven-default-skin] branch master updated: Stabilize integration test
Date Sun, 17 Mar 2019 18:09:33 GMT
This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-default-skin.git


The following commit(s) were added to refs/heads/master by this push:
     new 3d6d414  Stabilize integration test
3d6d414 is described below

commit 3d6d41472efb1eaf0bb4525f2bbd1fa91118c869
Author: rfscholte <rfscholte@apache.org>
AuthorDate: Sun Mar 17 19:09:23 2019 +0100

    Stabilize integration test
---
 pom.xml                     | 40 +++++++++++++---------------------------
 src/it/sample/verify.groovy | 21 +++++++++++++++++++++
 2 files changed, 34 insertions(+), 27 deletions(-)

diff --git a/pom.xml b/pom.xml
index 9cf9d57..eee61b0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,49 +55,35 @@ under the License.
       <url>scm:svn:https://svn.apache.org/repos/asf/maven/website/components/${maven.site.path}</url>
     </site>
   </distributionManagement>
-
-  <repositories>
-    <repository>
-      <id>apache.snapshots</id>
-      <name>Apache Snapshot Repository</name>
-      <url>http://repository.apache.org/snapshots</url>
-      <releases>
-        <enabled>false</enabled>
-      </releases>
-    </repository>
-  </repositories>
-
-  <build>
-    <pluginManagement>
-      <plugins>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-invoker-plugin</artifactId>
-          <version>1.10</version>
-        </plugin>
-      </plugins>
-    </pluginManagement>
-  </build>
+  
+  <properties>
+    <sitePluginVersion>3.7.1</sitePluginVersion>
+  </properties>
+  
 
   <profiles>
     <profile>
       <id>run-its</id>
+      <properties>
+        <maven.it.failure.ignore>false</maven.it.failure.ignore>
+      </properties>
       <build>
         <plugins>
           <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-invoker-plugin</artifactId>
+            <version>3.2.0</version>
             <configuration>
-              <debug>true</debug>
               <projectsDirectory>src/it</projectsDirectory>
               <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
               <preBuildHookScript>setup</preBuildHookScript>
               <postBuildHookScript>verify</postBuildHookScript>
               <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
               <settingsFile>src/it/settings.xml</settingsFile>
-              <pomIncludes>
-                <pomInclude>*/pom.xml</pomInclude>
-              </pomIncludes>
+              <ignoreFailures>${maven.it.failure.ignore}</ignoreFailures>
+              <properties combine.children="merge">
+                <https.protocols>${https.protocols}</https.protocols>
+              </properties>
               <goals>
                 <goal>site</goal>
               </goals>
diff --git a/src/it/sample/verify.groovy b/src/it/sample/verify.groovy
new file mode 100644
index 0000000..38d9fea
--- /dev/null
+++ b/src/it/sample/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.
+ */
+
+def buildLog = new File(basedir, 'build.log')
+assert buildLog.text.contains('BUILD SUCCESS')
\ No newline at end of file


Mime
View raw message