pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <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">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.redhat.training.kafka</groupId>
  5. <artifactId>sample-stream</artifactId>
  6. <version>1.0.1</version>
  7. <name>streams</name>
  8. <packaging>jar</packaging>
  9. <properties>
  10. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  11. <maven.compiler.source>17</maven.compiler.source>
  12. <maven.compiler.target>17</maven.compiler.target>
  13. </properties>
  14. <dependencies>
  15. <dependency>
  16. <groupId>org.apache.kafka</groupId>
  17. <artifactId>kafka-streams</artifactId>
  18. <version>3.7.0.redhat-00007</version>
  19. </dependency>
  20. <dependency>
  21. <groupId>io.smallrye.config</groupId>
  22. <artifactId>smallrye-config</artifactId>
  23. <version>3.5.4.redhat-00001</version>
  24. </dependency>
  25. <!-- smallrye-config declares everything but this as transitive -->
  26. <!-- <dependency>
  27. <groupId>javax.annotation</groupId>
  28. <artifactId>javax.annotation-api</artifactId>
  29. <version>1.3.2</version>
  30. </dependency> -->
  31. <dependency>
  32. <groupId>org.slf4j</groupId>
  33. <artifactId>slf4j-simple</artifactId>
  34. <version>2.0.7.redhat-00003</version>
  35. </dependency>
  36. </dependencies>
  37. <build>
  38. <plugins>
  39. <plugin>
  40. <groupId>org.codehaus.mojo</groupId>
  41. <artifactId>exec-maven-plugin</artifactId>
  42. <version>3.4.1</version>
  43. <executions>
  44. <execution>
  45. <goals>
  46. <goal>java</goal>
  47. </goals>
  48. </execution>
  49. </executions>
  50. <configuration>
  51. <mainClass>com.redhat.training.kafka.SimpleStream</mainClass>
  52. </configuration>
  53. </plugin>
  54. </plugins>
  55. </build>
  56. <profiles>
  57. <profile>
  58. <id>producer</id>
  59. <activation>
  60. <property>
  61. <name>producer</name>
  62. </property>
  63. </activation>
  64. <build>
  65. <plugins>
  66. <plugin>
  67. <groupId>org.codehaus.mojo</groupId>
  68. <artifactId>exec-maven-plugin</artifactId>
  69. <version>3.4.1</version>
  70. <executions>
  71. <execution>
  72. <goals>
  73. <goal>java</goal>
  74. </goals>
  75. </execution>
  76. </executions>
  77. <configuration>
  78. <mainClass>com.redhat.training.kafka.RandomPaymentProducer</mainClass>
  79. </configuration>
  80. </plugin>
  81. </plugins>
  82. </build>
  83. </profile>
  84. <profile>
  85. <id>consumer</id>
  86. <activation>
  87. <property>
  88. <name>consumer</name>
  89. </property>
  90. </activation>
  91. <build>
  92. <plugins>
  93. <plugin>
  94. <groupId>org.codehaus.mojo</groupId>
  95. <artifactId>exec-maven-plugin</artifactId>
  96. <version>3.4.1</version>
  97. <executions>
  98. <execution>
  99. <goals>
  100. <goal>java</goal>
  101. </goals>
  102. </execution>
  103. </executions>
  104. <configuration>
  105. <mainClass>com.redhat.training.kafka.LargePaymentConsumer</mainClass>
  106. </configuration>
  107. </plugin>
  108. </plugins>
  109. </build>
  110. </profile>
  111. </profiles>
  112. </project>