Skip to content

Commit

Permalink
Merge ed2c94c into f3f3991
Browse files Browse the repository at this point in the history
  • Loading branch information
Clayton7510 committed Jul 31, 2019
2 parents f3f3991 + ed2c94c commit 6ec87d3
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 17 deletions.
23 changes: 15 additions & 8 deletions README.md
@@ -1,9 +1,15 @@
[tf-maven-plugin]:https://search.maven.org/artifact/com.deliveredtechnologies/tf-maven-plugin/0.4/maven-plugin
[tf-cmd-api]:https://search.maven.org/artifact/com.deliveredtechnologies/tf-cmd-api/0.4/jar
[tf-maven-plugin]:https://search.maven.org/artifact/com.deliveredtechnologies/tf-maven-plugin/0.5/maven-plugin
[tf-cmd-api]:https://search.maven.org/artifact/com.deliveredtechnologies/tf-cmd-api/0.5/jar
[tf-s3-archetype]:https://search.maven.org/artifact/com.deliveredtechnologies/tf-s3-archetype/0.5/jar
[tf-maven-plugin-snapshot]:https://oss.sonatype.org/content/repositories/snapshots/com/deliveredtechnologies/tf-maven-plugin/
[tf-cmd-api-snapshot]:https://oss.sonatype.org/content/repositories/snapshots/com/deliveredtechnologies/tf-cmd-api/
[maven-badge]:https://img.shields.io/badge/maven%20central-0.4-green.svg
[tf-s3-archetype-snapshot]:https://oss.sonatype.org/content/repositories/snapshots/com/deliveredtechnologies/tf-s3-archetype/
[maven-badge]:https://img.shields.io/badge/maven%20central-0.5-green.svg
[maven-snapshot-badge]:https://img.shields.io/badge/SNAPSHOT-0.5-green.svg
[tf-maven-plugin-synk-badge]:https://snyk.io/test/github/deliveredtechnologies/terraform-maven/badge.svg?targetFile=tf-build-tools%2Ftf-maven-plugin%2Fpom.xml
[tf-maven-plugin-synk]:https://snyk.io/test/github/deliveredtechnologies/terraform-maven?targetFile=tf-build-tools%2Ftf-maven-plugin%2Fpom.xml
[tf-cmd-api-synk-badge]:https://snyk.io/test/github/deliveredtechnologies/terraform-maven/badge.svg?targetFile=tf-build-tools%2Ftf-cmd-api%2Fpom.xml
[tf-cmd-api-synk]:https://snyk.io/test/github/deliveredtechnologies/terraform-maven?targetFile=tf-build-tools%2Ftf-cmd-api%2Fpom.xml

![terraform-maven](.docs/MavenTerraform.png)

Expand Down Expand Up @@ -46,10 +52,11 @@ Not finding what you are looking for? [Try the Wiki!](https://github.com/deliver

### Artifacts in This Repository

| Artifact Name | Version | Latest Snapshot | Security Scan Results | Description |
|---------------|---------|-----------------|-----------------------|-------------|
| tf-maven-plugin | [![Maven Central][maven-badge]][tf-maven-plugin] | [![Maven Snapshot][maven-snapshot-badge]][tf-maven-plugin-snapshot] | [![tf-maven-plugin vulnerabilities](https://snyk.io/test/github/deliveredtechnologies/terraform-maven/badge.svg?targetFile=tf-build-tools%2Ftf-maven-plugin%2Fpom.xml)](https://snyk.io/test/github/deliveredtechnologies/terraform-maven?targetFile=tf-build-tools%2Ftf-maven-plugin%2Fpom.xml) | Terraform Maven Plugin |
| tf-cmd-api | [![Maven Central][maven-badge]][tf-cmd-api] | [![Maven Snapshot][maven-snapshot-badge]][tf-cmd-api-snapshot] | [![tf-cmd-api vulnerabilities](https://snyk.io/test/github/deliveredtechnologies/terraform-maven/badge.svg?targetFile=tf-build-tools%2Ftf-cmd-api%2Fpom.xml)](https://snyk.io/test/github/deliveredtechnologies/terraform-maven?targetFile=tf-build-tools%2Ftf-cmd-api%2Fpom.xml) | Terraform Command API |
| Artifact Name | Version | Latest Snapshot | Security Scan Results | Description |
|------------------|---------|-----------------|-----------------------|-------------|
| tf-maven-plugin | [![Maven Central][maven-badge]][tf-maven-plugin] | [![Maven Snapshot][maven-snapshot-badge]][tf-maven-plugin-snapshot] | [![tf-maven-plugin vulnerabilities][tf-maven-plugin-synk-badge]][tf-maven-plugin-synk] | Terraform Maven Plugin |
| tf-cmd-api | [![Maven Central][maven-badge]][tf-cmd-api] | [![Maven Snapshot][maven-snapshot-badge]][tf-cmd-api-snapshot] | [![tf-cmd-api vulnerabilities][tf-cmd-api-synk-badge]][tf-cmd-api-synk] | Terraform Command API |
| tf-s3-archetype | [![Maven Central][maven-badge]][tf-s3-archetype] | [![Maven Snapshot][maven-snapshot-badge]][tf-s3-archetype-snapshot] | N/A | Maven Terraform S3 Archetype |

### Repository Directory Structure
* examples - Terraform Maven example projects
Expand All @@ -58,6 +65,7 @@ Not finding what you are looking for? [Try the Wiki!](https://github.com/deliver
* tf-build-tools - The parent project of the tf-maven-plugin and tf-cmd-api projects
* tf-maven-plugin - The Terraform Maven Plugin project
* tf-cmd-api - A Java API for Terraform project
* tf-s3-archetype - An Archetype for a S3 Terraform Project

### Benefits of the Terraform Maven Plugin
* Dependency Management
Expand Down Expand Up @@ -373,7 +381,6 @@ mvn -DarchetypeGroupId=com.deliveredtechnologies -DarchetypeArtifactId="tf-s3-ar

After running the above command mvn interactive console prompts for the required arguments (ex: groupId and artifactId) and creates the project accordingly.


### How to Use Terraform Maven Projects

If you used the above configuration, the following Terraform Maven goals are mapped to the project's Maven phases.
Expand Down
6 changes: 3 additions & 3 deletions examples/tf-s3-consumer/pom.xml
Expand Up @@ -4,11 +4,11 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<properties>
<tf-maven-version>0.4</tf-maven-version>
<tf-maven-version>0.5</tf-maven-version>
</properties>
<artifactId>tf-s3-consumer</artifactId>
<groupId>com.deliveredtechnologies.example.maven.tf</groupId>
<version>1.0-SNAPSHOT</version>
<version>1.0</version>
<repositories>
<repository>
<id>local</id>
Expand All @@ -31,7 +31,7 @@
<dependency>
<groupId>com.deliveredtechnologies.example.maven.tf</groupId>
<artifactId>tf-s3</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0</version>
<type>zip</type>
</dependency>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions examples/tf-s3/pom.xml
Expand Up @@ -4,11 +4,11 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<properties>
<tf-maven-version>0.4</tf-maven-version>
<tf-maven-version>0.5</tf-maven-version>
</properties>
<artifactId>tf-s3</artifactId>
<groupId>com.deliveredtechnologies.example.maven.tf</groupId>
<version>1.0-SNAPSHOT</version>
<version>1.0</version>
<pluginRepositories>
<pluginRepository>
<id>sonatype</id>
Expand Down
13 changes: 12 additions & 1 deletion tf-build-tools/pom.xml
Expand Up @@ -6,7 +6,7 @@
<groupId>com.deliveredtechnologies</groupId>
<artifactId>tf-build-tools</artifactId>
<packaging>pom</packaging>
<version>0.5-SNAPSHOT</version>
<version>0.5</version>
<description>Terraform Build Tools: The parent POM project for Java and Terraform Tools</description>
<modules>
<module>tf-cmd-api</module>
Expand Down Expand Up @@ -42,6 +42,7 @@
<name>Clayton Long</name>
<url>https://github.com/Clayton7510</url>
<roles>
<role>architect</role>
<role>developer</role>
</roles>
<timezone>America/New_York</timezone>
Expand All @@ -56,6 +57,16 @@
<timezone>America/New_York</timezone>
</developer>
</developers>
<contributors>
<contributor>
<name>Sai Chaitanya</name>
<url>https://github.com/s1234a6i</url>
<roles>
<role>developer</role>
</roles>
<timezone>America/New_York</timezone>
</contributor>
</contributors>
<profiles>
<profile>
<id>snapshot</id>
Expand Down
2 changes: 1 addition & 1 deletion tf-build-tools/tf-cmd-api/pom.xml
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>tf-build-tools</artifactId>
<groupId>com.deliveredtechnologies</groupId>
<version>0.5-SNAPSHOT</version>
<version>0.5</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>tf-cmd-api</artifactId>
Expand Down
13 changes: 12 additions & 1 deletion tf-build-tools/tf-maven-plugin/pom.xml
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.deliveredtechnologies</groupId>
<artifactId>tf-build-tools</artifactId>
<version>0.5-SNAPSHOT</version>
<version>0.5</version>
</parent>
<artifactId>tf-maven-plugin</artifactId>
<packaging>maven-plugin</packaging>
Expand Down Expand Up @@ -112,6 +112,17 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.1</version>
<exclusions>
<exclusion> <!-- declare the exclusion here -->
<groupId>org.apache.struts</groupId>
<artifactId>struts-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-core</artifactId>
<version>1.9</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
2 changes: 1 addition & 1 deletion tf-build-tools/tf-s3-archetype/pom.xml
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.deliveredtechnologies</groupId>
<artifactId>tf-build-tools</artifactId>
<version>0.5-SNAPSHOT</version>
<version>0.5</version>
</parent>
<artifactId>tf-s3-archetype</artifactId>
<packaging>pom</packaging>
Expand Down

0 comments on commit 6ec87d3

Please sign in to comment.