pl.jojczykp.maven.plugins:aws-maven-plugin

Amazon Web Services Maven plugin

License

License

Categories

Categories

AWS Container PaaS Providers Maven Build Tools
GroupId

GroupId

pl.jojczykp.maven.plugins
ArtifactId

ArtifactId

aws-maven-plugin
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

pl.jojczykp.maven.plugins:aws-maven-plugin
Amazon Web Services Maven plugin
Project URL

Project URL

https://github.com/jojczykp/aws-maven-plugin
Source Code Management

Source Code Management

https://github.com/jojczykp/aws-maven-plugin

Download aws-maven-plugin

How to add to project

<plugin>
    <groupId>pl.jojczykp.maven.plugins</groupId>
    <artifactId>aws-maven-plugin</artifactId>
    <version>1.0.0</version>
</plugin>

Dependencies

compile (3)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.3.9
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.5
com.amazonaws : aws-java-sdk-sqs jar 1.11.46

test (4)

Group / Artifact Type Version
org.mockito : mockito-core jar 2.0.2-beta
junit : junit jar 4.12
org.hamcrest : hamcrest-all jar 1.3
org.assertj : assertj-core jar 3.5.2

Project Modules

There are no modules declared in this project.

Amazon Web Services Maven Plugin

Currently implemented:

  • SQS Create Queue (with retry logic)
  • SQS Delete Queue

Usage example

<?xml version="1.0" encoding="UTF-8"?>
<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">
	<modelVersion>4.0.0</modelVersion>

	<groupId>pl.jojczykp.maven</groupId>
	<artifactId>aws-maven-plugin-test</artifactId>
	<version>1.0-SNAPSHOT</version>

	<dependencies>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.12</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>pl.jojczykp.maven.plugins</groupId>
				<artifactId>aws-maven-plugin</artifactId>
				<version>1.0.0</version>
				<executions>
					<execution>
						<id>create-queues</id>
						<phase>pre-integration-test</phase>
						<configuration>
							<regionName>eu-west-1</regionName>
							<queues>
								<name>sample-queue-1</name>
								<name>sample-queue-2</name>
								<name>sample-queue-3</name>
							</queues>
						</configuration>
						<goals>
							<goal>sqs-create-queue</goal>
						</goals>
					</execution>
					<execution>
						<id>delete-queues</id>
						<phase>post-integration-test</phase>
						<configuration>
							<regionName>eu-west-1</regionName>
							<queues>
								<name>sample-queue-1</name>
								<name>sample-queue-2</name>
								<name>sample-queue-3</name>
							</queues>
						</configuration>
						<goals>
							<goal>sqs-delete-queue</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

</project>
  • Run:
$ mvn verify

References

Versions

Version
1.0.0