Skip to content

Commit dbc5833

Browse files
committed
fix: Updated sample and archetype maven build files to avoid "The packaging for this project did not assign a file to the build artifact" message (#336)"
This reverts commit 253910f
1 parent 3ef1f63 commit dbc5833

File tree

10 files changed

+150
-27
lines changed
  • aws-serverless-jersey-archetype/src/main/resources/archetype-resources
  • aws-serverless-spark-archetype/src/main/resources/archetype-resources
  • aws-serverless-spring-archetype/src/main/resources/archetype-resources
  • aws-serverless-springboot2-archetype/src/main/resources/archetype-resources
  • aws-serverless-struts2-archetype/src/main/resources/archetype-resources
  • samples

10 files changed

+150
-27
lines changed

aws-serverless-jersey-archetype/src/main/resources/archetype-resources/pom.xml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,19 +107,27 @@
107107
<plugin>
108108
<groupId>org.apache.maven.plugins</groupId>
109109
<artifactId>maven-jar-plugin</artifactId>
110-
<version>3.1.1</version>
110+
<version>3.2.0</version>
111111
<executions>
112112
<execution>
113113
<id>default-jar</id>
114114
<phase>none</phase>
115115
</execution>
116116
</executions>
117117
</plugin>
118+
<plugin>
119+
<groupId>org.apache.maven.plugins</groupId>
120+
<artifactId>maven-install-plugin</artifactId>
121+
<version>3.0.0-M1</version>
122+
<configuration>
123+
<skip>true</skip>
124+
</configuration>
125+
</plugin>
118126
<!-- select and copy only runtime dependencies to a temporary lib folder -->
119127
<plugin>
120128
<groupId>org.apache.maven.plugins</groupId>
121129
<artifactId>maven-dependency-plugin</artifactId>
122-
<version>3.1.1</version>
130+
<version>3.2.0</version>
123131
<executions>
124132
<execution>
125133
<id>copy-dependencies</id>
@@ -137,7 +145,7 @@
137145
<plugin>
138146
<groupId>org.apache.maven.plugins</groupId>
139147
<artifactId>maven-assembly-plugin</artifactId>
140-
<version>3.1.0</version>
148+
<version>3.3.0</version>
141149
<executions>
142150
<execution>
143151
<id>zip-assembly</id>

aws-serverless-spark-archetype/src/main/resources/archetype-resources/pom.xml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,27 @@
9797
<plugin>
9898
<groupId>org.apache.maven.plugins</groupId>
9999
<artifactId>maven-jar-plugin</artifactId>
100-
<version>3.1.1</version>
100+
<version>3.2.0</version>
101101
<executions>
102102
<execution>
103103
<id>default-jar</id>
104104
<phase>none</phase>
105105
</execution>
106106
</executions>
107107
</plugin>
108+
<plugin>
109+
<groupId>org.apache.maven.plugins</groupId>
110+
<artifactId>maven-install-plugin</artifactId>
111+
<version>3.0.0-M1</version>
112+
<configuration>
113+
<skip>true</skip>
114+
</configuration>
115+
</plugin>
108116
<!-- select and copy only runtime dependencies to a temporary lib folder -->
109117
<plugin>
110118
<groupId>org.apache.maven.plugins</groupId>
111119
<artifactId>maven-dependency-plugin</artifactId>
112-
<version>3.1.1</version>
120+
<version>3.2.0</version>
113121
<executions>
114122
<execution>
115123
<id>copy-dependencies</id>
@@ -127,7 +135,7 @@
127135
<plugin>
128136
<groupId>org.apache.maven.plugins</groupId>
129137
<artifactId>maven-assembly-plugin</artifactId>
130-
<version>3.1.0</version>
138+
<version>3.3.0</version>
131139
<executions>
132140
<execution>
133141
<id>zip-assembly</id>

aws-serverless-spring-archetype/src/main/resources/archetype-resources/pom.xml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,19 +133,27 @@
133133
<plugin>
134134
<groupId>org.apache.maven.plugins</groupId>
135135
<artifactId>maven-jar-plugin</artifactId>
136-
<version>3.1.1</version>
136+
<version>3.2.0</version>
137137
<executions>
138138
<execution>
139139
<id>default-jar</id>
140140
<phase>none</phase>
141141
</execution>
142142
</executions>
143143
</plugin>
144+
<plugin>
145+
<groupId>org.apache.maven.plugins</groupId>
146+
<artifactId>maven-install-plugin</artifactId>
147+
<version>3.0.0-M1</version>
148+
<configuration>
149+
<skip>true</skip>
150+
</configuration>
151+
</plugin>
144152
<!-- select and copy only runtime dependencies to a temporary lib folder -->
145153
<plugin>
146154
<groupId>org.apache.maven.plugins</groupId>
147155
<artifactId>maven-dependency-plugin</artifactId>
148-
<version>3.1.1</version>
156+
<version>3.2.0</version>
149157
<executions>
150158
<execution>
151159
<id>copy-dependencies</id>
@@ -163,7 +171,7 @@
163171
<plugin>
164172
<groupId>org.apache.maven.plugins</groupId>
165173
<artifactId>maven-assembly-plugin</artifactId>
166-
<version>3.1.0</version>
174+
<version>3.3.0</version>
167175
<executions>
168176
<execution>
169177
<id>zip-assembly</id>

aws-serverless-springboot2-archetype/src/main/resources/archetype-resources/pom.xml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,27 @@
9292
<plugin>
9393
<groupId>org.apache.maven.plugins</groupId>
9494
<artifactId>maven-jar-plugin</artifactId>
95-
<version>3.1.1</version>
95+
<version>3.2.0</version>
9696
<executions>
9797
<execution>
9898
<id>default-jar</id>
9999
<phase>none</phase>
100100
</execution>
101101
</executions>
102102
</plugin>
103+
<plugin>
104+
<groupId>org.apache.maven.plugins</groupId>
105+
<artifactId>maven-install-plugin</artifactId>
106+
<version>3.0.0-M1</version>
107+
<configuration>
108+
<skip>true</skip>
109+
</configuration>
110+
</plugin>
103111
<!-- select and copy only runtime dependencies to a temporary lib folder -->
104112
<plugin>
105113
<groupId>org.apache.maven.plugins</groupId>
106114
<artifactId>maven-dependency-plugin</artifactId>
107-
<version>3.1.1</version>
115+
<version>3.2.0</version>
108116
<executions>
109117
<execution>
110118
<id>copy-dependencies</id>
@@ -122,7 +130,7 @@
122130
<plugin>
123131
<groupId>org.apache.maven.plugins</groupId>
124132
<artifactId>maven-assembly-plugin</artifactId>
125-
<version>3.1.0</version>
133+
<version>3.3.0</version>
126134
<executions>
127135
<execution>
128136
<id>zip-assembly</id>

aws-serverless-struts2-archetype/src/main/resources/archetype-resources/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
<plugin>
127127
<groupId>org.apache.maven.plugins</groupId>
128128
<artifactId>maven-assembly-plugin</artifactId>
129-
<version>3.1.0</version>
129+
<version>3.3.0</version>
130130
<configuration>
131131
<descriptors>
132132
<descriptor>src/main/assembly/dist.xml</descriptor>

samples/jersey/pet-store/pom.xml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<dependency>
3535
<groupId>com.amazonaws.serverless</groupId>
3636
<artifactId>aws-serverless-java-container-jersey</artifactId>
37-
<version>[1.0,)</version>
37+
<version>[1.6,)</version>
3838
</dependency>
3939

4040
<dependency>
@@ -121,11 +121,31 @@
121121
</activation>
122122
<build>
123123
<plugins>
124+
<!-- don't build a jar, we'll use the classes dir -->
125+
<plugin>
126+
<groupId>org.apache.maven.plugins</groupId>
127+
<artifactId>maven-jar-plugin</artifactId>
128+
<version>3.2.0</version>
129+
<executions>
130+
<execution>
131+
<id>default-jar</id>
132+
<phase>none</phase>
133+
</execution>
134+
</executions>
135+
</plugin>
136+
<plugin>
137+
<groupId>org.apache.maven.plugins</groupId>
138+
<artifactId>maven-install-plugin</artifactId>
139+
<version>3.0.0-M1</version>
140+
<configuration>
141+
<skip>true</skip>
142+
</configuration>
143+
</plugin>
124144
<!-- select and copy only runtime dependencies to a temporary lib folder -->
125145
<plugin>
126146
<groupId>org.apache.maven.plugins</groupId>
127147
<artifactId>maven-dependency-plugin</artifactId>
128-
<version>3.1.1</version>
148+
<version>3.2.0</version>
129149
<executions>
130150
<execution>
131151
<id>copy-dependencies</id>
@@ -143,7 +163,7 @@
143163
<plugin>
144164
<groupId>org.apache.maven.plugins</groupId>
145165
<artifactId>maven-assembly-plugin</artifactId>
146-
<version>3.1.0</version>
166+
<version>3.3.0</version>
147167
<executions>
148168
<execution>
149169
<id>zip-assembly</id>

samples/spark/pet-store/pom.xml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<dependency>
3535
<groupId>com.amazonaws.serverless</groupId>
3636
<artifactId>aws-serverless-java-container-spark</artifactId>
37-
<version>[0.2,)</version>
37+
<version>[1.6,)</version>
3838
</dependency>
3939

4040
<!-- https://mvnrepository.com/artifact/com.sparkjava/spark-core -->
@@ -105,11 +105,31 @@
105105
</activation>
106106
<build>
107107
<plugins>
108+
<!-- don't build a jar, we'll use the classes dir -->
109+
<plugin>
110+
<groupId>org.apache.maven.plugins</groupId>
111+
<artifactId>maven-jar-plugin</artifactId>
112+
<version>3.2.0</version>
113+
<executions>
114+
<execution>
115+
<id>default-jar</id>
116+
<phase>none</phase>
117+
</execution>
118+
</executions>
119+
</plugin>
120+
<plugin>
121+
<groupId>org.apache.maven.plugins</groupId>
122+
<artifactId>maven-install-plugin</artifactId>
123+
<version>3.0.0-M1</version>
124+
<configuration>
125+
<skip>true</skip>
126+
</configuration>
127+
</plugin>
108128
<!-- select and copy only runtime dependencies to a temporary lib folder -->
109129
<plugin>
110130
<groupId>org.apache.maven.plugins</groupId>
111131
<artifactId>maven-dependency-plugin</artifactId>
112-
<version>3.1.1</version>
132+
<version>3.2.0</version>
113133
<executions>
114134
<execution>
115135
<id>copy-dependencies</id>
@@ -127,7 +147,7 @@
127147
<plugin>
128148
<groupId>org.apache.maven.plugins</groupId>
129149
<artifactId>maven-assembly-plugin</artifactId>
130-
<version>3.1.0</version>
150+
<version>3.3.0</version>
131151
<executions>
132152
<execution>
133153
<id>zip-assembly</id>

samples/spring/pet-store/pom.xml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<dependency>
3636
<groupId>com.amazonaws.serverless</groupId>
3737
<artifactId>aws-serverless-java-container-spring</artifactId>
38-
<version>[0.1,)</version>
38+
<version>[1.6,)</version>
3939
</dependency>
4040

4141
<dependency>
@@ -144,11 +144,31 @@
144144
</activation>
145145
<build>
146146
<plugins>
147+
<!-- don't build a jar, we'll use the classes dir -->
148+
<plugin>
149+
<groupId>org.apache.maven.plugins</groupId>
150+
<artifactId>maven-jar-plugin</artifactId>
151+
<version>3.2.0</version>
152+
<executions>
153+
<execution>
154+
<id>default-jar</id>
155+
<phase>none</phase>
156+
</execution>
157+
</executions>
158+
</plugin>
159+
<plugin>
160+
<groupId>org.apache.maven.plugins</groupId>
161+
<artifactId>maven-install-plugin</artifactId>
162+
<version>3.0.0-M1</version>
163+
<configuration>
164+
<skip>true</skip>
165+
</configuration>
166+
</plugin>
147167
<!-- select and copy only runtime dependencies to a temporary lib folder -->
148168
<plugin>
149169
<groupId>org.apache.maven.plugins</groupId>
150170
<artifactId>maven-dependency-plugin</artifactId>
151-
<version>3.1.1</version>
171+
<version>3.2.0</version>
152172
<executions>
153173
<execution>
154174
<id>copy-dependencies</id>
@@ -166,7 +186,7 @@
166186
<plugin>
167187
<groupId>org.apache.maven.plugins</groupId>
168188
<artifactId>maven-assembly-plugin</artifactId>
169-
<version>3.1.0</version>
189+
<version>3.3.0</version>
170190
<executions>
171191
<execution>
172192
<id>zip-assembly</id>

samples/springboot2/pet-store/pom.xml

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,24 @@
66
<groupId>com.amazonaws.serverless.sample</groupId>
77
<artifactId>serverless-springboot2-example</artifactId>
88
<version>1.0-SNAPSHOT</version>
9+
<name>Spring Boot example for the aws-serverless-java-container library</name>
10+
<description>Simple pet store written with the Spring framework and Spring Boot</description>
11+
<url>https://aws.amazon.com/lambda/</url>
912

1013
<parent>
1114
<groupId>org.springframework.boot</groupId>
1215
<artifactId>spring-boot-starter-parent</artifactId>
1316
<version>2.6.2</version>
1417
</parent>
1518

19+
<licenses>
20+
<license>
21+
<name>The Apache Software License, Version 2.0</name>
22+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
23+
<distribution>repo</distribution>
24+
</license>
25+
</licenses>
26+
1627
<properties>
1728
<maven.compiler.source>1.8</maven.compiler.source>
1829
<maven.compiler.target>1.8</maven.compiler.target>
@@ -33,7 +44,7 @@
3344
<dependency>
3445
<groupId>com.amazonaws.serverless</groupId>
3546
<artifactId>aws-serverless-java-container-springboot2</artifactId>
36-
<version>[1.4,)</version>
47+
<version>[1.6,)</version>
3748
</dependency>
3849

3950
<!-- https://mvnrepository.com/artifact/io.symphonia/lambda-logging -->
@@ -82,11 +93,31 @@
8293
</activation>
8394
<build>
8495
<plugins>
96+
<!-- don't build a jar, we'll use the classes dir -->
97+
<plugin>
98+
<groupId>org.apache.maven.plugins</groupId>
99+
<artifactId>maven-jar-plugin</artifactId>
100+
<version>3.2.0</version>
101+
<executions>
102+
<execution>
103+
<id>default-jar</id>
104+
<phase>none</phase>
105+
</execution>
106+
</executions>
107+
</plugin>
108+
<plugin>
109+
<groupId>org.apache.maven.plugins</groupId>
110+
<artifactId>maven-install-plugin</artifactId>
111+
<version>3.0.0-M1</version>
112+
<configuration>
113+
<skip>true</skip>
114+
</configuration>
115+
</plugin>
85116
<!-- select and copy only runtime dependencies to a temporary lib folder -->
86117
<plugin>
87118
<groupId>org.apache.maven.plugins</groupId>
88119
<artifactId>maven-dependency-plugin</artifactId>
89-
<version>3.1.1</version>
120+
<version>3.2.0</version>
90121
<executions>
91122
<execution>
92123
<id>copy-dependencies</id>
@@ -104,7 +135,7 @@
104135
<plugin>
105136
<groupId>org.apache.maven.plugins</groupId>
106137
<artifactId>maven-assembly-plugin</artifactId>
107-
<version>3.1.0</version>
138+
<version>3.3.0</version>
108139
<executions>
109140
<execution>
110141
<id>zip-assembly</id>

0 commit comments

Comments
 (0)