Skip to content

Commit f555f56

Browse files
authored
chore: fix declaration of maven-source-plugin for v3.3.0 (#1922)
* chore: fix declaration of maven-source-plugin for v3.3.0
1 parent f0b1b4e commit f555f56

File tree

11 files changed

+17
-94
lines changed

11 files changed

+17
-94
lines changed

google-http-client-android/pom.xml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,6 @@
2323
<windowtitle>${project.artifactId} ${project.version}</windowtitle>
2424
</configuration>
2525
</plugin>
26-
<plugin>
27-
<artifactId>maven-source-plugin</artifactId>
28-
<executions>
29-
<execution>
30-
<id>source-jar</id>
31-
<phase>compile</phase>
32-
<goals>
33-
<goal>jar</goal>
34-
</goals>
35-
</execution>
36-
</executions>
37-
</plugin>
3826
<plugin>
3927
<artifactId>maven-jar-plugin</artifactId>
4028
<configuration>
@@ -44,7 +32,10 @@
4432
</manifestEntries>
4533
</archive>
4634
</configuration>
47-
</plugin>
35+
</plugin>
36+
<plugin>
37+
<artifactId>maven-source-plugin</artifactId>
38+
</plugin>
4839
</plugins>
4940
</build>
5041
<dependencies>

google-http-client-apache-v2/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,6 @@
2525
</plugin>
2626
<plugin>
2727
<artifactId>maven-source-plugin</artifactId>
28-
<executions>
29-
<execution>
30-
<id>source-jar</id>
31-
<phase>compile</phase>
32-
<goals>
33-
<goal>jar</goal>
34-
</goals>
35-
</execution>
36-
</executions>
3728
</plugin>
3829
<plugin>
3930
<groupId>org.codehaus.mojo</groupId>

google-http-client-appengine/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,6 @@
2626
</plugin>
2727
<plugin>
2828
<artifactId>maven-source-plugin</artifactId>
29-
<executions>
30-
<execution>
31-
<id>source-jar</id>
32-
<phase>compile</phase>
33-
<goals>
34-
<goal>jar</goal>
35-
</goals>
36-
</execution>
37-
</executions>
3829
</plugin>
3930
<!--App Engine uses Java 7 and above-->
4031
<plugin>

google-http-client-findbugs/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,6 @@
1515
<plugins>
1616
<plugin>
1717
<artifactId>maven-source-plugin</artifactId>
18-
<executions>
19-
<execution>
20-
<id>source-jar</id>
21-
<phase>compile</phase>
22-
<goals>
23-
<goal>jar</goal>
24-
</goals>
25-
</execution>
26-
</executions>
2718
</plugin>
2819
<plugin>
2920
<groupId>org.codehaus.mojo</groupId>

google-http-client-gson/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,6 @@
2626
</plugin>
2727
<plugin>
2828
<artifactId>maven-source-plugin</artifactId>
29-
<executions>
30-
<execution>
31-
<id>source-jar</id>
32-
<phase>compile</phase>
33-
<goals>
34-
<goal>jar</goal>
35-
</goals>
36-
</execution>
37-
</executions>
3829
</plugin>
3930
<plugin>
4031
<groupId>org.codehaus.mojo</groupId>

google-http-client-jackson2/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,6 @@
2525
</plugin>
2626
<plugin>
2727
<artifactId>maven-source-plugin</artifactId>
28-
<executions>
29-
<execution>
30-
<id>source-jar</id>
31-
<phase>compile</phase>
32-
<goals>
33-
<goal>jar</goal>
34-
</goals>
35-
</execution>
36-
</executions>
3728
</plugin>
3829
<plugin>
3930
<groupId>org.codehaus.mojo</groupId>

google-http-client-protobuf/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,6 @@
3232
</plugin>
3333
<plugin>
3434
<artifactId>maven-source-plugin</artifactId>
35-
<executions>
36-
<execution>
37-
<id>source-jar</id>
38-
<phase>compile</phase>
39-
<goals>
40-
<goal>jar</goal>
41-
</goals>
42-
</execution>
43-
</executions>
4435
</plugin>
4536
<plugin>
4637
<groupId>org.xolstice.maven.plugins</groupId>

google-http-client-test/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,6 @@
2525
</plugin>
2626
<plugin>
2727
<artifactId>maven-source-plugin</artifactId>
28-
<executions>
29-
<execution>
30-
<id>source-jar</id>
31-
<phase>compile</phase>
32-
<goals>
33-
<goal>jar</goal>
34-
</goals>
35-
</execution>
36-
</executions>
3728
</plugin>
3829
<plugin>
3930
<groupId>org.codehaus.mojo</groupId>

google-http-client-xml/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,6 @@
2525
</plugin>
2626
<plugin>
2727
<artifactId>maven-source-plugin</artifactId>
28-
<executions>
29-
<execution>
30-
<id>source-jar</id>
31-
<phase>compile</phase>
32-
<goals>
33-
<goal>jar</goal>
34-
</goals>
35-
</execution>
36-
</executions>
3728
</plugin>
3829
<plugin>
3930
<groupId>org.codehaus.mojo</groupId>

google-http-client/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,6 @@
7272
</plugin>
7373
<plugin>
7474
<artifactId>maven-source-plugin</artifactId>
75-
<executions>
76-
<execution>
77-
<id>source-jar</id>
78-
<phase>compile</phase>
79-
<goals>
80-
<goal>jar</goal>
81-
</goals>
82-
</execution>
83-
</executions>
8475
</plugin>
8576
<plugin>
8677
<artifactId>maven-jar-plugin</artifactId>

pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,19 @@
388388
<artifactId>maven-enforcer-plugin</artifactId>
389389
<version>3.4.1</version>
390390
</plugin>
391+
<plugin>
392+
<groupId>org.apache.maven.plugins</groupId>
393+
<artifactId>maven-source-plugin</artifactId>
394+
<version>3.3.0</version>
395+
<executions>
396+
<execution>
397+
<id>attach-sources</id>
398+
<goals>
399+
<goal>jar-no-fork</goal>
400+
</goals>
401+
</execution>
402+
</executions>
403+
</plugin>
391404
</plugins>
392405
</pluginManagement>
393406
<plugins>

0 commit comments

Comments
 (0)