Skip to content

Commit

Permalink
Copying the global.vm to archetype resources folder because it's no l…
Browse files Browse the repository at this point in the history
…onger global
  • Loading branch information
zoewangg committed Oct 13, 2020
1 parent 8ccf8ac commit 952e9f0
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
@@ -0,0 +1,5 @@
{
"category": "AWS Lambda Maven Archetype",
"type": "bugfix",
"description": "Fixed an issue where archetype generation failed with latest maven-archetype-plugin. See [#1981](https://github.com/aws/aws-sdk-java-v2/issues/1981)"
}
53 changes: 52 additions & 1 deletion archetypes/archetype-lambda/pom.xml
Expand Up @@ -31,7 +31,8 @@
</description>

<properties>
<maven.archetype.version>3.1.2</maven.archetype.version>
<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>

Expand Down Expand Up @@ -118,6 +119,56 @@
<skip>true</skip>
</configuration>
</plugin>

<!-- workaround to copy the global.vm and serviceMapping.vm to the sub folders
because gloabl.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</id>
<phase>process-classes</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/classes/archetype-resources</outputDirectory>
<encoding>UTF-8</encoding>
<resources>
<resource>
<directory>${basedir}/target/classes/</directory>
<includes>
<include>global.vm</include>
<include>serviceMapping.vm</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
<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/</directory>
<includes>
<include>global.vm</include>
<include>serviceMapping.vm</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 952e9f0

Please sign in to comment.