Skip to content

Commit 26a520a

Browse files
committed
maven deploy configuration (skip in tests and examples) (#1388)
1 parent 7bbc40a commit 26a520a

File tree

7 files changed

+125
-79
lines changed

7 files changed

+125
-79
lines changed

examples/powertools-examples-core/cdk/app/pom.xml

+8-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
<log4j.version>2.20.0</log4j.version>
1414
<maven.compiler.source>1.8</maven.compiler.source>
1515
<maven.compiler.target>1.8</maven.compiler.target>
16-
<maven.deploy.skip>true</maven.deploy.skip>
1716
</properties>
1817

1918
<dependencies>
@@ -120,6 +119,14 @@
120119
</dependency>
121120
</dependencies>
122121
</plugin>
122+
<!-- Don't deploy the example -->
123+
<plugin>
124+
<groupId>org.apache.maven.plugins</groupId>
125+
<artifactId>maven-deploy-plugin</artifactId>
126+
<configuration>
127+
<skip>true</skip>
128+
</configuration>
129+
</plugin>
123130
</plugins>
124131
</build>
125132
<profiles>

examples/powertools-examples-core/cdk/infra/pom.xml

+8-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<cdk.version>2.92.0</cdk.version>
1111
<constructs.version>[10.0.0,11.0.0)</constructs.version>
1212
<junit.version>5.10.0</junit.version>
13-
<maven.deploy.skip>true</maven.deploy.skip>
1413
</properties>
1514
<build>
1615
<plugins>
@@ -31,6 +30,14 @@
3130
<mainClass>cdk.CdkApp</mainClass>
3231
</configuration>
3332
</plugin>
33+
<!-- Don't deploy the example -->
34+
<plugin>
35+
<groupId>org.apache.maven.plugins</groupId>
36+
<artifactId>maven-deploy-plugin</artifactId>
37+
<configuration>
38+
<skip>true</skip>
39+
</configuration>
40+
</plugin>
3441
</plugins>
3542
</build>
3643
<dependencies>

examples/powertools-examples-core/sam/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44

55
<groupId>software.amazon.lambda.examples</groupId>

examples/powertools-examples-parameters/pom.xml

+46-38
Original file line numberDiff line numberDiff line change
@@ -62,44 +62,52 @@
6262
</dependencies>
6363

6464
<build>
65-
<plugins>
66-
<plugin>
67-
<groupId>org.apache.maven.plugins</groupId>
68-
<artifactId>maven-surefire-plugin</artifactId>
69-
<!-- JUnit 5 requires Surefire version 3.1.0 or higher -->
70-
<version>3.1.2</version>
71-
</plugin>
72-
<plugin>
73-
<groupId>dev.aspectj</groupId>
74-
<artifactId>aspectj-maven-plugin</artifactId>
75-
<version>1.13.1</version>
76-
<configuration>
77-
<source>${maven.compiler.source}</source>
78-
<target>${maven.compiler.target}</target>
79-
<complianceLevel>${maven.compiler.target}</complianceLevel>
80-
<aspectLibraries>
81-
<aspectLibrary>
82-
<groupId>software.amazon.lambda</groupId>
83-
<artifactId>powertools-parameters</artifactId>
84-
</aspectLibrary>
85-
</aspectLibraries>
86-
</configuration>
87-
<executions>
88-
<execution>
89-
<goals>
90-
<goal>compile</goal>
91-
</goals>
92-
</execution>
93-
</executions>
94-
<dependencies>
95-
<dependency>
96-
<groupId>org.aspectj</groupId>
97-
<artifactId>aspectjtools</artifactId>
98-
<version>${aspectj.version}</version>
99-
</dependency>
100-
</dependencies>
101-
</plugin>
102-
</plugins>
65+
<plugins>
66+
<plugin>
67+
<groupId>org.apache.maven.plugins</groupId>
68+
<artifactId>maven-surefire-plugin</artifactId>
69+
<!-- JUnit 5 requires Surefire version 3.1.0 or higher -->
70+
<version>3.1.2</version>
71+
</plugin>
72+
<plugin>
73+
<groupId>dev.aspectj</groupId>
74+
<artifactId>aspectj-maven-plugin</artifactId>
75+
<version>1.13.1</version>
76+
<configuration>
77+
<source>${maven.compiler.source}</source>
78+
<target>${maven.compiler.target}</target>
79+
<complianceLevel>${maven.compiler.target}</complianceLevel>
80+
<aspectLibraries>
81+
<aspectLibrary>
82+
<groupId>software.amazon.lambda</groupId>
83+
<artifactId>powertools-parameters</artifactId>
84+
</aspectLibrary>
85+
</aspectLibraries>
86+
</configuration>
87+
<executions>
88+
<execution>
89+
<goals>
90+
<goal>compile</goal>
91+
</goals>
92+
</execution>
93+
</executions>
94+
<dependencies>
95+
<dependency>
96+
<groupId>org.aspectj</groupId>
97+
<artifactId>aspectjtools</artifactId>
98+
<version>${aspectj.version}</version>
99+
</dependency>
100+
</dependencies>
101+
</plugin>
102+
<!-- Don't deploy the example -->
103+
<plugin>
104+
<groupId>org.apache.maven.plugins</groupId>
105+
<artifactId>maven-deploy-plugin</artifactId>
106+
<configuration>
107+
<skip>true</skip>
108+
</configuration>
109+
</plugin>
110+
</plugins>
103111
</build>
104112
<profiles>
105113
<!-- Use a profile to enforce AspectJ version 1.9.7 if we are Java 1.8 otherwise we'll get class

examples/powertools-examples-serialization/pom.xml

+8
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@
7171
<skip>true</skip>
7272
</configuration>
7373
</plugin>
74+
<!-- Don't deploy the example -->
75+
<plugin>
76+
<groupId>org.apache.maven.plugins</groupId>
77+
<artifactId>maven-deploy-plugin</artifactId>
78+
<configuration>
79+
<skip>true</skip>
80+
</configuration>
81+
</plugin>
7482
<plugin>
7583
<groupId>dev.aspectj</groupId>
7684
<artifactId>aspectj-maven-plugin</artifactId>

examples/powertools-examples-validation/pom.xml

+46-38
Original file line numberDiff line numberDiff line change
@@ -71,44 +71,52 @@
7171
</dependencies>
7272

7373
<build>
74-
<plugins>
75-
<plugin>
76-
<groupId>org.apache.maven.plugins</groupId>
77-
<artifactId>maven-surefire-plugin</artifactId>
78-
<!-- JUnit 5 requires Surefire version 3.1.0 or higher -->
79-
<version>3.1.2</version>
80-
</plugin>
81-
<plugin>
82-
<groupId>dev.aspectj</groupId>
83-
<artifactId>aspectj-maven-plugin</artifactId>
84-
<version>1.13.1</version>
85-
<configuration>
86-
<source>${maven.compiler.source}</source>
87-
<target>${maven.compiler.target}</target>
88-
<complianceLevel>${maven.compiler.target}</complianceLevel>
89-
<aspectLibraries>
90-
<aspectLibrary>
91-
<groupId>software.amazon.lambda</groupId>
92-
<artifactId>powertools-validation</artifactId>
93-
</aspectLibrary>
94-
</aspectLibraries>
95-
</configuration>
96-
<executions>
97-
<execution>
98-
<goals>
99-
<goal>compile</goal>
100-
</goals>
101-
</execution>
102-
</executions>
103-
<dependencies>
104-
<dependency>
105-
<groupId>org.aspectj</groupId>
106-
<artifactId>aspectjtools</artifactId>
107-
<version>${aspectj.version}</version>
108-
</dependency>
109-
</dependencies>
110-
</plugin>
111-
</plugins>
74+
<plugins>
75+
<plugin>
76+
<groupId>org.apache.maven.plugins</groupId>
77+
<artifactId>maven-surefire-plugin</artifactId>
78+
<!-- JUnit 5 requires Surefire version 3.1.0 or higher -->
79+
<version>3.1.2</version>
80+
</plugin>
81+
<plugin>
82+
<groupId>dev.aspectj</groupId>
83+
<artifactId>aspectj-maven-plugin</artifactId>
84+
<version>1.13.1</version>
85+
<configuration>
86+
<source>${maven.compiler.source}</source>
87+
<target>${maven.compiler.target}</target>
88+
<complianceLevel>${maven.compiler.target}</complianceLevel>
89+
<aspectLibraries>
90+
<aspectLibrary>
91+
<groupId>software.amazon.lambda</groupId>
92+
<artifactId>powertools-validation</artifactId>
93+
</aspectLibrary>
94+
</aspectLibraries>
95+
</configuration>
96+
<executions>
97+
<execution>
98+
<goals>
99+
<goal>compile</goal>
100+
</goals>
101+
</execution>
102+
</executions>
103+
<dependencies>
104+
<dependency>
105+
<groupId>org.aspectj</groupId>
106+
<artifactId>aspectjtools</artifactId>
107+
<version>${aspectj.version}</version>
108+
</dependency>
109+
</dependencies>
110+
</plugin>
111+
<!-- Don't deploy the example -->
112+
<plugin>
113+
<groupId>org.apache.maven.plugins</groupId>
114+
<artifactId>maven-deploy-plugin</artifactId>
115+
<configuration>
116+
<skip>true</skip>
117+
</configuration>
118+
</plugin>
119+
</plugins>
112120
</build>
113121
<profiles>
114122
<!-- Use a profile to enforce AspectJ version 1.9.7 if we are Java 1.8 otherwise we'll get class

powertools-common/pom.xml

+8
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@
118118
<groupId>org.apache.maven.plugins</groupId>
119119
<artifactId>maven-checkstyle-plugin</artifactId>
120120
</plugin>
121+
<!-- Don't deploy tests -->
122+
<plugin>
123+
<groupId>org.apache.maven.plugins</groupId>
124+
<artifactId>maven-deploy-plugin</artifactId>
125+
<configuration>
126+
<skip>true</skip>
127+
</configuration>
128+
</plugin>
121129
</plugins>
122130
</build>
123131

0 commit comments

Comments
 (0)