pom.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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.streams</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. <dependency>
  26. <groupId>org.slf4j</groupId>
  27. <artifactId>slf4j-api</artifactId>
  28. <version>2.0.7.redhat-00003</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.slf4j</groupId>
  32. <artifactId>slf4j-simple</artifactId>
  33. <version>2.0.7.redhat-00003</version>
  34. </dependency>
  35. </dependencies>
  36. <build>
  37. <plugins>
  38. <plugin>
  39. <groupId>org.codehaus.mojo</groupId>
  40. <artifactId>exec-maven-plugin</artifactId>
  41. <version>3.4.1</version>
  42. <executions>
  43. <execution>
  44. <goals>
  45. <goal>java</goal>
  46. </goals>
  47. </execution>
  48. </executions>
  49. <configuration>
  50. <mainClass>com.redhat.training.kafka.coreapi.streams.SimpleStream</mainClass>
  51. </configuration>
  52. </plugin>
  53. </plugins>
  54. </build>
  55. <profiles>
  56. <profile>
  57. <id>producer</id>
  58. <activation>
  59. <property>
  60. <name>producer</name>
  61. </property>
  62. </activation>
  63. <build>
  64. <plugins>
  65. <plugin>
  66. <groupId>org.codehaus.mojo</groupId>
  67. <artifactId>exec-maven-plugin</artifactId>
  68. <version>3.4.1</version>
  69. <executions>
  70. <execution>
  71. <goals>
  72. <goal>java</goal>
  73. </goals>
  74. </execution>
  75. </executions>
  76. <configuration>
  77. <mainClass>com.redhat.training.kafka.coreapi.RandomPaymentProducer</mainClass>
  78. </configuration>
  79. </plugin>
  80. </plugins>
  81. </build>
  82. </profile>
  83. <profile>
  84. <id>consumer</id>
  85. <activation>
  86. <property>
  87. <name>consumer</name>
  88. </property>
  89. </activation>
  90. <build>
  91. <plugins>
  92. <plugin>
  93. <groupId>org.codehaus.mojo</groupId>
  94. <artifactId>exec-maven-plugin</artifactId>
  95. <version>3.4.1</version>
  96. <executions>
  97. <execution>
  98. <goals>
  99. <goal>java</goal>
  100. </goals>
  101. </execution>
  102. </executions>
  103. <configuration>
  104. <mainClass>com.redhat.training.kafka.coreapi.LargePaymentConsumer</mainClass>
  105. </configuration>
  106. </plugin>
  107. </plugins>
  108. </build>
  109. </profile>
  110. </profiles>
  111. </project>