You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/10/22 15:13:22 UTC

[commons-vfs] 01/02: Fix Maven clean site errors

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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git

commit b0a22b95e9e7ee0ea6cd9ae5a413dbc0b90cfe11
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Oct 22 11:12:41 2023 -0400

    Fix Maven clean site errors
    
    (1) [ERROR] Failed to execute goal
    org.apache.maven.plugins:maven-site-plugin:3.12.1:site (default-site) on
    project commons-vfs2-project: Error generating
    maven-project-info-reports-plugin:3.4.5:dependency-management report:
    For artifact {org.junit.jupiter:junit-jupiter:null:jar}: The version
    cannot be empty. -> [Help 1]
    
    when running: mvn clean site -DskipTests
    
    (2) Account for new HDFS module in reporting
    (3) Don't report JapiCmp for examples module
---
 commons-vfs2-examples/pom.xml | 13 ++++++++++++
 commons-vfs2-hdfs/pom.xml     | 47 +++++++++++++++++++++++++++++++++++++++++++
 commons-vfs2/pom.xml          |  2 +-
 pom.xml                       |  8 +++++---
 4 files changed, 66 insertions(+), 4 deletions(-)

diff --git a/commons-vfs2-examples/pom.xml b/commons-vfs2-examples/pom.xml
index a1d4f483..f5905068 100644
--- a/commons-vfs2-examples/pom.xml
+++ b/commons-vfs2-examples/pom.xml
@@ -79,6 +79,19 @@
     </resources>
   </build>
 
+  <reporting>
+    <plugins>
+      <plugin>
+        <groupId>com.github.siom79.japicmp</groupId>
+        <artifactId>japicmp-maven-plugin</artifactId>
+        <!-- Does not obey japicmp.skip -->
+        <configuration>
+          <skip>true</skip>
+        </configuration>
+      </plugin>
+	</plugins>
+  </reporting>
+
   <profiles>
 
     <profile>
diff --git a/commons-vfs2-hdfs/pom.xml b/commons-vfs2-hdfs/pom.xml
index 4abc8d2d..32419ddd 100644
--- a/commons-vfs2-hdfs/pom.xml
+++ b/commons-vfs2-hdfs/pom.xml
@@ -213,6 +213,53 @@
       </plugin>
     </plugins>
   </build>
+  <reporting>
+    <plugins>
+      <plugin>
+		<!-- Remove after 2.10.0 -->
+        <groupId>com.github.siom79.japicmp</groupId>
+        <artifactId>japicmp-maven-plugin</artifactId>
+        <configuration>
+          <oldVersion>
+            <dependency>
+              <groupId>org.apache.commons</groupId>
+              <artifactId>commons-vfs2</artifactId>
+              <version>${commons.bc.version}</version>
+              <type>jar</type>
+            </dependency>
+          </oldVersion>
+          <parameter>
+            <includes>
+              <!--  Package moved to new module here -->
+              <include>org.apache.commons.vfs2.provider.hdfs</include>
+            </includes>
+          </parameter>
+          <dependencies>
+            <dependency>
+              <groupId>org.apache.commons</groupId>
+              <artifactId>commons-collections4</artifactId>
+              <version>${collections4.version}</version>
+            </dependency>
+            <dependency>
+              <groupId>com.jcraft</groupId>
+              <artifactId>jsch</artifactId>
+             <version>${jsch.version}</version>
+            </dependency>
+            <dependency>
+              <groupId>ant</groupId>
+              <artifactId>ant</artifactId>
+             <version>${ant.version}</version>
+            </dependency>
+            <dependency>
+              <groupId>commons-httpclient</groupId>
+              <artifactId>commons-httpclient</artifactId>
+             <version>${httpclient3.version}</version>
+            </dependency>
+		  </dependencies>
+        </configuration>
+      </plugin>
+	</plugins>
+  </reporting>
   <profiles>
     <profile>
       <activation>
diff --git a/commons-vfs2/pom.xml b/commons-vfs2/pom.xml
index 604138b4..91ba3182 100644
--- a/commons-vfs2/pom.xml
+++ b/commons-vfs2/pom.xml
@@ -86,7 +86,7 @@
     <!-- Tests -->
     <dependency>
       <groupId>org.junit.jupiter</groupId>
-      <artifactId>junit-jupiter-engine</artifactId>
+      <artifactId>junit-jupiter</artifactId>
       <scope>test</scope>
     </dependency>
     <dependency>
diff --git a/pom.xml b/pom.xml
index 5cc7dc7b..abd05f4b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -577,9 +577,11 @@
       </dependency>
       <!-- Testing -->
       <dependency>
-        <groupId>org.junit.jupiter</groupId>
-        <artifactId>junit-jupiter</artifactId>
-        <scope>test</scope>
+        <groupId>org.junit</groupId>
+        <artifactId>junit-bom</artifactId>
+        <type>pom</type>
+        <scope>import</scope>
+        <version>${commons.junit.version}</version>
       </dependency>
       <dependency>
         <groupId>org.mockito</groupId>