Maven creation error when importing into Eclipse

I tried to use a Maven project. I can compile it with "mvn clean install" on the terminal without issue, but got this error when I imported it into Eclipse. What reason?

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 = '[]'

      

The relevant part of the pom is below:

<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>

      

+3


source to share





All Articles