Skip to content

Commit f493f79

Browse files
ScrapCodespwendell
authored andcommitted
[SPARK-3452] Maven build should skip publishing artifacts people shouldn...
...'t depend on Publish local in maven term is `install` and publish otherwise is `deploy` So disabled both for following projects. Author: Prashant Sharma <[email protected]> Closes #2329 from ScrapCodes/SPARK-3452/maven-skip-install and squashes the following commits: 257b79a [Prashant Sharma] [SPARK-3452] Maven build should skip publishing artifacts people shouldn't depend on
1 parent c243b21 commit f493f79

File tree

6 files changed

+84
-0
lines changed

6 files changed

+84
-0
lines changed

assembly/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,20 @@
8888

8989
<build>
9090
<plugins>
91+
<plugin>
92+
<groupId>org.apache.maven.plugins</groupId>
93+
<artifactId>maven-deploy-plugin</artifactId>
94+
<configuration>
95+
<skip>true</skip>
96+
</configuration>
97+
</plugin>
98+
<plugin>
99+
<groupId>org.apache.maven.plugins</groupId>
100+
<artifactId>maven-install-plugin</artifactId>
101+
<configuration>
102+
<skip>true</skip>
103+
</configuration>
104+
</plugin>
91105
<!-- Use the shade plugin to create a big JAR with all the dependencies -->
92106
<plugin>
93107
<groupId>org.apache.maven.plugins</groupId>

examples/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,20 @@
203203
<outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory>
204204
<testOutputDirectory>target/scala-${scala.binary.version}/test-classes</testOutputDirectory>
205205
<plugins>
206+
<plugin>
207+
<groupId>org.apache.maven.plugins</groupId>
208+
<artifactId>maven-deploy-plugin</artifactId>
209+
<configuration>
210+
<skip>true</skip>
211+
</configuration>
212+
</plugin>
213+
<plugin>
214+
<groupId>org.apache.maven.plugins</groupId>
215+
<artifactId>maven-install-plugin</artifactId>
216+
<configuration>
217+
<skip>true</skip>
218+
</configuration>
219+
</plugin>
206220
<plugin>
207221
<groupId>org.apache.maven.plugins</groupId>
208222
<artifactId>maven-shade-plugin</artifactId>

extras/java8-tests/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,20 @@
7474
</profiles>
7575
<build>
7676
<plugins>
77+
<plugin>
78+
<groupId>org.apache.maven.plugins</groupId>
79+
<artifactId>maven-deploy-plugin</artifactId>
80+
<configuration>
81+
<skip>true</skip>
82+
</configuration>
83+
</plugin>
84+
<plugin>
85+
<groupId>org.apache.maven.plugins</groupId>
86+
<artifactId>maven-install-plugin</artifactId>
87+
<configuration>
88+
<skip>true</skip>
89+
</configuration>
90+
</plugin>
7791
<plugin>
7892
<groupId>org.apache.maven.plugins</groupId>
7993
<artifactId>maven-surefire-plugin</artifactId>

repl/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,20 @@
9999
<outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory>
100100
<testOutputDirectory>target/scala-${scala.binary.version}/test-classes</testOutputDirectory>
101101
<plugins>
102+
<plugin>
103+
<groupId>org.apache.maven.plugins</groupId>
104+
<artifactId>maven-deploy-plugin</artifactId>
105+
<configuration>
106+
<skip>true</skip>
107+
</configuration>
108+
</plugin>
109+
<plugin>
110+
<groupId>org.apache.maven.plugins</groupId>
111+
<artifactId>maven-install-plugin</artifactId>
112+
<configuration>
113+
<skip>true</skip>
114+
</configuration>
115+
</plugin>
102116
<plugin>
103117
<groupId>org.scalatest</groupId>
104118
<artifactId>scalatest-maven-plugin</artifactId>

tools/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,20 @@
6363
<outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory>
6464
<testOutputDirectory>target/scala-${scala.binary.version}/test-classes</testOutputDirectory>
6565
<plugins>
66+
<plugin>
67+
<groupId>org.apache.maven.plugins</groupId>
68+
<artifactId>maven-deploy-plugin</artifactId>
69+
<configuration>
70+
<skip>true</skip>
71+
</configuration>
72+
</plugin>
73+
<plugin>
74+
<groupId>org.apache.maven.plugins</groupId>
75+
<artifactId>maven-install-plugin</artifactId>
76+
<configuration>
77+
<skip>true</skip>
78+
</configuration>
79+
</plugin>
6680
<plugin>
6781
<groupId>org.apache.maven.plugins</groupId>
6882
<artifactId>maven-source-plugin</artifactId>

yarn/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,20 @@
8888

8989
<build>
9090
<plugins>
91+
<plugin>
92+
<groupId>org.apache.maven.plugins</groupId>
93+
<artifactId>maven-deploy-plugin</artifactId>
94+
<configuration>
95+
<skip>true</skip>
96+
</configuration>
97+
</plugin>
98+
<plugin>
99+
<groupId>org.apache.maven.plugins</groupId>
100+
<artifactId>maven-install-plugin</artifactId>
101+
<configuration>
102+
<skip>true</skip>
103+
</configuration>
104+
</plugin>
91105
<plugin>
92106
<groupId>org.codehaus.mojo</groupId>
93107
<artifactId>build-helper-maven-plugin</artifactId>

0 commit comments

Comments
 (0)