mirror of
https://github.com/wahyd4/spring-cloud-stream-samples.git
synced 2026-08-09 05:16:18 +10:00
Rerfactoring artfiact names for partitioning samples to uniquely identy them as samples Add docker plugin (fabric8) sections for uppercase transformer and partitioning samples
142 lines
3.8 KiB
XML
142 lines
3.8 KiB
XML
<?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>
|
|
|
|
<artifactId>uppercase-transformer</artifactId>
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
<packaging>jar</packaging>
|
|
<name>uppercase-transformer</name>
|
|
<description>Spring Cloud Stream Uppercase Transformer</description>
|
|
|
|
<parent>
|
|
<groupId>io.spring.cloud.stream.sample</groupId>
|
|
<artifactId>spring-cloud-stream-samples-parent</artifactId>
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
<relativePath>../..</relativePath>
|
|
</parent>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-stream-test-support</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>kafka-binder</id>
|
|
<activation>
|
|
<activeByDefault>true</activeByDefault>
|
|
</activation>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-stream-binder-kafka</artifactId>
|
|
</dependency>
|
|
</dependencies>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<configuration>
|
|
<classifier>kafka</classifier>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
<version>0.14.2</version>
|
|
<configuration>
|
|
<images>
|
|
<image>
|
|
<name>springcloudstream/${project.artifactId}-kafka</name>
|
|
<build>
|
|
<from>anapsix/alpine-java:8</from>
|
|
<volumes>
|
|
<volume>/tmp</volume>
|
|
</volumes>
|
|
<entryPoint>
|
|
<exec>
|
|
<arg>java</arg>
|
|
<arg>-jar</arg>
|
|
<arg>/maven/uppercase-transformer-kafka.jar</arg>
|
|
</exec>
|
|
</entryPoint>
|
|
<assembly>
|
|
<descriptor>assembly-kafka.xml</descriptor>
|
|
</assembly>
|
|
</build>
|
|
</image>
|
|
</images>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>rabbit-binder</id>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-stream-binder-rabbit</artifactId>
|
|
</dependency>
|
|
</dependencies>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<configuration>
|
|
<classifier>rabbit</classifier>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
<version>0.14.2</version>
|
|
<configuration>
|
|
<images>
|
|
<image>
|
|
<name>springcloudstream/${project.artifactId}-rabbit</name>
|
|
<build>
|
|
<from>anapsix/alpine-java:8</from>
|
|
<volumes>
|
|
<volume>/tmp</volume>
|
|
</volumes>
|
|
<entryPoint>
|
|
<exec>
|
|
<arg>java</arg>
|
|
<arg>-jar</arg>
|
|
<arg>/maven/uppercase-transformer-rabbit.jar</arg>
|
|
</exec>
|
|
</entryPoint>
|
|
<assembly>
|
|
<descriptor>assembly-rabbit.xml</descriptor>
|
|
</assembly>
|
|
</build>
|
|
</image>
|
|
</images>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|