我在macossierra10.12.6上使用eclipseoxygen.1a版本(4.7.1a)。还安装了Java1.8和Scala2.12.4。
从confluent执行了以下存储库的git克隆:
https://github.com/confluentinc/kafka-streams-examples
在eclipse中将其作为maven项目导入时,我遇到以下错误:
Plugin execution not covered by lifecycle configuration: net.alchim31.maven:scala-maven-plugin:3.2.1:compile (execution: default, phase: compile)
Plugin execution not covered by lifecycle configuration: net.alchim31.maven:scala-maven-plugin:3.2.1:testCompile (execution: default, phase: test-compile)
Plugin execution not covered by lifecycle configuration: org.apache.avro:avro-maven-plugin:1.8.2:schema (execution: default, phase: generate-sources)
尝试使用本文建议的解决方案(安装takari lifecycle support):
带scala的eclipse中的maven pom错误
我总是犯同样的错误。
在eclipse中尝试作为maven项目导入时出现此对话框:
[
另外,在pom.xml文件中,eclipse在 <execution>
此代码段中的标记:
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
还有:
<plugin>
<groupId>org.apache.avro</groupId>
<artifactId>avro-maven-plugin</artifactId>
<version>${avro.version}</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>schema</goal>
</goals>
<configuration>
<sourceDirectory>src/main/resources/avro/io/confluent/examples/streams</sourceDirectory>
<outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
<stringType>String</stringType>
</configuration>
</execution>
</executions>
有人知道如何解决这个问题吗?
@阿列克索特-是的,你给的另一个so贴子表明要 Package 标签和围绕标签。
合流的代码并没有包含所有的内容:
https://github.com/confluentinc/kafka-streams-examples/blob/3.3.0-post/pom.xml
现在,错误从eclipseproblems视图中消失了。有一个新的问题,但我会创建一个新的职位,因为它不属于这个问题的标题。谢谢!
暂无答案!
目前还没有任何答案,快来回答吧!