Skip to content

Commit c35b2ec

Browse files
authored
use os-maven-plugin as plugin: fixes reproducible build (#10067)
1 parent fe13598 commit c35b2ec

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

dubbo-demo/dubbo-demo-triple/pom.xml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,20 @@
118118
</dependencies>
119119

120120
<build>
121-
<extensions>
122-
<extension>
121+
<plugins>
122+
<plugin>
123123
<groupId>kr.motd.maven</groupId>
124124
<artifactId>os-maven-plugin</artifactId>
125-
<version>1.6.1</version>
126-
</extension>
127-
</extensions>
128-
<plugins>
125+
<version>1.6.2</version>
126+
<executions>
127+
<execution>
128+
<phase>initialize</phase>
129+
<goals>
130+
<goal>detect</goal>
131+
</goals>
132+
</execution>
133+
</executions>
134+
</plugin>
129135
<plugin>
130136
<groupId>org.xolstice.maven.plugins</groupId>
131137
<artifactId>protobuf-maven-plugin</artifactId>

dubbo-rpc/dubbo-rpc-triple/pom.xml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,20 @@
7575
</dependency>
7676
</dependencies>
7777
<build>
78-
<extensions>
79-
<extension>
78+
<plugins>
79+
<plugin>
8080
<groupId>kr.motd.maven</groupId>
8181
<artifactId>os-maven-plugin</artifactId>
8282
<version>1.6.2</version>
83-
</extension>
84-
</extensions>
85-
<plugins>
83+
<executions>
84+
<execution>
85+
<phase>initialize</phase>
86+
<goals>
87+
<goal>detect</goal>
88+
</goals>
89+
</execution>
90+
</executions>
91+
</plugin>
8692
<plugin>
8793
<groupId>org.xolstice.maven.plugins</groupId>
8894
<artifactId>protobuf-maven-plugin</artifactId>

0 commit comments

Comments
 (0)