Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-13147

M2E is not able to resolve dependency for configured plugins (maven-checkstyle-plugin)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 4.0.0.Beta1
    • maven, upstream
    • None

      Following configuration of the maven-checkstyle-plugin shows error marker in JBDS:

      <plugin>
                          <groupId>org.apache.maven.plugins</groupId>
                          <artifactId>maven-checkstyle-plugin</artifactId>
                          <version>2.6</version>
                          <configuration>
                              <configLocation>code-style/checkstyle.xml</configLocation>
                              <logViolationsToConsole>true</logViolationsToConsole>
                              <violationSeverity>error</violationSeverity>
                          </configuration>
                          <executions>
                              <execution>
                                  <id>checkstyle-report</id>
                                  <phase>process-classes</phase>
                                  <goals>
                                      <goal>check</goal>
                                  </goals>
                              </execution>
                          </executions>
                          <dependencies>
                              <dependency>
                                  <groupId>org.jboss.shrinkwrap.resolver</groupId>
                                  <artifactId>shrinkwrap-resolver-build-resources</artifactId>
                                  <version>${project.version}</version>
                              </dependency>
                          </dependencies>
                      </plugin>
      

      M2E lifecycle configuration:

      <!-- So m2e doesn't throw errors for features it doesn't support in the POM -->
                      <plugin>
                          <groupId>org.eclipse.m2e</groupId>
                          <artifactId>lifecycle-mapping</artifactId>
                          <version>1.0.0</version>
                          <configuration>
                              <lifecycleMappingMetadata>
                                  <pluginExecutions>
                                      <pluginExecution>
                                          <pluginExecutionFilter>
                                              <groupId>org.apache.maven.plugins</groupId>
                                              <artifactId>maven-checkstyle-plugin</artifactId>
                                              <versionRange>[1.0.0,)</versionRange>
                                              <goals>
                                                  <goal>check</goal>
                                              </goals>
                                          </pluginExecutionFilter>
                                          <action>
                                              <execute />
                                          </action>
                                      </pluginExecution>
                                  </pluginExecutions>
                              </lifecycleMappingMetadata>
                          </configuration>
                      </plugin>
      

      shrinkwrap-resolver-build resources is a part of the modules in multimodule project and Resolve projects from Workspace is enabled.

            fbricon@redhat.com Fred Bricon
            kpiwko Karel Piwko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: