You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2021/10/04 02:49:04 UTC

[maven-archetype] branch master updated: Add github actions (#75)

This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 9a7e42f  Add github actions (#75)
9a7e42f is described below

commit 9a7e42f72f7f29d13a9a584d46edbb6ace76162e
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Mon Oct 4 12:49:00 2021 +1000

    Add github actions (#75)
    
    * add ci build github action
    Signed-off-by: Olivier Lamy <ol...@apache.org>
---
 .github/workflows/maven.yml                        | 45 ++++++++++++++++++++++
 .../apache/maven/archetype/common/util/Format.java | 10 ++---
 .../maven/archetype/mojos/IntegrationTestMojo.java |  3 +-
 pom.xml                                            |  1 +
 4 files changed, 53 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
new file mode 100644
index 0000000..68f8536
--- /dev/null
+++ b/.github/workflows/maven.yml
@@ -0,0 +1,45 @@
+# 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.
+
+name: GitHub CI
+
+on: [push, pull_request]
+
+jobs:
+  build:
+
+    strategy:
+      matrix:
+        os: [ubuntu-latest,windows-latest, macOS-latest]
+        java: [8, 11, 17]
+        jdk: [adopt-hotspot, zulu, temurin]
+      fail-fast: false
+
+    runs-on: ${{ matrix.os }}
+
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+      - name: Set up JDK
+        uses: actions/setup-java@v2.3.0
+        with:
+          cache: 'maven'
+          distribution: ${{ matrix.jdk }}
+          java-version: ${{ matrix.java }}
+
+      - name: Build with Maven
+        run: mvn install javadoc:javadoc -Prun-its -e -B -V
diff --git a/archetype-common/src/main/java/org/apache/maven/archetype/common/util/Format.java b/archetype-common/src/main/java/org/apache/maven/archetype/common/util/Format.java
index aad60f5..3f33f9b 100644
--- a/archetype-common/src/main/java/org/apache/maven/archetype/common/util/Format.java
+++ b/archetype-common/src/main/java/org/apache/maven/archetype/common/util/Format.java
@@ -544,14 +544,14 @@ public class Format
      * <table>
      * <caption>TextMode details</caption>
      * <tr>
-     * <th align="left">
+     * <th>
      * Text Mode
      * </th>
      * <th>
      * Resulting behavior.
      * </th>
      * </tr>
-     * <tr valign="top">
+     * <tr>
      * <td>
      * <i>PRESERVE (Default)</i>
      * </td>
@@ -560,7 +560,7 @@ public class Format
      * or line separators are are added or removed.
      * </td>
      * </tr>
-     * <tr valign="top">
+     * <tr>
      * <td>
      * TRIM_FULL_WHITE
      * </td>
@@ -570,7 +570,7 @@ public class Format
      * printed verbatim, whitespace and all.
      * </td>
      * </tr>
-     * <tr valign="top">
+     * <tr>
      * <td>
      * TRIM
      * </td>
@@ -579,7 +579,7 @@ public class Format
      * trimmed.
      * </td>
      * </tr>
-     * <tr valign="top">
+     * <tr>
      * <td>
      * NORMALIZE
      * </td>
diff --git a/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java b/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java
index feb21ef..f44375a 100644
--- a/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java
+++ b/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java
@@ -94,7 +94,8 @@ import org.codehaus.plexus.util.introspection.ReflectionValueExtractor;
  * to create the parent project for this IT. Parent projects can be nested.</p>
  * 
  * <p>An example structure for such an integration test looks like this</p>
- * <table summary="integration test folder structure">
+ * <table>
+ * <caption>integration test folder structure</caption>
  * <tr>
  * <th>File/Directory</th>
  * <th>Description</th>
diff --git a/pom.xml b/pom.xml
index 1ff81f7..6944165 100644
--- a/pom.xml
+++ b/pom.xml
@@ -81,6 +81,7 @@
     <surefire.version>2.22.2</surefire.version>
     <maven.site.path>archetype-archives/archetype-LATEST</maven.site.path>
     <project.build.outputTimestamp>2020-07-13T21:44:31Z</project.build.outputTimestamp>
+    <maven.javadoc.failOnWarnings>false</maven.javadoc.failOnWarnings>
   </properties>
 
   <dependencyManagement>