[Git][java-team/maven-clean-plugin][upstream] New upstream version 3.1.0

Emmanuel Bourg gitlab at salsa.debian.org
Mon Jul 30 12:02:22 BST 2018


Emmanuel Bourg pushed to branch upstream at Debian Java Maintainers / maven-clean-plugin


Commits:
d4a8c22a by Emmanuel Bourg at 2018-07-30T10:54:22Z
New upstream version 3.1.0
- - - - -


14 changed files:

- + .gitignore
- + Jenkinsfile
- pom.xml
- + src/it/default/target/test-1.0-SNAPSHOT.jar
- + src/it/exclude-default-dirs/target/test-1.0-SNAPSHOT.jar
- + src/it/only-test-clean/target/test-1.0-SNAPSHOT.jar
- src/main/java/org/apache/maven/plugins/clean/CleanMojo.java
- src/main/java/org/apache/maven/plugins/clean/Cleaner.java
- src/main/java/org/apache/maven/plugins/clean/Fileset.java
- src/main/java/org/apache/maven/plugins/clean/GlobSelector.java
- src/site/apt/index.apt.vm
- src/site/site.xml
- src/site/xdoc/download.xml.vm
- src/test/java/org/apache/maven/plugins/clean/CleanMojoTest.java


Changes:

=====================================
.gitignore
=====================================
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,15 @@
+target/
+.project
+.classpath
+.settings/
+.svn/
+bin/
+# Intellij
+*.ipr
+*.iml
+.idea
+out/
+.DS_Store
+/bootstrap
+/dependencies.xml
+.java-version


=====================================
Jenkinsfile
=====================================
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,20 @@
+/**
+ * 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.
+ */
+
+asfMavenTlpStdBuild()


=====================================
pom.xml
=====================================
--- a/pom.xml
+++ b/pom.xml
@@ -25,12 +25,12 @@ under the License.
   <parent>
     <groupId>org.apache.maven.plugins</groupId>
     <artifactId>maven-plugins</artifactId>
-    <version>28</version>
-    <relativePath>../maven-plugins/pom.xml</relativePath>
+    <version>31</version>
+    <relativePath>../../pom/maven/maven-plugins/pom.xml</relativePath>
   </parent>
 
   <artifactId>maven-clean-plugin</artifactId>
-  <version>3.0.0</version>
+  <version>3.1.0</version>
   <packaging>maven-plugin</packaging>
 
   <name>Apache Maven Clean Plugin</name>
@@ -44,14 +44,19 @@ under the License.
   </prerequisites>
 
   <scm>
-    <connection>scm:svn:http://svn.apache.org/repos/asf/maven/plugins/tags/maven-clean-plugin-3.0.0</connection>
-    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/plugins/tags/maven-clean-plugin-3.0.0</developerConnection>
-    <url>http://svn.apache.org/viewvc/maven/plugins/tags/maven-clean-plugin-3.0.0</url>
+    <connection>scm:git:https://gitbox.apache.org/repos/asf/maven-clean-plugin.git</connection>
+    <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/maven-clean-plugin.git</developerConnection>
+    <url>https://github.com/apache/maven-clean-plugin/tree/${project.scm.tag}</url>
+    <tag>maven-clean-plugin-3.1.0</tag>
   </scm>
   <issueManagement>
     <system>JIRA</system>
     <url>https://issues.apache.org/jira/browse/MCLEAN</url>
   </issueManagement>
+  <ciManagement>
+    <system>Jenkins</system>
+    <url>https://builds.apache.org/job/maven-box/job/maven-clean-plugin/</url>
+  </ciManagement>
   <distributionManagement>
     <site>
       <id>apache.website</id>
@@ -61,6 +66,8 @@ under the License.
 
   <properties>
     <mavenVersion>3.0</mavenVersion>
+    <surefire.version>2.21.0</surefire.version>
+    <javaVersion>7</javaVersion>
   </properties>
 
   <dependencies>
@@ -72,7 +79,7 @@ under the License.
     <dependency>
       <groupId>org.apache.maven.shared</groupId>
       <artifactId>maven-shared-utils</artifactId>
-      <version>3.0.0</version>
+      <version>3.2.1</version>
     </dependency>
 
     <!-- dependencies to annotations -->
@@ -101,6 +108,12 @@ under the License.
       <version>${mavenVersion}</version>
       <scope>test</scope>
     </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>4.12</version>
+      <scope>test</scope>
+    </dependency>
   </dependencies>
 
   <profiles>


=====================================
src/it/default/target/test-1.0-SNAPSHOT.jar
=====================================
Binary files /dev/null and b/src/it/default/target/test-1.0-SNAPSHOT.jar differ


=====================================
src/it/exclude-default-dirs/target/test-1.0-SNAPSHOT.jar
=====================================
Binary files /dev/null and b/src/it/exclude-default-dirs/target/test-1.0-SNAPSHOT.jar differ


=====================================
src/it/only-test-clean/target/test-1.0-SNAPSHOT.jar
=====================================
Binary files /dev/null and b/src/it/only-test-clean/target/test-1.0-SNAPSHOT.jar differ


=====================================
src/main/java/org/apache/maven/plugins/clean/CleanMojo.java
=====================================
--- a/src/main/java/org/apache/maven/plugins/clean/CleanMojo.java
+++ b/src/main/java/org/apache/maven/plugins/clean/CleanMojo.java
@@ -29,20 +29,18 @@ import java.io.IOException;
 
 /**
  * Goal which cleans the build.
- * <p/>
- * <P>
+ * <p>
  * This attempts to clean a project's working directory of the files that were generated at build-time. By default, it
  * discovers and deletes the directories configured in <code>project.build.directory</code>,
  * <code>project.build.outputDirectory</code>, <code>project.build.testOutputDirectory</code>, and
  * <code>project.reporting.outputDirectory</code>.
- * </P>
- * <p/>
- * <P>
+ * </p>
+ * <p>
  * Files outside the default may also be included in the deletion by configuring the <code>filesets</code> tag.
- * </P>
+ * </p>
  *
  * @author <a href="mailto:evenisse at maven.org">Emmanuel Venisse</a>
- * @version $Id: CleanMojo.java 1705442 2015-09-26 12:30:18Z khmarbaise $
+ * @version $Id$
  * @see org.apache.maven.plugins.clean.Fileset
  * @since 2.0
  */


=====================================
src/main/java/org/apache/maven/plugins/clean/Cleaner.java
=====================================
--- a/src/main/java/org/apache/maven/plugins/clean/Cleaner.java
+++ b/src/main/java/org/apache/maven/plugins/clean/Cleaner.java
@@ -50,7 +50,7 @@ class Cleaner
      * @param log The logger to use, may be <code>null</code> to disable logging.
      * @param verbose Whether to perform verbose logging.
      */
-    public Cleaner( final Log log, boolean verbose )
+    Cleaner( final Log log, boolean verbose )
     {
         logDebug = ( log == null || !log.isDebugEnabled() ) ? null : new Logger()
         {


=====================================
src/main/java/org/apache/maven/plugins/clean/Fileset.java
=====================================
--- a/src/main/java/org/apache/maven/plugins/clean/Fileset.java
+++ b/src/main/java/org/apache/maven/plugins/clean/Fileset.java
@@ -29,7 +29,7 @@ import java.util.Arrays;
  * <code>"file-set: <I>[directory]</I> (included: <I>[included files]</I>,
  * excluded: <I>[excluded files]</I>)"</code>
  *
- * @version $Id: Fileset.java 1705442 2015-09-26 12:30:18Z khmarbaise $
+ * @version $Id$
  * @since 2.1
  */
 public class Fileset


=====================================
src/main/java/org/apache/maven/plugins/clean/GlobSelector.java
=====================================
--- a/src/main/java/org/apache/maven/plugins/clean/GlobSelector.java
+++ b/src/main/java/org/apache/maven/plugins/clean/GlobSelector.java
@@ -41,12 +41,12 @@ class GlobSelector
 
     private final String str;
 
-    public GlobSelector( String[] includes, String[] excludes )
+    GlobSelector( String[] includes, String[] excludes )
     {
         this( includes, excludes, false );
     }
 
-    public GlobSelector( String[] includes, String[] excludes, boolean useDefaultExcludes )
+    GlobSelector( String[] includes, String[] excludes, boolean useDefaultExcludes )
     {
         this.str = "includes = " + toString( includes ) + ", excludes = " + toString( excludes );
         this.includes = normalizePatterns( includes );


=====================================
src/site/apt/index.apt.vm
=====================================
--- a/src/site/apt/index.apt.vm
+++ b/src/site/apt/index.apt.vm
@@ -45,9 +45,7 @@ ${project.name}
 * Usage
 
   General instructions on how to use the Clean Plugin can be found on the {{{./usage.html}usage page}}. Some more
-  specific use cases are described in the examples given below. Last but not least, users occasionally contribute
-  additional examples, tips or errata to the
-  {{{http://docs.codehaus.org/display/MAVENUSER/Clean+Plugin}plugin's wiki page}}.
+  specific use cases are described in the examples given below.
 
   In case you still have questions regarding the plugin's usage, please have a look at the {{{./faq.html}FAQ}} and feel
   free to contact the {{{./mail-lists.html}user mailing list}}. The posts to the mailing list are archived and could


=====================================
src/site/site.xml
=====================================
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -28,7 +28,7 @@ under the License.
       <item name="Goals" href="plugin-info.html"/>
       <item name="Usage" href="usage.html"/>
       <item name="FAQ" href="faq.html"/>
-      <!-- According to http://jira.codehaus.org/browse/MNGSITE-152 -->
+      <!-- According to https://issues.apache.org/jira/browse/MNGSITE-152 -->
       <item name="License" href="http://www.apache.org/licenses/"/>
       <item name="Download" href="download.html"/>
     </menu>


=====================================
src/site/xdoc/download.xml.vm
=====================================
--- a/src/site/xdoc/download.xml.vm
+++ b/src/site/xdoc/download.xml.vm
@@ -108,7 +108,7 @@ under the License.
           <tr>
             <td>${project.name} ${project.version} (Source zip)</td>
             <td><a href="[preferred]maven/plugins/${project.artifactId}-${project.version}-source-release.zip">maven/plugins/${project.artifactId}-${project.version}-source-release.zip</a></td>
-            <td><a href="http://www.apache.org/dist/maven/plugins/${project.artifactId}-${project.version}-source-release.zip.md5">maven/plugins/${project.artifactId}-${project.version}-source-release.zip.md5</a></td>
+            <td><a href="http://www.apache.org/dist/maven/plugins/${project.artifactId}-${project.version}-source-release.zip.sha1">maven/plugins/${project.artifactId}-${project.version}-source-release.zip.sha1</a></td>
             <td><a href="http://www.apache.org/dist/maven/plugins/${project.artifactId}-${project.version}-source-release.zip.asc">maven/plugins/${project.artifactId}-${project.version}-source-release.zip.asc</a></td>
           </tr>
         </tbody>


=====================================
src/test/java/org/apache/maven/plugins/clean/CleanMojoTest.java
=====================================
--- a/src/test/java/org/apache/maven/plugins/clean/CleanMojoTest.java
+++ b/src/test/java/org/apache/maven/plugins/clean/CleanMojoTest.java
@@ -33,7 +33,7 @@ import org.codehaus.plexus.util.FileUtils;
  * Test the clean mojo.
  *
  * @author <a href="mailto:vincent.siveton at gmail.com">Vincent Siveton</a>
- * @version $Id: CleanMojoTest.java 1705442 2015-09-26 12:30:18Z khmarbaise $
+ * @version $Id$
  */
 public class CleanMojoTest
     extends AbstractMojoTestCase
@@ -55,7 +55,7 @@ public class CleanMojoTest
     /**
      * Tests the simple removal of directories
      *
-     * @throws Exception
+     * @throws Exception in case of an error.
      */
     public void testBasicClean()
         throws Exception
@@ -82,7 +82,7 @@ public class CleanMojoTest
     /**
      * Tests the removal of files and nested directories
      *
-     * @throws Exception
+     * @throws Exception in case of an error.
      */
     public void testCleanNestedStructure()
         throws Exception
@@ -107,7 +107,7 @@ public class CleanMojoTest
      * Tests that no exception is thrown when all internal variables are empty and that it doesn't
      * just remove whats there
      *
-     * @throws Exception
+     * @throws Exception in case of an error.
      */
     public void testCleanEmptyDirectories()
         throws Exception
@@ -135,7 +135,7 @@ public class CleanMojoTest
     /**
      * Tests the removal of files using fileset
      *
-     * @throws Exception
+     * @throws Exception in case of an error.
      */
     public void testFilesetsClean()
         throws Exception
@@ -171,7 +171,7 @@ public class CleanMojoTest
     /**
      * Tests the removal of a directory as file
      *
-     * @throws Exception
+     * @throws Exception in case of an error.
      */
     public void testCleanInvalidDirectory()
         throws Exception
@@ -200,7 +200,7 @@ public class CleanMojoTest
     /**
      * Tests the removal of a missing directory
      *
-     * @throws Exception
+     * @throws Exception in case of an error.
      */
     public void testMissingDirectory()
         throws Exception
@@ -221,10 +221,11 @@ public class CleanMojoTest
 
     /**
      * Test the removal of a locked file on Windows systems.
-     * <br/>
+     * <p>
      * Note: Unix systems doesn't lock any files.
+     * </p>
      *
-     * @throws Exception
+     * @throws Exception in case of an error.
      */
     public void testCleanLockedFile()
         throws Exception
@@ -276,10 +277,11 @@ public class CleanMojoTest
 
     /**
      * Test the removal of a locked file on Windows systems.
-     * <br/>
+     * <p>
      * Note: Unix systems doesn't lock any files.
+     * </p>
      *
-     * @throws Exception
+     * @throws Exception in case of an error.
      */
     public void testCleanLockedFileWithNoError()
         throws Exception



View it on GitLab: https://salsa.debian.org/java-team/maven-clean-plugin/commit/d4a8c22ac05f4e7c505bd9e7e4f0a1bfecdf535d

-- 
View it on GitLab: https://salsa.debian.org/java-team/maven-clean-plugin/commit/d4a8c22ac05f4e7c505bd9e7e4f0a1bfecdf535d
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20180730/8f79a4e6/attachment.html>


More information about the pkg-java-commits mailing list