From 73920be32c498d2509caa84554da226361f16874 Mon Sep 17 00:00:00 2001 From: buildmaster Date: Tue, 7 May 2019 08:54:25 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- aws-intro.html | 34 ++++++++++ aws-readme.html | 105 +---------------------------- aws.html | 104 ++--------------------------- azure-readme.html | 125 +---------------------------------- azure.html | 132 ++----------------------------------- openwhisk-readme.html | 114 +------------------------------- openwhisk.html | 116 +------------------------------- spring-cloud-function.html | 43 +++++++++++- 8 files changed, 93 insertions(+), 680 deletions(-) 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