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

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


The following commit(s) were added to refs/heads/main by this push:
     new 7911671  Simplify the sink POM (#8)
7911671 is described below

commit 7911671d7de059f857ab5fad5b388441400d4492
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Wed Sep 2 19:21:49 2026 +0200

    Simplify the sink POM (#8)
    
    Drop the plugin configuration that `logging-parent` already provides:
    
    - The `--add-exports` compiler arguments required by Error Prone move to
      `.mvn/jvm.config`, like in the main Flume repository, which also removes
      the hard-coded `maven-compiler-plugin` version.
    - The `bnd-baseline-maven-plugin` execution is inherited; the only local
      setting that remains is `bnd.baseline.fail.on.missing`, since the artifact
      was never released.
    - The `test-jar` execution is removed, as nothing consumes it.
    
    Assisted-By: Claude Fable 5.1 <[email protected]>
    Claude-Session: https://claude.ai/code/session_01F9NiqMnCccUGDtqt64uKe6
---
 .mvn/jvm.config            | 11 +++++++++
 flume-mongodb-sink/pom.xml | 58 ++--------------------------------------------
 2 files changed, 13 insertions(+), 56 deletions(-)

diff --git a/.mvn/jvm.config b/.mvn/jvm.config
new file mode 100644
index 0000000..f3b9f7d
--- /dev/null
+++ b/.mvn/jvm.config
@@ -0,0 +1,11 @@
+--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
+--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
+--add-exports jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED
+--add-exports jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED
+--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
+--add-exports jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED
+--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
+--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
+--add-opens jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
+--add-opens jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
+-Dfile.encoding=UTF-8
diff --git a/flume-mongodb-sink/pom.xml b/flume-mongodb-sink/pom.xml
index ddcb4f9..cfaeaa8 100644
--- a/flume-mongodb-sink/pom.xml
+++ b/flume-mongodb-sink/pom.xml
@@ -27,6 +27,8 @@
   <name>Flume MongoDb Sink</name>
 
   <properties>
+    <!-- This artifact was never released before -->
+    <bnd.baseline.fail.on.missing>false</bnd.baseline.fail.on.missing>
     <!-- TODO fix spotbugs violations -->
     <spotbugs.maxAllowedViolations>4</spotbugs.maxAllowedViolations>
     <pmd.maxAllowedViolations>0</pmd.maxAllowedViolations>
@@ -77,60 +79,4 @@
     </dependency>
 
   </dependencies>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <version>3.13.0</version>
-        <!-- Use a recent version -->
-        <configuration>
-          <compilerArgs>
-            
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg>
-            
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg>
-            
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg>
-            
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED</arg>
-            
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED</arg>
-            
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg>
-            
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</arg>
-            
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg>
-            
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
-            
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg>
-          </compilerArgs>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>biz.aQute.bnd</groupId>
-        <artifactId>bnd-baseline-maven-plugin</artifactId>
-        <configuration>
-          <failOnMissing>false</failOnMissing>
-          <!-- Do not use the &lt;distributionManagement&rt; element to 
download releases -->
-          <includeDistributionManagement>false</includeDistributionManagement>
-          <!-- Do not check against alpha releases -->
-          <releaseversions>true</releaseversions>
-        </configuration>
-        <executions>
-          <execution>
-            <id>check-api-compat</id>
-            <goals>
-              <goal>baseline</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-jar-plugin</artifactId>
-        <executions>
-          <execution>
-            <goals>
-              <goal>test-jar</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-
 </project>

Reply via email to