Skip to content

Commit 24f425d

Browse files
committed
fix: skip deploy for examples package
1 parent 6ef6df4 commit 24f425d

2 files changed

Lines changed: 26 additions & 53 deletions

File tree

modules/examples/pom.xml

Lines changed: 24 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
<packaging>jar</packaging>
1515
<name>Code Engine Examples</name>
1616

17+
<properties>
18+
<maven.javadoc.skip>true</maven.javadoc.skip>
19+
<!-- Skip Maven deployment -->
20+
<maven.deploy.skip>true</maven.deploy.skip>
21+
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
22+
</properties>
23+
1724
<dependencies>
1825
<dependency>
1926
<groupId>com.ibm.cloud</groupId>
@@ -36,60 +43,26 @@
3643
</dependency>
3744
</dependencies>
3845

39-
<properties>
40-
<maven.javadoc.skip>true</maven.javadoc.skip>
41-
</properties>
4246
<build>
43-
<plugins>
44-
<plugin>
45-
<groupId>org.apache.maven.plugins</groupId>
46-
<artifactId>maven-shade-plugin</artifactId>
47-
<executions>
48-
<execution>
49-
<phase>package</phase>
50-
<goals>
51-
<goal>shade</goal>
52-
</goals>
47+
<plugins>
48+
<plugin>
49+
<groupId>org.apache.maven.plugins</groupId>
50+
<artifactId>maven-shade-plugin</artifactId>
51+
</plugin>
52+
<plugin>
53+
<groupId>org.apache.maven.plugins</groupId>
54+
<artifactId>maven-jar-plugin</artifactId>
5355
<configuration>
54-
<minimizeJar>true</minimizeJar>
55-
<filters>
56-
<filter>
57-
<artifact>*:*</artifact>
58-
<excludes>
59-
<exclude>META-INF/*.SF</exclude>
60-
<exclude>META-INF/*.DSA</exclude>
61-
<exclude>META-INF/*.RSA</exclude>
62-
</excludes>
63-
</filter>
64-
</filters>
56+
<archive>
57+
<manifest>
58+
<addClasspath>true</addClasspath>
59+
<mainClass>com.ibm.cloud.code_engine.ibm_cloud_code_engine.v1.IbmCloudCodeEngineExamples</mainClass>
60+
</manifest>
61+
</archive>
6562
</configuration>
66-
</execution>
67-
</executions>
68-
</plugin>
69-
<plugin>
70-
<!-- Build an executable JAR -->
71-
<groupId>org.apache.maven.plugins</groupId>
72-
<artifactId>maven-jar-plugin</artifactId>
73-
<configuration>
74-
<archive>
75-
<manifest>
76-
<addClasspath>true</addClasspath>
77-
<mainClass>com.ibm.cloud.code_engine.ibm_cloud_code_engine.v1.IbmCloudCodeEngineExamples</mainClass>
78-
</manifest>
79-
</archive>
80-
</configuration>
81-
82-
</plugin>
83-
<!-- No need to deploy this artifact -->
84-
<plugin>
85-
<groupId>com.carrotgarden.maven</groupId>
86-
<artifactId>bintray-maven-plugin</artifactId>
87-
<configuration>
88-
<skip>true</skip>
89-
</configuration>
90-
</plugin>
91-
</plugins>
92-
</build>
63+
</plugin>
64+
</plugins>
65+
</build>
9366

9467
<developers>
9568
<developer>

modules/examples/src/main/java/com/ibm/cloud/code_engine/ibm_cloud_code_engine/v1/IbmCloudCodeEngineExamples.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import io.kubernetes.client.openapi.models.V1ConfigMapList;
3434

3535
/**
36-
* Provides an example of using the IbmCloudCodeEngine package to interact with the Code Engine API
36+
* Provides an example of using the IbmCloudCodeEngine package to interact with the Code Engine API.
3737
*/
3838
public class IbmCloudCodeEngineExamples {
3939

@@ -43,7 +43,7 @@ private IbmCloudCodeEngineExamples() {
4343
}
4444

4545
/**
46-
* Class method which runs the example
46+
* Class method which runs the example.
4747
*
4848
* @param args argumments provided to the example program
4949
*/

0 commit comments

Comments
 (0)