You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Vincent Massol (JIRA)" <ji...@codehaus.org> on 2007/07/27 13:11:13 UTC
[jira] Created: (MCHECKSTYLE-75) Checkstyle plugin doesn't work
with Maven 2.1
Checkstyle plugin doesn't work with Maven 2.1
---------------------------------------------
Key: MCHECKSTYLE-75
URL: http://jira.codehaus.org/browse/MCHECKSTYLE-75
Project: Maven 2.x Checkstyle Plugin
Issue Type: Bug
Affects Versions: 2.1
Reporter: Vincent Massol
Running "mvn clean install" with the following configuration fails:
{code}
<build>
<plugins>
...
<plugin>
<!-- Apply the Checkstyle configurations defined in the top level pom.xml file -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<dependencies>
<dependency>
<groupId>com.xpn.xwiki.platform</groupId>
<artifactId>xwiki-build-verifications</artifactId>
<version>1.1</version>
</dependency>
</dependencies>
<configuration>
<includes>
**/Api.java,
**/xmlrpc/ConfluenceRpcInterface,
**/xmlrpc/Attachment.java,
**/xmlrpc/SpaceSummary.java,
**/ViewAction.java,
**/ZipExplorer*.java,
**/FileUpload*.java,
**/PluginApi.java,
**/content/**/*.java,
**/XWikiMessageTool.java,
**/XWikiListFilter.java,
**/MyPersistentLoginManager.java
</includes>
<excludes>
**/RenamePageReplaceLinkHandler.java
</excludes>
</configuration>
</plugin>
</plugins>
</build>
{code}
I have the following in the top level pom:
{code}
<build>
<pluginManagement>
<plugins>
<!-- Apply checkstyle rules and fail the build in case of errors. The checkstyle config
files are taken from the build-tools JAR module.-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<dependencies>
<dependency>
<groupId>com.xpn.xwiki.platform</groupId>
<artifactId>xwiki-build-verifications</artifactId>
</dependency>
</dependencies>
<configuration>
<consoleOutput>true</consoleOutput>
<configLocation>checkstyle.xml</configLocation>
<headerLocation>checkstyle.license</headerLocation>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
...
{code}
The error I get:
{noformat}
...
[DEBUG] Mojo: check has config:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<includes>**/Api.java,
**/xmlrpc/ConfluenceRpcInterface,
**/xmlrpc/Attachment.java,
**/xmlrpc/SpaceSummary.java,
**/ViewAction.java,
**/ZipExplorer*.java,
**/FileUpload*.java,
**/PluginApi.java,
**/content/**/*.java,
**/XWikiMessageTool.java,
**/XWikiListFilter.java,
**/MyPersistentLoginManager.java</includes>
<excludes>**/RenamePageReplaceLinkHandler.java</excludes>
<consoleOutput>true</consoleOutput>
<configLocation>checkstyle.xml</configLocation>
<headerLocation>checkstyle.license</headerLocation>
</configuration>
[DEBUG] In verifyVersionedPlugin for: org.apache.maven.plugins:maven-checkstyle-plugin
[DEBUG] maven-checkstyle-plugin: using locally installed snapshot
[DEBUG] org.apache.maven.plugins:maven-checkstyle-plugin:maven-plugin:2.2-SNAPSHOT:runtime (selected for runtime)
...
[DEBUG] Looking up mojo org.apache.maven.plugins:maven-checkstyle-plugin:2.2-SNAPSHOT:check in realm org.apache.maven.plugins:maven-checkstyle-plugin - descRealmId=org.apache.maven.plugins:maven-checkstyle-plugin
[DEBUG] Looked up - org.apache.maven.plugin.checkstyle.CheckstyleViolationCheckMojo@8c63a6 - ClassRealm[org.apache.maven.plugins:maven-checkstyle-plugin, parent: ClassRealm[plexus.core, parent: null]]
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-checkstyle-plugin:2.2-SNAPSHOT:check' -->
[DEBUG] (f) failOnViolation = true
[DEBUG] (f) outputFile = /Users/vmassol/dev/xwiki/trunks-devs/xwiki-platform-core/target/checkstyle-result.xml
[DEBUG] (f) outputFileFormat = xml
[DEBUG] (f) skip = false
[DEBUG] -- end configuration --
[INFO] [checkstyle:check]
[INFO] Unable to perform checkstyle:check, unable to find checkstyle:checkstyle outputFile.
...
{noformat}
The strange thing is that if I run "mvn checkstyle:checkstyle" or "mvn checkstyle:check", it works fine...
Thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MCHECKSTYLE-75) Checkstyle plugin doesn't work
with Maven 2.1
Posted by "Vincent Massol (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCHECKSTYLE-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vincent Massol updated MCHECKSTYLE-75:
--------------------------------------
Attachment: checkstyle21error.txt
Full debug logs
> Checkstyle plugin doesn't work with Maven 2.1
> ---------------------------------------------
>
> Key: MCHECKSTYLE-75
> URL: http://jira.codehaus.org/browse/MCHECKSTYLE-75
> Project: Maven 2.x Checkstyle Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Vincent Massol
> Attachments: checkstyle21error.txt, checkstyle21error.txt
>
>
> Running "mvn clean install" with the following configuration fails:
> {code}
> <build>
> <plugins>
> ...
> <plugin>
> <!-- Apply the Checkstyle configurations defined in the top level pom.xml file -->
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-checkstyle-plugin</artifactId>
> <dependencies>
> <dependency>
> <groupId>com.xpn.xwiki.platform</groupId>
> <artifactId>xwiki-build-verifications</artifactId>
> <version>1.1</version>
> </dependency>
> </dependencies>
> <configuration>
> <includes>
> **/Api.java,
> **/xmlrpc/ConfluenceRpcInterface,
> **/xmlrpc/Attachment.java,
> **/xmlrpc/SpaceSummary.java,
> **/ViewAction.java,
> **/ZipExplorer*.java,
> **/FileUpload*.java,
> **/PluginApi.java,
> **/content/**/*.java,
> **/XWikiMessageTool.java,
> **/XWikiListFilter.java,
> **/MyPersistentLoginManager.java
> </includes>
> <excludes>
> **/RenamePageReplaceLinkHandler.java
> </excludes>
> </configuration>
> </plugin>
> </plugins>
> </build>
> {code}
> I have the following in the top level pom:
> {code}
> <build>
> <pluginManagement>
> <plugins>
> <!-- Apply checkstyle rules and fail the build in case of errors. The checkstyle config
> files are taken from the build-tools JAR module.-->
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-checkstyle-plugin</artifactId>
> <dependencies>
> <dependency>
> <groupId>com.xpn.xwiki.platform</groupId>
> <artifactId>xwiki-build-verifications</artifactId>
> </dependency>
> </dependencies>
> <configuration>
> <consoleOutput>true</consoleOutput>
> <configLocation>checkstyle.xml</configLocation>
> <headerLocation>checkstyle.license</headerLocation>
> </configuration>
> <executions>
> <execution>
> <goals>
> <goal>check</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> ...
> {code}
> The error I get:
> {noformat}
> ...
> [DEBUG] Mojo: check has config:
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration>
> <includes>**/Api.java,
> **/xmlrpc/ConfluenceRpcInterface,
> **/xmlrpc/Attachment.java,
> **/xmlrpc/SpaceSummary.java,
> **/ViewAction.java,
> **/ZipExplorer*.java,
> **/FileUpload*.java,
> **/PluginApi.java,
> **/content/**/*.java,
> **/XWikiMessageTool.java,
> **/XWikiListFilter.java,
> **/MyPersistentLoginManager.java</includes>
> <excludes>**/RenamePageReplaceLinkHandler.java</excludes>
> <consoleOutput>true</consoleOutput>
> <configLocation>checkstyle.xml</configLocation>
> <headerLocation>checkstyle.license</headerLocation>
> </configuration>
> [DEBUG] In verifyVersionedPlugin for: org.apache.maven.plugins:maven-checkstyle-plugin
> [DEBUG] maven-checkstyle-plugin: using locally installed snapshot
> [DEBUG] org.apache.maven.plugins:maven-checkstyle-plugin:maven-plugin:2.2-SNAPSHOT:runtime (selected for runtime)
> ...
> [DEBUG] Looking up mojo org.apache.maven.plugins:maven-checkstyle-plugin:2.2-SNAPSHOT:check in realm org.apache.maven.plugins:maven-checkstyle-plugin - descRealmId=org.apache.maven.plugins:maven-checkstyle-plugin
> [DEBUG] Looked up - org.apache.maven.plugin.checkstyle.CheckstyleViolationCheckMojo@8c63a6 - ClassRealm[org.apache.maven.plugins:maven-checkstyle-plugin, parent: ClassRealm[plexus.core, parent: null]]
> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-checkstyle-plugin:2.2-SNAPSHOT:check' -->
> [DEBUG] (f) failOnViolation = true
> [DEBUG] (f) outputFile = /Users/vmassol/dev/xwiki/trunks-devs/xwiki-platform-core/target/checkstyle-result.xml
> [DEBUG] (f) outputFileFormat = xml
> [DEBUG] (f) skip = false
> [DEBUG] -- end configuration --
> [INFO] [checkstyle:check]
> [INFO] Unable to perform checkstyle:check, unable to find checkstyle:checkstyle outputFile.
> ...
> {noformat}
> The strange thing is that if I run "mvn checkstyle:checkstyle" or "mvn checkstyle:check", it works fine...
> Thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MNG-3499) Checkstyle plugin doesn't work with
Maven 2.1
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=129719#action_129719 ]
John Casey commented on MNG-3499:
---------------------------------
It appears that the DefaultBuildPlanner component isn't processing @execute goal="checkstyle" correctly. I'll put together an integration/unit test to help guard against this in the future.
> Checkstyle plugin doesn't work with Maven 2.1
> ---------------------------------------------
>
> Key: MNG-3499
> URL: http://jira.codehaus.org/browse/MNG-3499
> Project: Maven 2
> Issue Type: Bug
> Affects Versions: 2.1-alpha-1
> Reporter: Vincent Massol
> Attachments: checkstyle21error.txt, checkstyle21error.txt
>
>
> Running "mvn clean install" with the following configuration fails:
> {code}
> <build>
> <plugins>
> ...
> <plugin>
> <!-- Apply the Checkstyle configurations defined in the top level pom.xml file -->
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-checkstyle-plugin</artifactId>
> <dependencies>
> <dependency>
> <groupId>com.xpn.xwiki.platform</groupId>
> <artifactId>xwiki-build-verifications</artifactId>
> <version>1.1</version>
> </dependency>
> </dependencies>
> <configuration>
> <includes>
> **/Api.java,
> **/xmlrpc/ConfluenceRpcInterface,
> **/xmlrpc/Attachment.java,
> **/xmlrpc/SpaceSummary.java,
> **/ViewAction.java,
> **/ZipExplorer*.java,
> **/FileUpload*.java,
> **/PluginApi.java,
> **/content/**/*.java,
> **/XWikiMessageTool.java,
> **/XWikiListFilter.java,
> **/MyPersistentLoginManager.java
> </includes>
> <excludes>
> **/RenamePageReplaceLinkHandler.java
> </excludes>
> </configuration>
> </plugin>
> </plugins>
> </build>
> {code}
> I have the following in the top level pom:
> {code}
> <build>
> <pluginManagement>
> <plugins>
> <!-- Apply checkstyle rules and fail the build in case of errors. The checkstyle config
> files are taken from the build-tools JAR module.-->
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-checkstyle-plugin</artifactId>
> <dependencies>
> <dependency>
> <groupId>com.xpn.xwiki.platform</groupId>
> <artifactId>xwiki-build-verifications</artifactId>
> </dependency>
> </dependencies>
> <configuration>
> <consoleOutput>true</consoleOutput>
> <configLocation>checkstyle.xml</configLocation>
> <headerLocation>checkstyle.license</headerLocation>
> </configuration>
> <executions>
> <execution>
> <goals>
> <goal>check</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> ...
> {code}
> The error I get:
> {noformat}
> ...
> [DEBUG] Mojo: check has config:
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration>
> <includes>**/Api.java,
> **/xmlrpc/ConfluenceRpcInterface,
> **/xmlrpc/Attachment.java,
> **/xmlrpc/SpaceSummary.java,
> **/ViewAction.java,
> **/ZipExplorer*.java,
> **/FileUpload*.java,
> **/PluginApi.java,
> **/content/**/*.java,
> **/XWikiMessageTool.java,
> **/XWikiListFilter.java,
> **/MyPersistentLoginManager.java</includes>
> <excludes>**/RenamePageReplaceLinkHandler.java</excludes>
> <consoleOutput>true</consoleOutput>
> <configLocation>checkstyle.xml</configLocation>
> <headerLocation>checkstyle.license</headerLocation>
> </configuration>
> [DEBUG] In verifyVersionedPlugin for: org.apache.maven.plugins:maven-checkstyle-plugin
> [DEBUG] maven-checkstyle-plugin: using locally installed snapshot
> [DEBUG] org.apache.maven.plugins:maven-checkstyle-plugin:maven-plugin:2.2-SNAPSHOT:runtime (selected for runtime)
> ...
> [DEBUG] Looking up mojo org.apache.maven.plugins:maven-checkstyle-plugin:2.2-SNAPSHOT:check in realm org.apache.maven.plugins:maven-checkstyle-plugin - descRealmId=org.apache.maven.plugins:maven-checkstyle-plugin
> [DEBUG] Looked up - org.apache.maven.plugin.checkstyle.CheckstyleViolationCheckMojo@8c63a6 - ClassRealm[org.apache.maven.plugins:maven-checkstyle-plugin, parent: ClassRealm[plexus.core, parent: null]]
> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-checkstyle-plugin:2.2-SNAPSHOT:check' -->
> [DEBUG] (f) failOnViolation = true
> [DEBUG] (f) outputFile = /Users/vmassol/dev/xwiki/trunks-devs/xwiki-platform-core/target/checkstyle-result.xml
> [DEBUG] (f) outputFileFormat = xml
> [DEBUG] (f) skip = false
> [DEBUG] -- end configuration --
> [INFO] [checkstyle:check]
> [INFO] Unable to perform checkstyle:check, unable to find checkstyle:checkstyle outputFile.
> ...
> {noformat}
> The strange thing is that if I run "mvn checkstyle:checkstyle" or "mvn checkstyle:check", it works fine...
> Thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MCHECKSTYLE-75) Checkstyle plugin doesn't work
with Maven 2.1
Posted by "Vincent Massol (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCHECKSTYLE-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vincent Massol updated MCHECKSTYLE-75:
--------------------------------------
Attachment: checkstyle21error.txt
Logs of executing mvn clean install -X on 2.1-SNAPSHOT.
Note that the exact same module is working fine in 2.0.8 and 2.0.9.
> Checkstyle plugin doesn't work with Maven 2.1
> ---------------------------------------------
>
> Key: MCHECKSTYLE-75
> URL: http://jira.codehaus.org/browse/MCHECKSTYLE-75
> Project: Maven 2.x Checkstyle Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Vincent Massol
> Attachments: checkstyle21error.txt
>
>
> Running "mvn clean install" with the following configuration fails:
> {code}
> <build>
> <plugins>
> ...
> <plugin>
> <!-- Apply the Checkstyle configurations defined in the top level pom.xml file -->
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-checkstyle-plugin</artifactId>
> <dependencies>
> <dependency>
> <groupId>com.xpn.xwiki.platform</groupId>
> <artifactId>xwiki-build-verifications</artifactId>
> <version>1.1</version>
> </dependency>
> </dependencies>
> <configuration>
> <includes>
> **/Api.java,
> **/xmlrpc/ConfluenceRpcInterface,
> **/xmlrpc/Attachment.java,
> **/xmlrpc/SpaceSummary.java,
> **/ViewAction.java,
> **/ZipExplorer*.java,
> **/FileUpload*.java,
> **/PluginApi.java,
> **/content/**/*.java,
> **/XWikiMessageTool.java,
> **/XWikiListFilter.java,
> **/MyPersistentLoginManager.java
> </includes>
> <excludes>
> **/RenamePageReplaceLinkHandler.java
> </excludes>
> </configuration>
> </plugin>
> </plugins>
> </build>
> {code}
> I have the following in the top level pom:
> {code}
> <build>
> <pluginManagement>
> <plugins>
> <!-- Apply checkstyle rules and fail the build in case of errors. The checkstyle config
> files are taken from the build-tools JAR module.-->
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-checkstyle-plugin</artifactId>
> <dependencies>
> <dependency>
> <groupId>com.xpn.xwiki.platform</groupId>
> <artifactId>xwiki-build-verifications</artifactId>
> </dependency>
> </dependencies>
> <configuration>
> <consoleOutput>true</consoleOutput>
> <configLocation>checkstyle.xml</configLocation>
> <headerLocation>checkstyle.license</headerLocation>
> </configuration>
> <executions>
> <execution>
> <goals>
> <goal>check</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> ...
> {code}
> The error I get:
> {noformat}
> ...
> [DEBUG] Mojo: check has config:
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration>
> <includes>**/Api.java,
> **/xmlrpc/ConfluenceRpcInterface,
> **/xmlrpc/Attachment.java,
> **/xmlrpc/SpaceSummary.java,
> **/ViewAction.java,
> **/ZipExplorer*.java,
> **/FileUpload*.java,
> **/PluginApi.java,
> **/content/**/*.java,
> **/XWikiMessageTool.java,
> **/XWikiListFilter.java,
> **/MyPersistentLoginManager.java</includes>
> <excludes>**/RenamePageReplaceLinkHandler.java</excludes>
> <consoleOutput>true</consoleOutput>
> <configLocation>checkstyle.xml</configLocation>
> <headerLocation>checkstyle.license</headerLocation>
> </configuration>
> [DEBUG] In verifyVersionedPlugin for: org.apache.maven.plugins:maven-checkstyle-plugin
> [DEBUG] maven-checkstyle-plugin: using locally installed snapshot
> [DEBUG] org.apache.maven.plugins:maven-checkstyle-plugin:maven-plugin:2.2-SNAPSHOT:runtime (selected for runtime)
> ...
> [DEBUG] Looking up mojo org.apache.maven.plugins:maven-checkstyle-plugin:2.2-SNAPSHOT:check in realm org.apache.maven.plugins:maven-checkstyle-plugin - descRealmId=org.apache.maven.plugins:maven-checkstyle-plugin
> [DEBUG] Looked up - org.apache.maven.plugin.checkstyle.CheckstyleViolationCheckMojo@8c63a6 - ClassRealm[org.apache.maven.plugins:maven-checkstyle-plugin, parent: ClassRealm[plexus.core, parent: null]]
> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-checkstyle-plugin:2.2-SNAPSHOT:check' -->
> [DEBUG] (f) failOnViolation = true
> [DEBUG] (f) outputFile = /Users/vmassol/dev/xwiki/trunks-devs/xwiki-platform-core/target/checkstyle-result.xml
> [DEBUG] (f) outputFileFormat = xml
> [DEBUG] (f) skip = false
> [DEBUG] -- end configuration --
> [INFO] [checkstyle:check]
> [INFO] Unable to perform checkstyle:check, unable to find checkstyle:checkstyle outputFile.
> ...
> {noformat}
> The strange thing is that if I run "mvn checkstyle:checkstyle" or "mvn checkstyle:check", it works fine...
> Thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MNG-3499) Checkstyle plugin doesn't work with
Maven 2.1
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=129741#action_129741 ]
John Casey commented on MNG-3499:
---------------------------------
Not sure when you last build your maven 2.1 copy, but I've added a new integration test to core-integration-testing that mocks up the @execute goal="xxxx" behavior, and it seems to work well here.
Can you let me know how old your maven copy is, and we can go from there?
> Checkstyle plugin doesn't work with Maven 2.1
> ---------------------------------------------
>
> Key: MNG-3499
> URL: http://jira.codehaus.org/browse/MNG-3499
> Project: Maven 2
> Issue Type: Bug
> Affects Versions: 2.1-alpha-1
> Reporter: Vincent Massol
> Assignee: John Casey
> Attachments: checkstyle21error.txt, checkstyle21error.txt
>
>
> Running "mvn clean install" with the following configuration fails:
> {code}
> <build>
> <plugins>
> ...
> <plugin>
> <!-- Apply the Checkstyle configurations defined in the top level pom.xml file -->
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-checkstyle-plugin</artifactId>
> <dependencies>
> <dependency>
> <groupId>com.xpn.xwiki.platform</groupId>
> <artifactId>xwiki-build-verifications</artifactId>
> <version>1.1</version>
> </dependency>
> </dependencies>
> <configuration>
> <includes>
> **/Api.java,
> **/xmlrpc/ConfluenceRpcInterface,
> **/xmlrpc/Attachment.java,
> **/xmlrpc/SpaceSummary.java,
> **/ViewAction.java,
> **/ZipExplorer*.java,
> **/FileUpload*.java,
> **/PluginApi.java,
> **/content/**/*.java,
> **/XWikiMessageTool.java,
> **/XWikiListFilter.java,
> **/MyPersistentLoginManager.java
> </includes>
> <excludes>
> **/RenamePageReplaceLinkHandler.java
> </excludes>
> </configuration>
> </plugin>
> </plugins>
> </build>
> {code}
> I have the following in the top level pom:
> {code}
> <build>
> <pluginManagement>
> <plugins>
> <!-- Apply checkstyle rules and fail the build in case of errors. The checkstyle config
> files are taken from the build-tools JAR module.-->
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-checkstyle-plugin</artifactId>
> <dependencies>
> <dependency>
> <groupId>com.xpn.xwiki.platform</groupId>
> <artifactId>xwiki-build-verifications</artifactId>
> </dependency>
> </dependencies>
> <configuration>
> <consoleOutput>true</consoleOutput>
> <configLocation>checkstyle.xml</configLocation>
> <headerLocation>checkstyle.license</headerLocation>
> </configuration>
> <executions>
> <execution>
> <goals>
> <goal>check</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> ...
> {code}
> The error I get:
> {noformat}
> ...
> [DEBUG] Mojo: check has config:
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration>
> <includes>**/Api.java,
> **/xmlrpc/ConfluenceRpcInterface,
> **/xmlrpc/Attachment.java,
> **/xmlrpc/SpaceSummary.java,
> **/ViewAction.java,
> **/ZipExplorer*.java,
> **/FileUpload*.java,
> **/PluginApi.java,
> **/content/**/*.java,
> **/XWikiMessageTool.java,
> **/XWikiListFilter.java,
> **/MyPersistentLoginManager.java</includes>
> <excludes>**/RenamePageReplaceLinkHandler.java</excludes>
> <consoleOutput>true</consoleOutput>
> <configLocation>checkstyle.xml</configLocation>
> <headerLocation>checkstyle.license</headerLocation>
> </configuration>
> [DEBUG] In verifyVersionedPlugin for: org.apache.maven.plugins:maven-checkstyle-plugin
> [DEBUG] maven-checkstyle-plugin: using locally installed snapshot
> [DEBUG] org.apache.maven.plugins:maven-checkstyle-plugin:maven-plugin:2.2-SNAPSHOT:runtime (selected for runtime)
> ...
> [DEBUG] Looking up mojo org.apache.maven.plugins:maven-checkstyle-plugin:2.2-SNAPSHOT:check in realm org.apache.maven.plugins:maven-checkstyle-plugin - descRealmId=org.apache.maven.plugins:maven-checkstyle-plugin
> [DEBUG] Looked up - org.apache.maven.plugin.checkstyle.CheckstyleViolationCheckMojo@8c63a6 - ClassRealm[org.apache.maven.plugins:maven-checkstyle-plugin, parent: ClassRealm[plexus.core, parent: null]]
> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-checkstyle-plugin:2.2-SNAPSHOT:check' -->
> [DEBUG] (f) failOnViolation = true
> [DEBUG] (f) outputFile = /Users/vmassol/dev/xwiki/trunks-devs/xwiki-platform-core/target/checkstyle-result.xml
> [DEBUG] (f) outputFileFormat = xml
> [DEBUG] (f) skip = false
> [DEBUG] -- end configuration --
> [INFO] [checkstyle:check]
> [INFO] Unable to perform checkstyle:check, unable to find checkstyle:checkstyle outputFile.
> ...
> {noformat}
> The strange thing is that if I run "mvn checkstyle:checkstyle" or "mvn checkstyle:check", it works fine...
> Thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (MNG-3499) Checkstyle plugin doesn't work with Maven
2.1
Posted by "Vincent Massol (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vincent Massol closed MNG-3499.
-------------------------------
Resolution: Won't Fix
My snapshot was dating back to end of January - Mid February (not sure when, would be nice if mvn --help would provide the date).
I've just rebuilt 2.1-SNAPSHOT from sources and it's now working fine.
Sorry for the trouble and thanks again.
-Vincent
> Checkstyle plugin doesn't work with Maven 2.1
> ---------------------------------------------
>
> Key: MNG-3499
> URL: http://jira.codehaus.org/browse/MNG-3499
> Project: Maven 2
> Issue Type: Bug
> Affects Versions: 2.1-alpha-1
> Reporter: Vincent Massol
> Assignee: John Casey
> Attachments: checkstyle21error.txt, checkstyle21error.txt
>
>
> Running "mvn clean install" with the following configuration fails:
> {code}
> <build>
> <plugins>
> ...
> <plugin>
> <!-- Apply the Checkstyle configurations defined in the top level pom.xml file -->
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-checkstyle-plugin</artifactId>
> <dependencies>
> <dependency>
> <groupId>com.xpn.xwiki.platform</groupId>
> <artifactId>xwiki-build-verifications</artifactId>
> <version>1.1</version>
> </dependency>
> </dependencies>
> <configuration>
> <includes>
> **/Api.java,
> **/xmlrpc/ConfluenceRpcInterface,
> **/xmlrpc/Attachment.java,
> **/xmlrpc/SpaceSummary.java,
> **/ViewAction.java,
> **/ZipExplorer*.java,
> **/FileUpload*.java,
> **/PluginApi.java,
> **/content/**/*.java,
> **/XWikiMessageTool.java,
> **/XWikiListFilter.java,
> **/MyPersistentLoginManager.java
> </includes>
> <excludes>
> **/RenamePageReplaceLinkHandler.java
> </excludes>
> </configuration>
> </plugin>
> </plugins>
> </build>
> {code}
> I have the following in the top level pom:
> {code}
> <build>
> <pluginManagement>
> <plugins>
> <!-- Apply checkstyle rules and fail the build in case of errors. The checkstyle config
> files are taken from the build-tools JAR module.-->
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-checkstyle-plugin</artifactId>
> <dependencies>
> <dependency>
> <groupId>com.xpn.xwiki.platform</groupId>
> <artifactId>xwiki-build-verifications</artifactId>
> </dependency>
> </dependencies>
> <configuration>
> <consoleOutput>true</consoleOutput>
> <configLocation>checkstyle.xml</configLocation>
> <headerLocation>checkstyle.license</headerLocation>
> </configuration>
> <executions>
> <execution>
> <goals>
> <goal>check</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> ...
> {code}
> The error I get:
> {noformat}
> ...
> [DEBUG] Mojo: check has config:
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration>
> <includes>**/Api.java,
> **/xmlrpc/ConfluenceRpcInterface,
> **/xmlrpc/Attachment.java,
> **/xmlrpc/SpaceSummary.java,
> **/ViewAction.java,
> **/ZipExplorer*.java,
> **/FileUpload*.java,
> **/PluginApi.java,
> **/content/**/*.java,
> **/XWikiMessageTool.java,
> **/XWikiListFilter.java,
> **/MyPersistentLoginManager.java</includes>
> <excludes>**/RenamePageReplaceLinkHandler.java</excludes>
> <consoleOutput>true</consoleOutput>
> <configLocation>checkstyle.xml</configLocation>
> <headerLocation>checkstyle.license</headerLocation>
> </configuration>
> [DEBUG] In verifyVersionedPlugin for: org.apache.maven.plugins:maven-checkstyle-plugin
> [DEBUG] maven-checkstyle-plugin: using locally installed snapshot
> [DEBUG] org.apache.maven.plugins:maven-checkstyle-plugin:maven-plugin:2.2-SNAPSHOT:runtime (selected for runtime)
> ...
> [DEBUG] Looking up mojo org.apache.maven.plugins:maven-checkstyle-plugin:2.2-SNAPSHOT:check in realm org.apache.maven.plugins:maven-checkstyle-plugin - descRealmId=org.apache.maven.plugins:maven-checkstyle-plugin
> [DEBUG] Looked up - org.apache.maven.plugin.checkstyle.CheckstyleViolationCheckMojo@8c63a6 - ClassRealm[org.apache.maven.plugins:maven-checkstyle-plugin, parent: ClassRealm[plexus.core, parent: null]]
> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-checkstyle-plugin:2.2-SNAPSHOT:check' -->
> [DEBUG] (f) failOnViolation = true
> [DEBUG] (f) outputFile = /Users/vmassol/dev/xwiki/trunks-devs/xwiki-platform-core/target/checkstyle-result.xml
> [DEBUG] (f) outputFileFormat = xml
> [DEBUG] (f) skip = false
> [DEBUG] -- end configuration --
> [INFO] [checkstyle:check]
> [INFO] Unable to perform checkstyle:check, unable to find checkstyle:checkstyle outputFile.
> ...
> {noformat}
> The strange thing is that if I run "mvn checkstyle:checkstyle" or "mvn checkstyle:check", it works fine...
> Thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MCHECKSTYLE-75) Checkstyle plugin doesn't work
with Maven 2.1
Posted by "Vincent Massol (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCHECKSTYLE-75?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=129717#action_129717 ]
Vincent Massol commented on MCHECKSTYLE-75:
-------------------------------------------
To reproduce:
* svn co https://svn.xwiki.org/svnroot/xwiki/xwiki-platform/core/trunk/xwiki-core
* mvn clean install
> Checkstyle plugin doesn't work with Maven 2.1
> ---------------------------------------------
>
> Key: MCHECKSTYLE-75
> URL: http://jira.codehaus.org/browse/MCHECKSTYLE-75
> Project: Maven 2.x Checkstyle Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Vincent Massol
> Attachments: checkstyle21error.txt
>
>
> Running "mvn clean install" with the following configuration fails:
> {code}
> <build>
> <plugins>
> ...
> <plugin>
> <!-- Apply the Checkstyle configurations defined in the top level pom.xml file -->
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-checkstyle-plugin</artifactId>
> <dependencies>
> <dependency>
> <groupId>com.xpn.xwiki.platform</groupId>
> <artifactId>xwiki-build-verifications</artifactId>
> <version>1.1</version>
> </dependency>
> </dependencies>
> <configuration>
> <includes>
> **/Api.java,
> **/xmlrpc/ConfluenceRpcInterface,
> **/xmlrpc/Attachment.java,
> **/xmlrpc/SpaceSummary.java,
> **/ViewAction.java,
> **/ZipExplorer*.java,
> **/FileUpload*.java,
> **/PluginApi.java,
> **/content/**/*.java,
> **/XWikiMessageTool.java,
> **/XWikiListFilter.java,
> **/MyPersistentLoginManager.java
> </includes>
> <excludes>
> **/RenamePageReplaceLinkHandler.java
> </excludes>
> </configuration>
> </plugin>
> </plugins>
> </build>
> {code}
> I have the following in the top level pom:
> {code}
> <build>
> <pluginManagement>
> <plugins>
> <!-- Apply checkstyle rules and fail the build in case of errors. The checkstyle config
> files are taken from the build-tools JAR module.-->
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-checkstyle-plugin</artifactId>
> <dependencies>
> <dependency>
> <groupId>com.xpn.xwiki.platform</groupId>
> <artifactId>xwiki-build-verifications</artifactId>
> </dependency>
> </dependencies>
> <configuration>
> <consoleOutput>true</consoleOutput>
> <configLocation>checkstyle.xml</configLocation>
> <headerLocation>checkstyle.license</headerLocation>
> </configuration>
> <executions>
> <execution>
> <goals>
> <goal>check</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> ...
> {code}
> The error I get:
> {noformat}
> ...
> [DEBUG] Mojo: check has config:
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration>
> <includes>**/Api.java,
> **/xmlrpc/ConfluenceRpcInterface,
> **/xmlrpc/Attachment.java,
> **/xmlrpc/SpaceSummary.java,
> **/ViewAction.java,
> **/ZipExplorer*.java,
> **/FileUpload*.java,
> **/PluginApi.java,
> **/content/**/*.java,
> **/XWikiMessageTool.java,
> **/XWikiListFilter.java,
> **/MyPersistentLoginManager.java</includes>
> <excludes>**/RenamePageReplaceLinkHandler.java</excludes>
> <consoleOutput>true</consoleOutput>
> <configLocation>checkstyle.xml</configLocation>
> <headerLocation>checkstyle.license</headerLocation>
> </configuration>
> [DEBUG] In verifyVersionedPlugin for: org.apache.maven.plugins:maven-checkstyle-plugin
> [DEBUG] maven-checkstyle-plugin: using locally installed snapshot
> [DEBUG] org.apache.maven.plugins:maven-checkstyle-plugin:maven-plugin:2.2-SNAPSHOT:runtime (selected for runtime)
> ...
> [DEBUG] Looking up mojo org.apache.maven.plugins:maven-checkstyle-plugin:2.2-SNAPSHOT:check in realm org.apache.maven.plugins:maven-checkstyle-plugin - descRealmId=org.apache.maven.plugins:maven-checkstyle-plugin
> [DEBUG] Looked up - org.apache.maven.plugin.checkstyle.CheckstyleViolationCheckMojo@8c63a6 - ClassRealm[org.apache.maven.plugins:maven-checkstyle-plugin, parent: ClassRealm[plexus.core, parent: null]]
> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-checkstyle-plugin:2.2-SNAPSHOT:check' -->
> [DEBUG] (f) failOnViolation = true
> [DEBUG] (f) outputFile = /Users/vmassol/dev/xwiki/trunks-devs/xwiki-platform-core/target/checkstyle-result.xml
> [DEBUG] (f) outputFileFormat = xml
> [DEBUG] (f) skip = false
> [DEBUG] -- end configuration --
> [INFO] [checkstyle:check]
> [INFO] Unable to perform checkstyle:check, unable to find checkstyle:checkstyle outputFile.
> ...
> {noformat}
> The strange thing is that if I run "mvn checkstyle:checkstyle" or "mvn checkstyle:check", it works fine...
> Thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Moved: (MNG-3499) Checkstyle plugin doesn't work with Maven
2.1
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Casey moved MCHECKSTYLE-75 to MNG-3499:
--------------------------------------------
Affects Version/s: (was: 2.1)
2.1-alpha-1
Complexity: Expert
Key: MNG-3499 (was: MCHECKSTYLE-75)
Project: Maven 2 (was: Maven 2.x Checkstyle Plugin)
> Checkstyle plugin doesn't work with Maven 2.1
> ---------------------------------------------
>
> Key: MNG-3499
> URL: http://jira.codehaus.org/browse/MNG-3499
> Project: Maven 2
> Issue Type: Bug
> Affects Versions: 2.1-alpha-1
> Reporter: Vincent Massol
> Attachments: checkstyle21error.txt, checkstyle21error.txt
>
>
> Running "mvn clean install" with the following configuration fails:
> {code}
> <build>
> <plugins>
> ...
> <plugin>
> <!-- Apply the Checkstyle configurations defined in the top level pom.xml file -->
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-checkstyle-plugin</artifactId>
> <dependencies>
> <dependency>
> <groupId>com.xpn.xwiki.platform</groupId>
> <artifactId>xwiki-build-verifications</artifactId>
> <version>1.1</version>
> </dependency>
> </dependencies>
> <configuration>
> <includes>
> **/Api.java,
> **/xmlrpc/ConfluenceRpcInterface,
> **/xmlrpc/Attachment.java,
> **/xmlrpc/SpaceSummary.java,
> **/ViewAction.java,
> **/ZipExplorer*.java,
> **/FileUpload*.java,
> **/PluginApi.java,
> **/content/**/*.java,
> **/XWikiMessageTool.java,
> **/XWikiListFilter.java,
> **/MyPersistentLoginManager.java
> </includes>
> <excludes>
> **/RenamePageReplaceLinkHandler.java
> </excludes>
> </configuration>
> </plugin>
> </plugins>
> </build>
> {code}
> I have the following in the top level pom:
> {code}
> <build>
> <pluginManagement>
> <plugins>
> <!-- Apply checkstyle rules and fail the build in case of errors. The checkstyle config
> files are taken from the build-tools JAR module.-->
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-checkstyle-plugin</artifactId>
> <dependencies>
> <dependency>
> <groupId>com.xpn.xwiki.platform</groupId>
> <artifactId>xwiki-build-verifications</artifactId>
> </dependency>
> </dependencies>
> <configuration>
> <consoleOutput>true</consoleOutput>
> <configLocation>checkstyle.xml</configLocation>
> <headerLocation>checkstyle.license</headerLocation>
> </configuration>
> <executions>
> <execution>
> <goals>
> <goal>check</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> ...
> {code}
> The error I get:
> {noformat}
> ...
> [DEBUG] Mojo: check has config:
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration>
> <includes>**/Api.java,
> **/xmlrpc/ConfluenceRpcInterface,
> **/xmlrpc/Attachment.java,
> **/xmlrpc/SpaceSummary.java,
> **/ViewAction.java,
> **/ZipExplorer*.java,
> **/FileUpload*.java,
> **/PluginApi.java,
> **/content/**/*.java,
> **/XWikiMessageTool.java,
> **/XWikiListFilter.java,
> **/MyPersistentLoginManager.java</includes>
> <excludes>**/RenamePageReplaceLinkHandler.java</excludes>
> <consoleOutput>true</consoleOutput>
> <configLocation>checkstyle.xml</configLocation>
> <headerLocation>checkstyle.license</headerLocation>
> </configuration>
> [DEBUG] In verifyVersionedPlugin for: org.apache.maven.plugins:maven-checkstyle-plugin
> [DEBUG] maven-checkstyle-plugin: using locally installed snapshot
> [DEBUG] org.apache.maven.plugins:maven-checkstyle-plugin:maven-plugin:2.2-SNAPSHOT:runtime (selected for runtime)
> ...
> [DEBUG] Looking up mojo org.apache.maven.plugins:maven-checkstyle-plugin:2.2-SNAPSHOT:check in realm org.apache.maven.plugins:maven-checkstyle-plugin - descRealmId=org.apache.maven.plugins:maven-checkstyle-plugin
> [DEBUG] Looked up - org.apache.maven.plugin.checkstyle.CheckstyleViolationCheckMojo@8c63a6 - ClassRealm[org.apache.maven.plugins:maven-checkstyle-plugin, parent: ClassRealm[plexus.core, parent: null]]
> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-checkstyle-plugin:2.2-SNAPSHOT:check' -->
> [DEBUG] (f) failOnViolation = true
> [DEBUG] (f) outputFile = /Users/vmassol/dev/xwiki/trunks-devs/xwiki-platform-core/target/checkstyle-result.xml
> [DEBUG] (f) outputFileFormat = xml
> [DEBUG] (f) skip = false
> [DEBUG] -- end configuration --
> [INFO] [checkstyle:check]
> [INFO] Unable to perform checkstyle:check, unable to find checkstyle:checkstyle outputFile.
> ...
> {noformat}
> The strange thing is that if I run "mvn checkstyle:checkstyle" or "mvn checkstyle:check", it works fine...
> Thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira