【发布时间】:2017-11-24 20:05:17
【问题描述】:
我正在尝试在 pom.xml 中包含 kafka 流依赖项,并且我正在使用 intelij idea 工具.. 但这些依赖项显示错误未找到。它在 kafka 流、slf4j api 和 slf4j log4j12 依赖项中显示错误。所以任何人都可以帮助解决可能的问题吗?
<?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>com.github.intel.clamp.tool</groupId>
<artifactId>streams-starter-project</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<!--project dependencies -->
<!-- https://mvnrepository.com/artifact/org.apache.kafka/kafka-streams -->
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-streams</artifactId>
<version>1.0.0</version>
</dependency>
<!--for logging purposes-->
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.25</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12 -->
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12 -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.25</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
那么我的 pom.xml 可能有什么问题?
【问题讨论】:
-
你的
pom.xml在我身上工作得很好。您是否重新导入了更改,或者您可能希望在 intellij 中启用自动导入。
标签: pom.xml apache-kafka-streams