diff --git a/aws-intro.html b/aws-intro.html index 91086e7d7..25b01cea6 100644 --- a/aws-intro.html +++ b/aws-intro.html @@ -123,6 +123,40 @@ manifest, using the Start-Class attribute (which will be added for tooling if you use the starter parent). If there is no Start-Class in your manifest you can use an environment variable or system property MAIN_CLASS when you deploy the function to AWS.

+
+

If you are not using the functional bean definitions but relying on Spring Boot’s auto-configuration, +then additional transformers must be configured as part of the maven-shade-plugin execution.

+
+
+
+
<plugin>
+	<groupId>org.apache.maven.plugins</groupId>
+	<artifactId>maven-shade-plugin</artifactId>
+	<dependencies>
+		<dependency>
+			<groupId>org.springframework.boot</groupId>
+			<artifactId>spring-boot-maven-plugin</artifactId>
+		</dependency>
+	</dependencies>
+	<configuration>
+		<createDependencyReducedPom>false</createDependencyReducedPom>
+		<shadedArtifactAttached>true</shadedArtifactAttached>
+		<shadedClassifierName>aws</shadedClassifierName>
+		<transformers>
+			<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
+				<resource>META-INF/spring.handlers</resource>
+			</transformer>
+			<transformer implementation="org.springframework.boot.maven.PropertiesMergingResourceTransformer">
+				<resource>META-INF/spring.factories</resource>
+			</transformer>
+			<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
+				<resource>META-INF/spring.schemas</resource>
+			</transformer>
+		</transformers>
+	</configuration>
+</plugin>
+
+
diff --git a/aws-readme.html b/aws-readme.html index 967d27ce7..ecce4c856 100644 --- a/aws-readme.html +++ b/aws-readme.html @@ -5,7 +5,7 @@ -Notes on JAR Layout +Untitled