Skip to content

Commit cc124dc

Browse files
lhotarinicoloboschi
authored andcommitted
Fix duplicate artifacts issue with maven-source-plugin in release build (#4237)
(cherry picked from commit 5abb87f)
1 parent 8407f96 commit cc124dc

File tree

27 files changed

+15
-60
lines changed

27 files changed

+15
-60
lines changed

bookkeeper-common/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@
114114
<plugin>
115115
<groupId>org.apache.maven.plugins</groupId>
116116
<artifactId>maven-jar-plugin</artifactId>
117-
<version>${maven-jar-plugin.version}</version>
118117
<executions>
119118
<execution>
120119
<goals>

bookkeeper-dist/all/pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</parent>
2929

3030
<artifactId>bookkeeper-dist-all</artifactId>
31-
<packaging>jar</packaging>
31+
<packaging>pom</packaging>
3232
<name>Apache BookKeeper :: Dist (All)</name>
3333

3434
<dependencies>
@@ -124,8 +124,8 @@
124124
<build>
125125
<plugins>
126126
<plugin>
127+
<groupId>org.apache.maven.plugins</groupId>
127128
<artifactId>maven-assembly-plugin</artifactId>
128-
<version>${maven-assembly-plugin.version}</version>
129129
<configuration>
130130
<finalName>bookkeeper-all-${project.version}</finalName>
131131
<attach>false</attach>
@@ -147,7 +147,6 @@
147147
<plugin>
148148
<groupId>org.apache.maven.plugins</groupId>
149149
<artifactId>maven-deploy-plugin</artifactId>
150-
<version>${maven-deploy-plugin.version}</version>
151150
<configuration>
152151
<skip>true</skip>
153152
</configuration>

bookkeeper-dist/bkctl/pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</parent>
2929

3030
<artifactId>bkctl</artifactId>
31-
<packaging>jar</packaging>
31+
<packaging>pom</packaging>
3232
<name>Apache BookKeeper :: Dist (Bkctl)</name>
3333

3434
<dependencies>
@@ -49,8 +49,8 @@
4949
<build>
5050
<plugins>
5151
<plugin>
52+
<groupId>org.apache.maven.plugins</groupId>
5253
<artifactId>maven-assembly-plugin</artifactId>
53-
<version>${maven-assembly-plugin.version}</version>
5454
<configuration>
5555
<finalName>bkctl-${project.version}</finalName>
5656
<attach>true</attach>
@@ -72,7 +72,6 @@
7272
<plugin>
7373
<groupId>org.apache.maven.plugins</groupId>
7474
<artifactId>maven-deploy-plugin</artifactId>
75-
<version>${maven-deploy-plugin.version}</version>
7675
<configuration>
7776
<skip>true</skip>
7877
</configuration>

bookkeeper-dist/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
<build>
3838
<plugins>
3939
<plugin>
40+
<groupId>org.apache.maven.plugins</groupId>
4041
<artifactId>maven-jar-plugin</artifactId>
41-
<version>${maven-jar-plugin.version}</version>
4242
<executions>
4343
<execution>
4444
<id>default-jar</id>
@@ -47,8 +47,8 @@
4747
</executions>
4848
</plugin>
4949
<plugin>
50+
<groupId>org.apache.maven.plugins</groupId>
5051
<artifactId>maven-assembly-plugin</artifactId>
51-
<version>${maven-assembly-plugin.version}</version>
5252
<configuration>
5353
<finalName>bookkeeper-${project.version}</finalName>
5454
<descriptors>

bookkeeper-dist/server/pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</parent>
2929

3030
<artifactId>bookkeeper-dist-server</artifactId>
31-
<packaging>jar</packaging>
31+
<packaging>pom</packaging>
3232
<name>Apache BookKeeper :: Dist (Server)</name>
3333

3434
<dependencies>
@@ -98,8 +98,8 @@
9898
<build>
9999
<plugins>
100100
<plugin>
101+
<groupId>org.apache.maven.plugins</groupId>
101102
<artifactId>maven-assembly-plugin</artifactId>
102-
<version>${maven-assembly-plugin.version}</version>
103103
<configuration>
104104
<finalName>bookkeeper-server-${project.version}</finalName>
105105
<attach>true</attach>
@@ -121,7 +121,6 @@
121121
<plugin>
122122
<groupId>org.apache.maven.plugins</groupId>
123123
<artifactId>maven-deploy-plugin</artifactId>
124-
<version>${maven-deploy-plugin.version}</version>
125124
<configuration>
126125
<skip>true</skip>
127126
</configuration>

bookkeeper-server/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@
228228
<plugin>
229229
<groupId>org.apache.maven.plugins</groupId>
230230
<artifactId>maven-jar-plugin</artifactId>
231-
<version>${maven-jar-plugin.version}</version>
232231
<executions>
233232
<execution>
234233
<goals>

circe-checksum/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
<plugin>
9494
<groupId>org.apache.maven.plugins</groupId>
9595
<artifactId>maven-assembly-plugin</artifactId>
96-
<version>${maven-assembly-plugin.version}</version>
9796
<configuration>
9897
<descriptors>
9998
<descriptor>src/main/assembly/assembly.xml</descriptor>

cpu-affinity/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,11 @@
5252
<plugin>
5353
<groupId>com.github.maven-nar</groupId>
5454
<artifactId>nar-maven-plugin</artifactId>
55-
<version>${nar-maven-plugin.version}</version>
5655
<extensions>true</extensions>
5756
</plugin>
5857
<plugin>
5958
<groupId>org.apache.maven.plugins</groupId>
6059
<artifactId>maven-assembly-plugin</artifactId>
61-
<version>${maven-assembly-plugin.version}</version>
6260
<configuration>
6361
<descriptors>
6462
<descriptor>src/main/assembly/assembly.xml</descriptor>
@@ -103,7 +101,6 @@
103101
<plugin>
104102
<groupId>com.github.maven-nar</groupId>
105103
<artifactId>nar-maven-plugin</artifactId>
106-
<version>${nar-maven-plugin.version}</version>
107104
<extensions>true</extensions>
108105
<executions>
109106
<execution>
@@ -140,7 +137,6 @@
140137
<plugin>
141138
<groupId>com.github.maven-nar</groupId>
142139
<artifactId>nar-maven-plugin</artifactId>
143-
<version>${nar-maven-plugin.version}</version>
144140
<extensions>true</extensions>
145141
<configuration>
146142
<runtime>${nar.runtime}</runtime>
@@ -175,7 +171,6 @@
175171
<plugin>
176172
<groupId>com.github.maven-nar</groupId>
177173
<artifactId>nar-maven-plugin</artifactId>
178-
<version>${nar-maven-plugin.version}</version>
179174
<extensions>true</extensions>
180175
<configuration>
181176
<runtime>${nar.runtime}</runtime>
@@ -212,7 +207,6 @@
212207
<plugin>
213208
<groupId>com.github.maven-nar</groupId>
214209
<artifactId>nar-maven-plugin</artifactId>
215-
<version>${nar-maven-plugin.version}</version>
216210
<extensions>true</extensions>
217211
<configuration>
218212
<runtime>${nar.runtime}</runtime>

microbenchmarks/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@
8181
<plugin>
8282
<groupId>org.apache.maven.plugins</groupId>
8383
<artifactId>maven-shade-plugin</artifactId>
84-
<version>${maven-shade-plugin.version}</version>
8584
<executions>
8685
<execution>
8786
<phase>package</phase>

native-io/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,11 @@
4949
<plugin>
5050
<groupId>com.github.maven-nar</groupId>
5151
<artifactId>nar-maven-plugin</artifactId>
52-
<version>${nar-maven-plugin.version}</version>
5352
<extensions>true</extensions>
5453
</plugin>
5554
<plugin>
5655
<groupId>org.apache.maven.plugins</groupId>
5756
<artifactId>maven-assembly-plugin</artifactId>
58-
<version>${maven-assembly-plugin.version}</version>
5957
<configuration>
6058
<descriptors>
6159
<descriptor>src/main/assembly/assembly.xml</descriptor>
@@ -94,7 +92,6 @@
9492
<plugin>
9593
<groupId>com.github.maven-nar</groupId>
9694
<artifactId>nar-maven-plugin</artifactId>
97-
<version>${nar-maven-plugin.version}</version>
9895
<extensions>true</extensions>
9996
<executions>
10097
<execution>
@@ -131,7 +128,6 @@
131128
<plugin>
132129
<groupId>com.github.maven-nar</groupId>
133130
<artifactId>nar-maven-plugin</artifactId>
134-
<version>${nar-maven-plugin.version}</version>
135131
<extensions>true</extensions>
136132
<configuration>
137133
<runtime>${nar.runtime}</runtime>
@@ -166,7 +162,6 @@
166162
<plugin>
167163
<groupId>com.github.maven-nar</groupId>
168164
<artifactId>nar-maven-plugin</artifactId>
169-
<version>${nar-maven-plugin.version}</version>
170165
<extensions>true</extensions>
171166
<configuration>
172167
<runtime>${nar.runtime}</runtime>
@@ -203,7 +198,6 @@
203198
<plugin>
204199
<groupId>com.github.maven-nar</groupId>
205200
<artifactId>nar-maven-plugin</artifactId>
206-
<version>${nar-maven-plugin.version}</version>
207201
<extensions>true</extensions>
208202
<configuration>
209203
<runtime>${nar.runtime}</runtime>

0 commit comments

Comments
 (0)