导入Eclipse时Maven构建错误

时间:2017-07-11 17:57:49

标签: java eclipse maven

我正在尝试使用Maven项目。我可以在终端使用“mvn clean install”编译它没有问题,但是当我将它导入Eclipse时收到此错误。什么原因?

Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'deeplearning4j-examples-parent'.
Missing parameter for pluginExecutionFilter. groupId, artifactId, versionRange and goals must be specificed, but found: groupId = 'com.lewisd'
artifactId = 'lint-maven-plugin'
versionRange = '[0.0.11,)'
goals = '[]'

相关的pom部分如下:

<pluginManagement>
        <plugins>
          <plugin>
            <groupId>org.eclipse.m2e</groupId>
            <artifactId>lifecycle-mapping</artifactId>
            <version>1.0.0</version>
            <configuration>
              <lifecycleMappingMetadata>
                <pluginExecutions>
                  <pluginExecution>
                    <pluginExecutionFilter>
                      <groupId>com.lewisd</groupId>
                      <artifactId>lint-maven-plugin</artifactId>
                      <versionRange>[0.0.11,)</versionRange>

                    </pluginExecutionFilter>
                    <action>
                      <ignore/>
                    </action>
                  </pluginExecution>
                </pluginExecutions>
              </lifecycleMappingMetadata>
            </configuration>
          </plugin>
        </plugins>
      </pluginManagement>


 <plugin>
          <groupId>com.lewisd</groupId>
          <artifactId>lint-maven-plugin</artifactId>
          <version>0.0.11</version>
          <configuration>
            <failOnViolation>true</failOnViolation>
            <onlyRunRules>
              <rule>DuplicateDep</rule>
              <rule>RedundantPluginVersion</rule>
              <rule>VersionProp</rule>
              <rule>DotVersionProperty</rule>
            </onlyRunRules>
          </configuration>
          <executions>
            <execution>
              <id>pom-lint</id>
              <phase>validate</phase>
              <goals>
                <goal>check</goal>
              </goals>
            </execution>
          </executions>
        </plugin>

0 个答案:

没有答案