我想将eclipse用于Apache Spark项目,但构建依赖项似乎不起作用。我一直在
&#34;生命周期配置未涵盖的插件执行:org.apache.maven.plugins:maven-plugin-plugin:3.2:descriptor(执行:default-descriptor,phase:generate-resources)&#34; < / p>
按照Apache spark网站上的说明https://spark.apache.org/docs/latest/programming-guide.html 我正在运行CDH5集群。使用maven。这是我生成的pom.xml
<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>org.apache.spark</groupId>
<artifactId>spark-core_2.10</artifactId>
<version>1.1.0</version>
<packaging>jar</packaging>
<name>spark-core_2.10</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.10</artifactId>
</dependency>
<repositories>
<repository>
<id>Cloudera repository</id>
<url>https://repository.cloudera.com/artifactory/cloudera-repos/</url>
</repository>
</repositories>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.10</artifactId>
<version>1.1.0</version>
</dependency>
</dependencies>
我是新的Maven / POM用户。我如何解决这个问题并停止在我的java代码中出错?
答案 0 :(得分:0)
错误消息似乎与m2e插件有关。看看https://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html. 但是,您公开的pom很奇怪,groupId和artifactId应该与项目的路径和名称相关,而不是您尝试使用的依赖项(在本例中为spark-core_2.10)。