You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2019/01/24 08:53:49 UTC

[maven] branch MPOM-215 created (now fed6102)

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

hboutemy pushed a change to branch MPOM-215
in repository https://gitbox.apache.org/repos/asf/maven.git.


      at fed6102  [MPOM-215] add maven-default-plugins to Maven core

This branch includes the following new commits:

     new fed6102  [MPOM-215] add maven-default-plugins to Maven core

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven] 01/01: [MPOM-215] add maven-default-plugins to Maven core

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to branch MPOM-215
in repository https://gitbox.apache.org/repos/asf/maven.git

commit fed6102314bb07a1dd2b9a6960b820e60b2ae539
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Thu Jan 24 09:53:41 2019 +0100

    [MPOM-215] add maven-default-plugins to Maven core
---
 maven-default-plugins/pom.xml                | 199 +++++++++++++++++++++++++++
 maven-default-plugins/src/site/apt/index.apt |  38 +++++
 maven-default-plugins/src/site/site.xml      |  90 ++++++++++++
 pom.xml                                      |  12 ++
 4 files changed, 339 insertions(+)

diff --git a/maven-default-plugins/pom.xml b/maven-default-plugins/pom.xml
new file mode 100644
index 0000000..c9820f3
--- /dev/null
+++ b/maven-default-plugins/pom.xml
@@ -0,0 +1,199 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven</groupId>
+  <artifactId>maven-default-plugins</artifactId>
+  <version>3.6.1-SNAPSHOT</version>
+  <packaging>pom</packaging>
+
+  <name>Maven Default Plugins</name>
+  <description>
+    Apache Maven default plugins versions, for default lifecycle bindings, super-POM and more.
+  </description>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+    <maven.compiler.source>1.7</maven.compiler.source>
+    <maven.compiler.target>1.7</maven.compiler.target>
+    <surefire.version>2.22.0</surefire.version>
+  </properties>
+
+  <build>
+    <pluginManagement>
+      <plugins>
+        <!-- set versions of common plugins for reproducibility, ordered by lifecycle and packaging -->
+        <plugin><!-- clean lifecycle -->
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-clean-plugin</artifactId>
+          <version>3.1.0</version>
+        </plugin>
+        <plugin><!-- site lifecycle -->
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-site-plugin</artifactId>
+          <version>3.7.1</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-project-info-reports-plugin</artifactId>
+          <version>3.0.0</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-surefire-report-plugin</artifactId>
+          <version>${surefire.version}</version>
+        </plugin>
+        <!-- default lifecycle, common plugins then packaging-specific -->
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-resources-plugin</artifactId>
+          <version>3.1.0</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-surefire-plugin</artifactId>
+          <version>${surefire.version}</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-failsafe-plugin</artifactId>
+          <version>${surefire.version}</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-jar-plugin</artifactId>
+          <version>3.1.0</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-install-plugin</artifactId>
+          <version>2.5.2</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-deploy-plugin</artifactId>
+          <version>2.8.2</version>
+        </plugin>
+        <!-- packaging-specific -->
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-compiler-plugin</artifactId>
+          <version>3.7.0</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-ejb-plugin</artifactId>
+          <version>3.0.1</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-plugin-plugin</artifactId>
+          <version>3.5.2</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-war-plugin</artifactId>
+          <version>3.2.2</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-ear-plugin</artifactId>
+          <version>3.0.1</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-rar-plugin</artifactId>
+          <version>2.4</version>
+        </plugin>
+        <!-- plugins from the super-POM -->
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-antrun-plugin</artifactId>
+          <version>1.3</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-assembly-plugin</artifactId>
+          <version>3.0.0</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-dependency-plugin</artifactId>
+          <version>3.1.1</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-release-plugin</artifactId>
+          <version>2.5.3</version>
+        </plugin>
+        <!-- misc -->
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-enforcer-plugin</artifactId>
+          <version>1.4.1</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-gpg-plugin</artifactId>
+          <version>1.6</version>
+          <configuration>
+            <gpgArguments>
+              <arg>--digest-algo=SHA512</arg>
+            </gpgArguments>
+          </configuration>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-help-plugin</artifactId>
+          <version>3.1.0</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-javadoc-plugin</artifactId>
+          <version>3.0.1</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-remote-resources-plugin</artifactId>
+          <version>1.6.0</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-source-plugin</artifactId>
+          <version>3.0.1</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-shade-plugin</artifactId>
+          <version>3.1.1</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-toolchains-plugin</artifactId>
+          <version>1.1</version>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+  </build>
+</project>
diff --git a/maven-default-plugins/src/site/apt/index.apt b/maven-default-plugins/src/site/apt/index.apt
new file mode 100644
index 0000000..67ee71d
--- /dev/null
+++ b/maven-default-plugins/src/site/apt/index.apt
@@ -0,0 +1,38 @@
+ -----
+ Apache Maven Default Plugins Parent POM
+ -----
+ Hervé Boutemy
+ -----
+ 2019-01-15
+ -----
+
+~~ 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.
+
+~~ NOTE: For help with the syntax of this file, see:
+~~ https://maven.apache.org/doxia/references/apt-format.html
+
+Apache Maven Default Plugins Parent POM
+
+    This project consists of a POM that lock down plugins versions that are
+    referenced by Maven in {{{../maven-core/lifecycles.html}default lifecycle bindings}}
+    and {{{../maven-model-builder/super-pom.html}super-POM}}, and classical plugins.
+
+    It is expected to use this POM as parent POM for any project that does not want
+    to write down itself the list of plugins.
+
+    It also provides default UTF-8 encoding and compilation for Java 1.7.
diff --git a/maven-default-plugins/src/site/site.xml b/maven-default-plugins/src/site/site.xml
new file mode 100644
index 0000000..8f56551
--- /dev/null
+++ b/maven-default-plugins/src/site/site.xml
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+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.
+-->
+
+<project xmlns="http://maven.apache.org/DECORATION/1.8.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/DECORATION/1.8.0 http://maven.apache.org/xsd/decoration-1.8.0.xsd">
+
+  <bannerLeft>
+    <name>${project.name}</name>
+    <src>https://maven.apache.org/images/apache-maven-project.png</src>
+    <href>https://www.apache.org/</href>
+  </bannerLeft>
+
+  <bannerRight>
+    <src>https://maven.apache.org/images/maven-logo-black-on-white.png</src>
+    <href>https://maven.apache.org/</href>
+  </bannerRight>
+
+  <skin>
+    <groupId>org.apache.maven.skins</groupId>
+    <artifactId>maven-fluido-skin</artifactId>
+    <version>1.7</version>
+  </skin>
+
+  <edit>https://github.com/apache/maven/tree/master/maven-default-plugins</edit>
+  <googleAnalyticsAccountId>UA-140879-1</googleAnalyticsAccountId>
+
+  <publishDate position="right" />
+  <version position="right" />
+
+  <body>
+
+    <breadcrumbs>
+      <item name="Apache" href="https://www.apache.org/" />
+      <item name="Maven" href="../../../index.html" />
+      <item name="Ref" href="../../" />
+      <item name="Maven ${project.version}" href="../" />
+      <item name="Default Plugins" href="./" />
+    </breadcrumbs>
+
+    <menu name="Overview">
+      <item name="Introduction" href="index.html"/>
+    </menu>
+
+    <menu ref="reports" inherit="bottom" />
+
+    <!-- Copied from Maven parent's site.xml -->
+    <menu name="Maven Projects" inherit="bottom">
+      <item name="Archetype"         href="https://maven.apache.org/archetype/index.html" />
+      <item name="Artifact Resolver" href="https://maven.apache.org/resolver/index.html" />
+      <item name="Doxia"             href="https://maven.apache.org/doxia/index.html" />
+      <item name="JXR"               href="https://maven.apache.org/jxr/index.html" />
+      <item name="Maven"             href="https://maven.apache.org/ref/current" />
+      <item name="Parent POMs"       href="https://maven.apache.org/pom/index.html" />
+      <item name="Plugins"           href="https://maven.apache.org/plugins/index.html" />
+      <item name="Plugin Testing"    href="https://maven.apache.org/plugin-testing/index.html" />
+      <item name="Plugin Tools"      href="https://maven.apache.org/plugin-tools/index.html" />
+      <item name="Resource Bundles"  href="https://maven.apache.org/apache-resource-bundles/index.html" />
+      <item name="SCM"               href="https://maven.apache.org/scm/index.html" />
+      <item name="Shared Components" href="https://maven.apache.org/shared/index.html" />
+      <item name="Skins"             href="https://maven.apache.org/skins/index.html" />
+      <item name="Surefire"          href="https://maven.apache.org/surefire/index.html" />
+      <item name="Wagon"             href="https://maven.apache.org/wagon/index.html" />
+    </menu>
+    <menu name="ASF" inherit="bottom">
+      <item name="How Apache Works"  href="https://www.apache.org/foundation/how-it-works.html"/> 
+      <item name="Foundation"        href="https://www.apache.org/foundation/"/>
+      <item name="Sponsoring Apache" href="https://www.apache.org/foundation/sponsorship.html"/>
+      <item name="Thanks"            href="https://www.apache.org/foundation/thanks.html"/>
+    </menu>
+
+  </body>
+</project>
diff --git a/pom.xml b/pom.xml
index 054d47b..55ff524 100644
--- a/pom.xml
+++ b/pom.xml
@@ -592,6 +592,15 @@ under the License.
 
   <profiles>
     <profile>
+      <id>default</id>
+      <activation>
+        <activeByDefault>true</activeByDefault>
+      </activation>
+      <modules>
+        <module>maven-default-plugins</module>
+      </modules>
+    </profile>
+    <profile>
       <id>apache-release</id>
       <build>
         <plugins>
@@ -609,6 +618,9 @@ under the License.
           </plugin>
         </plugins>
       </build>
+      <modules>
+        <module>maven-default-plugins</module>
+      </modules>
     </profile>
     <profile>
       <id>reporting</id>