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

ppkarwasz pushed a commit to branch fix/build-project
in repository https://gitbox.apache.org/repos/asf/logging-flume-mongodb.git

commit ecf24b7923c62c029839ca0530654fd2f102f07a
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Wed Sep 2 17:37:27 2026 +0200

    Simplify POM files
    
    Remove from the POM files data that is inherited by the parent.
    
    At the same time we add a temporary `use-apache-snapshots` profile to allow 
the project to bootstrap itself, while its parent is still not published.
---
 flume-mongodb-sink/pom.xml |  11 +--
 pom.xml                    | 228 +++++++++++----------------------------------
 2 files changed, 57 insertions(+), 182 deletions(-)

diff --git a/flume-mongodb-sink/pom.xml b/flume-mongodb-sink/pom.xml
index da3c4b8..baba752 100644
--- a/flume-mongodb-sink/pom.xml
+++ b/flume-mongodb-sink/pom.xml
@@ -20,10 +20,9 @@
   <parent>
     <groupId>org.apache.flume</groupId>
     <artifactId>flume-mongodb-parent</artifactId>
-    <version>2.0.0-SNAPSHOT</version>
-    <relativePath>../pom.xml</relativePath>
+    <version>${revision}</version>
   </parent>
-  <groupId>org.apache.flume</groupId>
+
   <artifactId>flume-mongodb-sink</artifactId>
   <name>Flume MongoDb Sink</name>
 
@@ -77,12 +76,6 @@
       <scope>test</scope>
     </dependency>
 
-    <dependency>
-      <groupId>org.mockito</groupId>
-      <artifactId>mockito-all</artifactId>
-      <scope>test</scope>
-    </dependency>
-
   </dependencies>
 
   <build>
diff --git a/pom.xml b/pom.xml
index 9567c93..9a2fb4b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -25,122 +25,40 @@
     <relativePath />
   </parent>
 
-  <groupId>org.apache.flume</groupId>
   <artifactId>flume-mongodb-parent</artifactId>
-  <version>2.0.0-SNAPSHOT</version>
+  <version>${revision}</version>
   <packaging>pom</packaging>
   <name>Flume MongoDB Parent</name>
 
-  <inceptionYear>2022</inceptionYear>
+  <inceptionYear>2026</inceptionYear>
 
-  <organization>
-    <name>Apache Software Foundation</name>
-    <url>http://www.apache.org</url>
-  </organization>
-
-  <licenses>
-    <license>
-      <name>The Apache Software License, Version 2.0</name>
-      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
-    </license>
-  </licenses>
-
-  <developers>
-    <developer>
-      <id>rgoers</id>
-      <name>Ralph Goers</name>
-      <email>[email protected]</email>
-      <organization>Intuit</organization>
-    </developer>
-  </developers>
-
-  <mailingLists>
-    <mailingList>
-      <name>Flume User List</name>
-      <subscribe>[email protected]</subscribe>
-      <unsubscribe>[email protected]</unsubscribe>
-      <post>[email protected]</post>
-      <archive>http://mail-archives.apache.org/mod_mbox/flume-user/</archive>
-    </mailingList>
-    <mailingList>
-      <name>Flume Developer List</name>
-      <subscribe>[email protected]</subscribe>
-      <unsubscribe>[email protected]</unsubscribe>
-      <post>[email protected]</post>
-      <archive>http://mail-archives.apache.org/mod_mbox/flume-dev/</archive>
-    </mailingList>
-    <mailingList>
-      <name>Flume Commits</name>
-      <subscribe>[email protected]</subscribe>
-      <unsubscribe>[email protected]</unsubscribe>
-      <post>[email protected]</post>
-      
<archive>http://mail-archives.apache.org/mod_mbox/flume-commits/</archive>
-    </mailingList>
-  </mailingLists>
   <modules>
     <module>flume-mongodb-sink</module>
   </modules>
 
-  <scm>
-    
<connection>https://gitbox.apache.org/repos/asf/flume-spring-boot.git</connection>
-    
<developerConnection>https://gitbox.apache.org/repos/asf/flume-spring-boot.git</developerConnection>
-    <url>https://gitbox.apache.org/repos/asf/flume-spring-boot.git</url>
+  <scm child.scm.connection.inherit.append.path="false" 
child.scm.developerConnection.inherit.append.path="false" 
child.scm.url.inherit.append.path="false">
+    
<connection>scm:git:https://gitbox.apache.org/repos/asf/logging-flume-mongodb.git</connection>
+    
<developerConnection>scm:git:https://gitbox.apache.org/repos/asf/logging-flume-mongodb.git</developerConnection>
+    <tag>rel/${revision}</tag>
+    <url>https://gitbox.apache.org/repos/asf/logging-flume-mongodb.git</url>
   </scm>
 
-  <issueManagement>
-    <system>JIRA</system>
-    <url>https://issues.apache.org/jira/browse/FLUME</url>
-  </issueManagement>
-
   <properties>
-    <ReleaseVersion>2.0.0</ReleaseVersion>
-    <ReleaseManager>Ralph Goers</ReleaseManager>
-    <ReleaseKey>B3D8E1BA</ReleaseKey>
-    <SigningUserName>[email protected]</SigningUserName>
-    <checksum-maven-plugin.version>1.11</checksum-maven-plugin.version>
+
+    <revision>2.0.0-SNAPSHOT</revision>
+
+    <!-- The website is generated by Antora from `flume-project`: skip the 
per-module `maven-site-plugin` sites. -->
+    <maven.site.skip>true</maven.site.skip>
+    <!-- Dummy value; overwritten by CI at release time. Do not edit manually. 
-->
+    
<project.build.outputTimestamp>2026-01-01T00:00:00Z</project.build.outputTimestamp>
+
+    <!-- Dependency versions -->
     <dropwizard-metrics.version>4.1.18</dropwizard-metrics.version>
-    <findsecbugs-plugin.version>1.12.0</findsecbugs-plugin.version>
-    <flume.version>2.0.0-SNAPSHOT</flume.version>
-    <jackson.version>2.17.0</jackson.version>
-    <junit.version>4.13.2</junit.version>
-    <mongodb.version>3.7.0</mongodb.version>
-    <log4j.version>2.26.1</log4j.version>
-    <maven.compiler.source>11</maven.compiler.source>
-    <maven.compiler.target>11</maven.compiler.target>
-    <mockito.version>1.9.0</mockito.version>
-    <module.name>org.apache.flume.mongodb</module.name>
-    <mvn-gpg-plugin.version>1.6</mvn-gpg-plugin.version>
-    <mvn-javadoc-plugin.version>2.9</mvn-javadoc-plugin.version>
-    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    <rat.version>0.12</rat.version>
-    <spotbugs-maven-plugin.version>4.7.2.1</spotbugs-maven-plugin.version>
-    <spotless-maven-plugin.version>2.27.2</spotless-maven-plugin.version>
     <mongodb.version>5.10.0</mongodb.version>
   </properties>
+
   <dependencyManagement>
     <dependencies>
-      <dependency>
-        <groupId>org.apache.flume</groupId>
-        <artifactId>flume-ng-core</artifactId>
-        <version>${flume.version}</version>
-      </dependency>
-      <dependency>
-        <groupId>org.apache.flume</groupId>
-        <artifactId>flume-ng-sdk</artifactId>
-        <version>${flume.version}</version>
-      </dependency>
-      <dependency>
-        <groupId>org.apache.flume</groupId>
-        <artifactId>flume-ng-configuration</artifactId>
-        <version>${flume.version}</version>
-      </dependency>
-      <dependency>
-        <groupId>org.mongodb</groupId>
-        <artifactId>mongodb-driver-bom</artifactId>
-        <version>${mongodb.version}</version>
-        <type>pom</type>
-        <scope>import</scope>
-      </dependency>
 
       <dependency>
         <groupId>io.dropwizard.metrics</groupId>
@@ -148,82 +66,46 @@
         <version>${dropwizard-metrics.version}</version>
       </dependency>
 
+      <!-- BOMs at the end, so they don't override the versions above -->
       <dependency>
-        <groupId>org.apache.logging.log4j</groupId>
-        <artifactId>log4j-api</artifactId>
-        <version>${log4j.version}</version>
-      </dependency>
-
-      <dependency>
-        <groupId>org.apache.logging.log4j</groupId>
-        <artifactId>log4j-core</artifactId>
-        <version>${log4j.version}</version>
-      </dependency>
-      <dependency>
-        <groupId>com.fasterxml.jackson.core</groupId>
-        <artifactId>jackson-core</artifactId>
-        <version>${jackson.version}</version>
-      </dependency>
-      <dependency>
-        <groupId>junit</groupId>
-        <artifactId>junit</artifactId>
-        <version>${junit.version}</version>
-      </dependency>
-      <dependency>
-        <groupId>org.mockito</groupId>
-        <artifactId>mockito-all</artifactId>
-        <version>${mockito.version}</version>
-        <scope>test</scope>
+        <groupId>org.mongodb</groupId>
+        <artifactId>mongodb-driver-bom</artifactId>
+        <version>${mongodb.version}</version>
+        <type>pom</type>
+        <scope>import</scope>
       </dependency>
     </dependencies>
   </dependencyManagement>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.rat</groupId>
-        <artifactId>apache-rat-plugin</artifactId>
-        <version>${rat.version}</version>
-        <configuration>
-          <excludes>
-            <exclude>**/.idea/</exclude>
-            <exclude>**/*.iml</exclude>
-            <exclude>src/main/resources/META-INF/services/**/*</exclude>
-            <exclude>**/nb-configuration.xml</exclude>
-            <exclude>.git/</exclude>
-            <exclude>patchprocess/</exclude>
-            <exclude>.gitignore</exclude>
-            <exclude>**/*.yml</exclude>
-            <exclude>**/*.yaml</exclude>
-            <exclude>**/*.json</exclude>
-            <!-- ASF jenkins box puts the Maven repo in our root directory. -->
-            <exclude>.repository/</exclude>
-            <exclude>**/*.diff</exclude>
-            <exclude>**/*.patch</exclude>
-            <exclude>**/*.avsc</exclude>
-            <exclude>**/*.avro</exclude>
-            <exclude>**/docs/**</exclude>
-            <exclude>**/test/resources/**</exclude>
-            <exclude>**/.settings/*</exclude>
-            <exclude>**/.classpath</exclude>
-            <exclude>**/.project</exclude>
-            <exclude>**/target/**</exclude>
-            <exclude>**/derby.log</exclude>
-            <exclude>**/metastore_db/</exclude>
-            <exclude>.mvn/**</exclude>
-            <exclude>**/exclude-pmd.properties</exclude>
-          </excludes>
-          <consoleOutput>true</consoleOutput>
-        </configuration>
-        <executions>
-          <execution>
-            <id>verify.rat</id>
-            <goals>
-              <goal>check</goal>
-            </goals>
-            <phase>verify</phase>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
+
+  <profiles>
+    <!-- Temporary copy from org.apache:apache, until the parent POM is 
released -->
+    <profile>
+      <id>use-apache-snapshots</id>
+      <activation>
+        <property>
+          <name>apache.snapshots</name>
+        </property>
+      </activation>
+      <repositories>
+        <repository>
+          <releases>
+            <enabled>false</enabled>
+          </releases>
+          <id>apache.snapshots</id>
+          <name>Apache Snapshot Repository</name>
+          <url>https://repository.apache.org/snapshots</url>
+        </repository>
+      </repositories>
+      <pluginRepositories>
+        <pluginRepository>
+          <releases>
+            <enabled>false</enabled>
+          </releases>
+          <id>apache.snapshots</id>
+          <name>Apache Snapshot Repository</name>
+          <url>https://repository.apache.org/snapshots</url>
+        </pluginRepository>
+      </pluginRepositories>
+    </profile>
+  </profiles>
 </project>

Reply via email to