-
Notifications
You must be signed in to change notification settings - Fork 840
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1197 from aws/staging/7181d4ce-5e4f-430c-a312-1cd…
…c5334017e Pull request: release <- staging/7181d4ce-5e4f-430c-a312-1cdc5334017e
- Loading branch information
Showing
402 changed files
with
3,382 additions
and
401 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"version": "2.16.1", | ||
"date": "2021-02-17", | ||
"entries": [ | ||
{ | ||
"type": "feature", | ||
"category": "AWS SDK for Java v2", | ||
"contributor": "", | ||
"description": "Add GraalVM Native Image configurations for SDK classes" | ||
}, | ||
{ | ||
"type": "feature", | ||
"category": "AWS SDK for Java v2", | ||
"contributor": "", | ||
"description": "Created a new archetype, `archetype-app-quickstart`, which allows you to create a simple application with SDK dependencies" | ||
}, | ||
{ | ||
"type": "feature", | ||
"category": "Amazon Elastic Compute Cloud", | ||
"contributor": "", | ||
"description": "This release includes a new filter for describe-vpc-endpoint-services." | ||
}, | ||
{ | ||
"type": "feature", | ||
"category": "AWS Config", | ||
"contributor": "", | ||
"description": "Added INSUFFICIENT_DATA in ConformancePackComplianceType." | ||
}, | ||
{ | ||
"type": "feature", | ||
"category": "Amazon Lookout for Vision", | ||
"contributor": "", | ||
"description": "This release for Amazon Lookout for Vision includes documentation updates and a correction to the Status field returned in the response from StartModel and StopModel." | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Maven Archetype for client applications using the AWS SDK for Java 2.x | ||
|
||
## Description | ||
This is an Apache Maven Archetype to create a client application with | ||
a dependency of [AWS Java SDK 2.x][aws-java-sdk-v2]. | ||
|
||
### Features | ||
|
||
The generated application has the following features: | ||
|
||
- Uses [Bill of Materials](BOM) to manage SDK dependencies | ||
- Contains the code to create the SDK client | ||
- Out-of-box support of GraalVM Native Image when `nativeImage` is enabled | ||
|
||
## Usage | ||
|
||
You can use `mvn archetype:generate` to generate a project using this archetype. See [maven archetype usage guidance][maven-archetype-usage] for more information. | ||
|
||
- Interactive mode | ||
|
||
``` | ||
mvn archetype:generate \ | ||
-DarchetypeGroupId=software.amazon.awssdk \ | ||
-DarchetypeArtifactId=archetype-app-quickstart \ | ||
-DarchetypeVersion=2.x | ||
``` | ||
|
||
- Batch mode | ||
|
||
``` | ||
mvn archetype:generate \ | ||
-DarchetypeGroupId=software.amazon.awssdk \ | ||
-DarchetypeArtifactId=archetype-app-quickstart \ | ||
-DarchetypeVersion=2.x \ | ||
-DgroupId=com.test \ | ||
-DnativeImage=true \ | ||
-DhttpClient=apache-client \ | ||
-DartifactId=sample-project \ | ||
-Dservice=s3 \ | ||
-DinteractiveMode=false | ||
``` | ||
|
||
### Parameters | ||
Parameter Name | Default Value | Description | ||
---|---|--- | ||
`service` (required) | n/a | Specifies the service client to be used in the application, eg: s3, dynamodb. Only one service should be provided. You can find available services [here][java-sdk-v2-services]. | ||
`groupId`(required) | n/a | Specifies the group ID of the project | ||
`artifactId`(required) | n/a | Specifies the artifact ID of the project | ||
`nativeImage`(required) | n/a | Specifies whether GraalVM Native Image configuration should be included | ||
`httpClient`(required) | n/a | Specifies the http client to be used by the SDK client. Available options are `url-connection-client` (sync), `apache-client` (sync), `netty-nio-client` (async). See [http clients][sdk-http-clients] | ||
`javaSdkVersion` | Same version as the archetype version | Specifies the version of the AWS Java SDK 2.x to be used | ||
`version` | 1.0-SNAPSHOT | Specifies the version of the project | ||
`package` | ${groupId} | Specifies the package name for the classes | ||
|
||
|
||
[aws-java-sdk-v2]: https://github.com/aws/aws-sdk-java-v2 | ||
[java-sdk-v2-services]: https://github.com/aws/aws-sdk-java-v2/tree/master/services | ||
[sdk-http-clients]: https://github.com/aws/aws-sdk-java-v2/tree/master/http-clients | ||
[maven-archetype-usage]: https://maven.apache.org/archetype/maven-archetype-plugin/usage.html | ||
[graalvm]: https://www.graalvm.org/docs/getting-started/#native-images |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
~ | ||
~ Licensed under the Apache License, Version 2.0 (the "License"). | ||
~ You may not use this file except in compliance with the License. | ||
~ A copy of the License is located at | ||
~ | ||
~ http://aws.amazon.com/apache2.0 | ||
~ | ||
~ or in the "license" file accompanying this file. This file is distributed | ||
~ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
~ express or implied. See the License for the specific language governing | ||
~ permissions and limitations under the License. | ||
--> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<parent> | ||
<artifactId>archetypes</artifactId> | ||
<groupId>software.amazon.awssdk</groupId> | ||
<version>2.16.1</version> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<artifactId>archetype-app-quickstart</artifactId> | ||
<packaging>maven-archetype</packaging> | ||
<name>AWS Java SDK :: Archetype App</name> | ||
<description> | ||
The AWS SDK for Java - Maven archetype for a sample application using AWS Java SDK 2.x | ||
</description> | ||
|
||
<properties> | ||
<maven.archetype.version>3.2.0</maven.archetype.version> | ||
<maven.resource.plugin.version>3.2.0</maven.resource.plugin.version> | ||
<exec-maven-plugin.version>1.6.0</exec-maven-plugin.version> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>software.amazon.awssdk</groupId> | ||
<artifactId>archetype-tools</artifactId> | ||
<version>${awsjavasdk.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
<build> | ||
<!-- Filtering the resource properties to get ${project.version} from archetype metadata. | ||
See https://stackoverflow.com/a/22300149 --> | ||
<resources> | ||
<resource> | ||
<directory>src/main/resources</directory> | ||
<filtering>true</filtering> | ||
<includes> | ||
<include>META-INF/maven/archetype-metadata.xml</include> | ||
</includes> | ||
</resource> | ||
<resource> | ||
<directory>src/main/resources</directory> | ||
<filtering>false</filtering> | ||
<excludes> | ||
<exclude>META-INF/maven/archetype-metadata.xml</exclude> | ||
</excludes> | ||
</resource> | ||
</resources> | ||
<extensions> | ||
<extension> | ||
<groupId>org.apache.maven.archetype</groupId> | ||
<artifactId>archetype-packaging</artifactId> | ||
<version>${maven.archetype.version}</version> | ||
</extension> | ||
</extensions> | ||
|
||
<plugins> | ||
<plugin> | ||
<artifactId>maven-archetype-plugin</artifactId> | ||
<version>${maven.archetype.version}</version> | ||
<configuration> | ||
<noLog>true</noLog> | ||
<ignoreEOLStyle>true</ignoreEOLStyle> | ||
<skip>${skip.unit.tests}</skip> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>integration-test</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>integration-test</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
<!-- Copy the global.vm and serviceMapping.vm from archetype-tools --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-dependency-plugin</artifactId> | ||
<version>${maven-dependency-plugin.version}</version> | ||
<executions> | ||
<execution> | ||
<id>unpack-archetype-tools</id> | ||
<phase>process-classes</phase> | ||
<goals> | ||
<goal>unpack</goal> | ||
</goals> | ||
<configuration> | ||
<artifactItems> | ||
<artifactItem> | ||
<groupId>software.amazon.awssdk</groupId> | ||
<artifactId>archetype-tools</artifactId> | ||
<version>${project.version}</version> | ||
<outputDirectory>${basedir}/target/classes/archetype-resources</outputDirectory> | ||
<includes>**/*.vm</includes> | ||
</artifactItem> | ||
</artifactItems> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
<!-- workaround to copy the global.vm and serviceMapping.vm to the sub folders | ||
because global.vm is not so global any more | ||
see https://github.com/aws/aws-sdk-java-v2/issues/1981 --> | ||
<plugin> | ||
<artifactId>maven-resources-plugin</artifactId> | ||
<version>${maven.resource.plugin.version}</version> | ||
<executions> | ||
<execution> | ||
<id>copy-resources-to-sub-folder</id> | ||
<phase>process-classes</phase> | ||
<goals> | ||
<goal>copy-resources</goal> | ||
</goals> | ||
<configuration> | ||
<outputDirectory>${basedir}/target/classes/archetype-resources/src/main/java</outputDirectory> | ||
<encoding>UTF-8</encoding> | ||
<resources> | ||
<resource> | ||
<directory>${basedir}/target/classes/archetype-resources</directory> | ||
<includes> | ||
<include>global.vm</include> | ||
<include>serviceMapping.vm</include> | ||
</includes> | ||
</resource> | ||
</resources> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<id>copy-resources-to-sub-folder-2</id> | ||
<phase>process-classes</phase> | ||
<goals> | ||
<goal>copy-resources</goal> | ||
</goals> | ||
<configuration> | ||
<outputDirectory>${basedir}/target/classes</outputDirectory> | ||
<encoding>UTF-8</encoding> | ||
<resources> | ||
<resource> | ||
<directory>${basedir}/target/classes/archetype-resources</directory> | ||
<includes> | ||
<include>global.vm</include> | ||
<include>serviceMapping.vm</include> | ||
</includes> | ||
</resource> | ||
</resources> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
46 changes: 46 additions & 0 deletions
46
archetypes/archetype-app-quickstart/src/main/resources/META-INF/maven/archetype-metadata.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<archetype-descriptor xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd" name="archetype-app-quickstart" | ||
xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<fileSets> | ||
<fileSet filtered="true" packaged="true" encoding="UTF-8"> | ||
<directory>src/main/java</directory> | ||
<includes> | ||
<include>**/*.java</include> | ||
</includes> | ||
</fileSet> | ||
<fileSet filtered="true" packaged="true" encoding="UTF-8"> | ||
<directory>src/test/java</directory> | ||
<includes> | ||
<include>**/*.java</include> | ||
</includes> | ||
</fileSet> | ||
<fileSet filtered="true" packaged="false" encoding="UTF-8"> | ||
<directory>src/main/resources</directory> | ||
<includes> | ||
<include>simplelogger.properties</include> | ||
</includes> | ||
</fileSet> | ||
<fileSet filtered="true" encoding="UTF-8"> | ||
<directory/> | ||
<includes> | ||
<include>.gitignore</include> | ||
<include>README.md</include> | ||
</includes> | ||
</fileSet> | ||
</fileSets> | ||
<requiredProperties> | ||
<requiredProperty key="javaSdkVersion"> | ||
<defaultValue>${project.version}</defaultValue> | ||
<validationRegex>\d+\.\d+.\d+</validationRegex> | ||
</requiredProperty> | ||
<requiredProperty key="service"> | ||
</requiredProperty> | ||
<requiredProperty key="httpClient"> | ||
<validationRegex>(url-connection-client|apache-client|netty-nio-client)</validationRegex> | ||
</requiredProperty> | ||
<requiredProperty key="nativeImage"> | ||
<validationRegex>(true|false)</validationRegex> | ||
</requiredProperty> | ||
</requiredProperties> | ||
</archetype-descriptor> |
Oops, something went wrong.