This is an automated email from the ASF dual-hosted git repository.
zrlw pushed a commit to branch 3.3
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.3 by this push:
new 7e06055f13 Add os-maven-plugin to the maven extensions of the modules
which need OS type detection (#15540)
7e06055f13 is described below
commit 7e06055f1369a8c6a04940c990a1dbcdc6bcdc07
Author: zrlw <[email protected]>
AuthorDate: Sun Jul 13 19:10:59 2025 +0800
Add os-maven-plugin to the maven extensions of the modules which need OS
type detection (#15540)
---
dubbo-demo/dubbo-demo-spring-boot-idl/pom.xml | 9 +++++++++
dubbo-plugin/dubbo-security/pom.xml | 17 ++++++++++++++++-
dubbo-remoting/dubbo-remoting-http3/pom.xml | 27 +++++++++++++++++++++++++++
dubbo-rpc/dubbo-rpc-triple/pom.xml | 9 +++++++++
4 files changed, 61 insertions(+), 1 deletion(-)
diff --git a/dubbo-demo/dubbo-demo-spring-boot-idl/pom.xml
b/dubbo-demo/dubbo-demo-spring-boot-idl/pom.xml
index b8f54eaf03..1075b795dc 100644
--- a/dubbo-demo/dubbo-demo-spring-boot-idl/pom.xml
+++ b/dubbo-demo/dubbo-demo-spring-boot-idl/pom.xml
@@ -90,6 +90,7 @@
<build>
<plugins>
<plugin>
+ <!-- add os-maven-plugin to plugins just for Eclipse m2e, not for `mvn
install` -->
<groupId>kr.motd.maven</groupId>
<artifactId>os-maven-plugin</artifactId>
<version>${maven_os_plugin_version}</version>
@@ -112,5 +113,13 @@
</configuration>
</plugin>
</plugins>
+ <extensions>
+ <!-- add os-maven-plugin to extensions for `mvn install` -->
+ <extension>
+ <groupId>kr.motd.maven</groupId>
+ <artifactId>os-maven-plugin</artifactId>
+ <version>${maven_os_plugin_version}</version>
+ </extension>
+ </extensions>
</build>
</project>
diff --git a/dubbo-plugin/dubbo-security/pom.xml
b/dubbo-plugin/dubbo-security/pom.xml
index 13c20b251b..9e4f7a8cd4 100644
--- a/dubbo-plugin/dubbo-security/pom.xml
+++ b/dubbo-plugin/dubbo-security/pom.xml
@@ -124,12 +124,27 @@
<skip>true</skip>
</configuration>
</plugin>
+ <!-- add os-maven-plugin to plugins just for Eclipse m2e, not for `mvn
install` -->
+ <plugin>
+ <groupId>kr.motd.maven</groupId>
+ <artifactId>os-maven-plugin</artifactId>
+ <version>${maven_os_plugin_version}</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>detect</goal>
+ </goals>
+ <phase>initialize</phase>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
<extensions>
+ <!-- add os-maven-plugin to extensions for `mvn install` -->
<extension>
<groupId>kr.motd.maven</groupId>
<artifactId>os-maven-plugin</artifactId>
- <version>1.7.1</version>
+ <version>${maven_os_plugin_version}</version>
</extension>
</extensions>
</build>
diff --git a/dubbo-remoting/dubbo-remoting-http3/pom.xml
b/dubbo-remoting/dubbo-remoting-http3/pom.xml
index 7469ad3b01..c01b3083da 100644
--- a/dubbo-remoting/dubbo-remoting-http3/pom.xml
+++ b/dubbo-remoting/dubbo-remoting-http3/pom.xml
@@ -53,4 +53,31 @@
<scope>test</scope>
</dependency>
</dependencies>
+
+ <build>
+ <plugins>
+ <!-- add os-maven-plugin to plugins just for Eclipse m2e, not for `mvn
install` -->
+ <plugin>
+ <groupId>kr.motd.maven</groupId>
+ <artifactId>os-maven-plugin</artifactId>
+ <version>${maven_os_plugin_version}</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>detect</goal>
+ </goals>
+ <phase>initialize</phase>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ <extensions>
+ <!-- add os-maven-plugin to extensions for `mvn install` -->
+ <extension>
+ <groupId>kr.motd.maven</groupId>
+ <artifactId>os-maven-plugin</artifactId>
+ <version>${maven_os_plugin_version}</version>
+ </extension>
+ </extensions>
+ </build>
</project>
diff --git a/dubbo-rpc/dubbo-rpc-triple/pom.xml
b/dubbo-rpc/dubbo-rpc-triple/pom.xml
index 5d0a0140c4..940ada7e08 100644
--- a/dubbo-rpc/dubbo-rpc-triple/pom.xml
+++ b/dubbo-rpc/dubbo-rpc-triple/pom.xml
@@ -132,6 +132,7 @@
</dependencies>
<build>
<plugins>
+ <!-- add os-maven-plugin to plugins just for Eclipse m2e, not for `mvn
install` -->
<plugin>
<groupId>kr.motd.maven</groupId>
<artifactId>os-maven-plugin</artifactId>
@@ -193,5 +194,13 @@
</executions>
</plugin>
</plugins>
+ <extensions>
+ <!-- add os-maven-plugin to extensions for `mvn install` -->
+ <extension>
+ <groupId>kr.motd.maven</groupId>
+ <artifactId>os-maven-plugin</artifactId>
+ <version>${maven_os_plugin_version}</version>
+ </extension>
+ </extensions>
</build>
</project>