[
https://issues.jboss.org/browse/ISPN-10149?page=com.atlassian.jira.plugin...
]
Diego Lovison updated ISPN-10149:
---------------------------------
Description:
Today the checkstyle configuration is duplicated or using a different configuration file
across multiple projects
For hibernate/pom.xml we have
{code:xml}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>checkstyle-hibernate-cache.xml</configLocation>
</configuration>
</plugin>
{code}
For hibernate/cache-v53/pom.xml and hibernate/cache-v51/pom.xml we have
{code:xml}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>checkstyle.xml</configLocation>
</configuration>
</plugin>
{code}
The docs say
===== Checking coding style
If you have written any new code, it is highly recommended to validate formatting before
submitting a Pull Request.
This might be done by invoking:
$ mvn checktyle:check
but it is failing
{noformat}
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.296 s
[INFO] Finished at: 2019-04-25T19:55:17-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'checktyle' in the current project and in the
plugin groups [com.oracle.weblogic, org.jenkins-ci.tools, org.apache.maven.plugins,
org.codehaus.mojo] available from the repositories [local
(/Users/dlovison/.m2/repository), mead-jdg7-plugins
(
http://download.lab.eng.bos.redhat.com/brewroot/repos/jb-dg-7-rhel-7-buil...),
mead-jdg6-plugins
(
http://download.eng.bos.redhat.com/brewroot/repos/jb-edg-6-rhel-6-build/l...),
central-jdg6-plugins (
http://repo1.maven.org/maven2), jboss-public-jdg6-plugins
(
http://repository.jboss.org/nexus/content/groups/public/), central
(
https://repo.maven.apache.org/maven2)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the
following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixEx...
{noformat}
was:
Today the checkstyle configuration is duplicated or using a different configuration file
across multiple projects
For hibernate/pom.xml we have
{code:xml}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>checkstyle-hibernate-cache.xml</configLocation>
</configuration>
</plugin>
{code}
For hibernate/cache-v53/pom.xml and hibernate/cache-v51/pom.xml we have
{code:xml}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>checkstyle.xml</configLocation>
</configuration>
</plugin>
{code}
Keep only one checkstyle plugin configuration
---------------------------------------------
Key: ISPN-10149
URL:
https://issues.jboss.org/browse/ISPN-10149
Project: Infinispan
Issue Type: Bug
Reporter: Diego Lovison
Assignee: Diego Lovison
Priority: Major
Today the checkstyle configuration is duplicated or using a different configuration file
across multiple projects
For hibernate/pom.xml we have
{code:xml}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>checkstyle-hibernate-cache.xml</configLocation>
</configuration>
</plugin>
{code}
For hibernate/cache-v53/pom.xml and hibernate/cache-v51/pom.xml we have
{code:xml}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>checkstyle.xml</configLocation>
</configuration>
</plugin>
{code}
The docs say
===== Checking coding style
If you have written any new code, it is highly recommended to validate formatting before
submitting a Pull Request.
This might be done by invoking:
$ mvn checktyle:check
but it is failing
{noformat}
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.296 s
[INFO] Finished at: 2019-04-25T19:55:17-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'checktyle' in the current project and in the
plugin groups [com.oracle.weblogic, org.jenkins-ci.tools, org.apache.maven.plugins,
org.codehaus.mojo] available from the repositories [local
(/Users/dlovison/.m2/repository), mead-jdg7-plugins
(
http://download.lab.eng.bos.redhat.com/brewroot/repos/jb-dg-7-rhel-7-buil...),
mead-jdg6-plugins
(
http://download.eng.bos.redhat.com/brewroot/repos/jb-edg-6-rhel-6-build/l...),
central-jdg6-plugins (
http://repo1.maven.org/maven2), jboss-public-jdg6-plugins
(
http://repository.jboss.org/nexus/content/groups/public/), central
(
https://repo.maven.apache.org/maven2)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the
following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixEx...
{noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)