[
https://issues.jboss.org/browse/JBIDE-13147?page=com.atlassian.jira.plugi...
]
Karel Piwko commented on JBIDE-13147:
-------------------------------------
If you install the plugin dependency manually first via mvn install, it works. But
that's *exactly* the problem, as the dependency is a module of the project itself.
Maven does handle this situation via reactor and so should m2e. However, given the
upstream resolution (thanks for filling that), I think that solutions are either to
<ignore /> plugin mapping (which works) or to have a separate release cycle for
checkstyle resources.
I'll file a bug on SHRINKRES to do the either way.
Thanks!
M2E is not able to resolve dependency for configured plugins
(maven-checkstyle-plugin)
--------------------------------------------------------------------------------------
Key: JBIDE-13147
URL:
https://issues.jboss.org/browse/JBIDE-13147
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: maven, UpStream
Affects Versions: 4.0.0.Beta1
Environment: JBDS 6.0.0.Beta2, Mac OS X
Reporter: Karel Piwko
Assignee: Fred Bricon
Following configuration of the maven-checkstyle-plugin shows error marker in JBDS:
{code:xml}
<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>
{code}
M2E lifecycle configuration:
{code:xml}
<!-- 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>
{code}
shrinkwrap-resolver-build resources is a part of the modules in multimodule project and
Resolve projects from Workspace is enabled.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira