You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ulli Hafner (JIRA)" <ji...@codehaus.org> on 2010/09/14 14:11:32 UTC
[jira] Created: (MCHECKSTYLE-144) If 'src/main/java' does not exist
in a project then checkstyle skips the other source folders of the project
If 'src/main/java' does not exist in a project then checkstyle skips the other source folders of the project
------------------------------------------------------------------------------------------------------------
Key: MCHECKSTYLE-144
URL: http://jira.codehaus.org/browse/MCHECKSTYLE-144
Project: Maven 2.x Checkstyle Plugin
Issue Type: Bug
Reporter: Ulli Hafner
I'm not sure whether this is related to MCHECKSTYLE-141.
If I check a test-project that contains only a folder src/test/java but not a folder src/main/java (even thoud the includeTestDir option is set) then checkstyle ignores the whole project:
[INFO] --- maven-checkstyle-plugin:2.5:checkstyle (default-cli) @ de.faktorlogik.core.tests ---
[INFO] Source directory does not exist - skipping report.
[INFO] ------------------------------------------------------------------------
--
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-144) If 'src/main/java' does not
exist in a project then checkstyle skips the other source folders of the
project
Posted by "Ulli Hafner (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCHECKSTYLE-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=235193#action_235193 ]
Ulli Hafner commented on MCHECKSTYLE-144:
-----------------------------------------
Version: 2.5
> If 'src/main/java' does not exist in a project then checkstyle skips the other source folders of the project
> ------------------------------------------------------------------------------------------------------------
>
> Key: MCHECKSTYLE-144
> URL: http://jira.codehaus.org/browse/MCHECKSTYLE-144
> Project: Maven 2.x Checkstyle Plugin
> Issue Type: Bug
> Reporter: Ulli Hafner
>
> I'm not sure whether this is related to MCHECKSTYLE-141.
> If I check a test-project that contains only a folder src/test/java but not a folder src/main/java (even thoud the includeTestDir option is set) then checkstyle ignores the whole project:
> [INFO] --- maven-checkstyle-plugin:2.5:checkstyle (default-cli) @ de.faktorlogik.core.tests ---
> [INFO] Source directory does not exist - skipping report.
> [INFO] ------------------------------------------------------------------------
--
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] (MCHECKSTYLE-144) If 'src/main/java' does not exist in a
project then checkstyle skips the other source folders of the project
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MCHECKSTYLE-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=290589#comment-290589 ]
Dennis Lundberg commented on MCHECKSTYLE-144:
---------------------------------------------
Is this still an issue in version 2.8?
> If 'src/main/java' does not exist in a project then checkstyle skips the other source folders of the project
> ------------------------------------------------------------------------------------------------------------
>
> Key: MCHECKSTYLE-144
> URL: https://jira.codehaus.org/browse/MCHECKSTYLE-144
> Project: Maven 2.x Checkstyle Plugin
> Issue Type: Bug
> Affects Versions: 2.5
> Reporter: Ulli Hafner
>
> I'm not sure whether this is related to MCHECKSTYLE-141.
> If I check a test-project that contains only a folder src/test/java but not a folder src/main/java (even thoud the includeTestDir option is set) then checkstyle ignores the whole project:
> [INFO] --- maven-checkstyle-plugin:2.5:checkstyle (default-cli) @ de.faktorlogik.core.tests ---
> [INFO] Source directory does not exist - skipping report.
> [INFO] ------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MCHECKSTYLE-144) If 'src/main/java' does not
exist in a project then checkstyle skips the other source folders of the
project
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCHECKSTYLE-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=265362#action_265362 ]
Dennis Lundberg commented on MCHECKSTYLE-144:
---------------------------------------------
Lukas,
It sounds as if your Checkstyle configuration file is incorrect.
Have you updated it to the changes that were made in Checkstyle 5.0?
See http://checkstyle.sourceforge.net/releasenotes.html for details.
> If 'src/main/java' does not exist in a project then checkstyle skips the other source folders of the project
> ------------------------------------------------------------------------------------------------------------
>
> Key: MCHECKSTYLE-144
> URL: http://jira.codehaus.org/browse/MCHECKSTYLE-144
> Project: Maven 2.x Checkstyle Plugin
> Issue Type: Bug
> Affects Versions: 2.5
> Reporter: Ulli Hafner
>
> I'm not sure whether this is related to MCHECKSTYLE-141.
> If I check a test-project that contains only a folder src/test/java but not a folder src/main/java (even thoud the includeTestDir option is set) then checkstyle ignores the whole project:
> [INFO] --- maven-checkstyle-plugin:2.5:checkstyle (default-cli) @ de.faktorlogik.core.tests ---
> [INFO] Source directory does not exist - skipping report.
> [INFO] ------------------------------------------------------------------------
--
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-144) If 'src/main/java' does not
exist in a project then checkstyle skips the other source folders of the
project
Posted by "Sei Syvalta (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MCHECKSTYLE-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=276666#comment-276666 ]
Sei Syvalta commented on MCHECKSTYLE-144:
-----------------------------------------
> "Failed during checkstyle configuration: missing key 'cacheFile' in TreeWalker
See http://jira.codehaus.org/browse/MCHECKSTYLE-159
> If 'src/main/java' does not exist in a project then checkstyle skips the other source folders of the project
> ------------------------------------------------------------------------------------------------------------
>
> Key: MCHECKSTYLE-144
> URL: https://jira.codehaus.org/browse/MCHECKSTYLE-144
> Project: Maven 2.x Checkstyle Plugin
> Issue Type: Bug
> Affects Versions: 2.5
> Reporter: Ulli Hafner
>
> I'm not sure whether this is related to MCHECKSTYLE-141.
> If I check a test-project that contains only a folder src/test/java but not a folder src/main/java (even thoud the includeTestDir option is set) then checkstyle ignores the whole project:
> [INFO] --- maven-checkstyle-plugin:2.5:checkstyle (default-cli) @ de.faktorlogik.core.tests ---
> [INFO] Source directory does not exist - skipping report.
> [INFO] ------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MCHECKSTYLE-144) If 'src/main/java' does not
exist in a project then checkstyle skips the other source folders of the
project
Posted by "Lukas Fryc (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCHECKSTYLE-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=265346#action_265346 ]
Lukas Fryc commented on MCHECKSTYLE-144:
----------------------------------------
Hi Dennis, I have ran into same issue and tried to use 2.7-SNAPSHOT,
but my build has failed with "Failed during checkstyle configuration: missing key 'cacheFile' in TreeWalker -> [Help 1]
"
> If 'src/main/java' does not exist in a project then checkstyle skips the other source folders of the project
> ------------------------------------------------------------------------------------------------------------
>
> Key: MCHECKSTYLE-144
> URL: http://jira.codehaus.org/browse/MCHECKSTYLE-144
> Project: Maven 2.x Checkstyle Plugin
> Issue Type: Bug
> Reporter: Ulli Hafner
>
> I'm not sure whether this is related to MCHECKSTYLE-141.
> If I check a test-project that contains only a folder src/test/java but not a folder src/main/java (even thoud the includeTestDir option is set) then checkstyle ignores the whole project:
> [INFO] --- maven-checkstyle-plugin:2.5:checkstyle (default-cli) @ de.faktorlogik.core.tests ---
> [INFO] Source directory does not exist - skipping report.
> [INFO] ------------------------------------------------------------------------
--
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] (MCHECKSTYLE-144) If 'src/main/java' does not exist in a
project then checkstyle skips the other source folders of the project
Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MCHECKSTYLE-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=317617#comment-317617 ]
Mark Hobson commented on MCHECKSTYLE-144:
-----------------------------------------
Yep, I've just encountered this in 2.9.1.
> If 'src/main/java' does not exist in a project then checkstyle skips the other source folders of the project
> ------------------------------------------------------------------------------------------------------------
>
> Key: MCHECKSTYLE-144
> URL: https://jira.codehaus.org/browse/MCHECKSTYLE-144
> Project: Maven 2.x Checkstyle Plugin
> Issue Type: Bug
> Affects Versions: 2.5
> Reporter: Ulli Hafner
>
> I'm not sure whether this is related to MCHECKSTYLE-141.
> If I check a test-project that contains only a folder src/test/java but not a folder src/main/java (even thoud the includeTestDir option is set) then checkstyle ignores the whole project:
> [INFO] --- maven-checkstyle-plugin:2.5:checkstyle (default-cli) @ de.faktorlogik.core.tests ---
> [INFO] Source directory does not exist - skipping report.
> [INFO] ------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MCHECKSTYLE-144) If 'src/main/java' does not exist in a
project then checkstyle skips the other source folders of the project
Posted by "Peter Janes (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MCHECKSTYLE-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=318019#comment-318019 ]
Peter Janes commented on MCHECKSTYLE-144:
-----------------------------------------
MCHECKSTYLE-185 (which I guess is a duplicate) also has a patch for this issue.
> If 'src/main/java' does not exist in a project then checkstyle skips the other source folders of the project
> ------------------------------------------------------------------------------------------------------------
>
> Key: MCHECKSTYLE-144
> URL: https://jira.codehaus.org/browse/MCHECKSTYLE-144
> Project: Maven 2.x Checkstyle Plugin
> Issue Type: Bug
> Affects Versions: 2.5
> Reporter: Ulli Hafner
>
> I'm not sure whether this is related to MCHECKSTYLE-141.
> If I check a test-project that contains only a folder src/test/java but not a folder src/main/java (even thoud the includeTestDir option is set) then checkstyle ignores the whole project:
> [INFO] --- maven-checkstyle-plugin:2.5:checkstyle (default-cli) @ de.faktorlogik.core.tests ---
> [INFO] Source directory does not exist - skipping report.
> [INFO] ------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MCHECKSTYLE-144) If 'src/main/java' does not exist in a
project then checkstyle skips the other source folders of the project
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MCHECKSTYLE-144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg closed MCHECKSTYLE-144.
---------------------------------------
Resolution: Fixed
Fix Version/s: 2.10
Assignee: Dennis Lundberg
Fixed in [r1438948|http://svn.apache.org/viewvc?view=revision&revision=1438948].
> If 'src/main/java' does not exist in a project then checkstyle skips the other source folders of the project
> ------------------------------------------------------------------------------------------------------------
>
> Key: MCHECKSTYLE-144
> URL: https://jira.codehaus.org/browse/MCHECKSTYLE-144
> Project: Maven 2.x Checkstyle Plugin
> Issue Type: Bug
> Affects Versions: 2.5
> Reporter: Ulli Hafner
> Assignee: Dennis Lundberg
> Fix For: 2.10
>
>
> I'm not sure whether this is related to MCHECKSTYLE-141.
> If I check a test-project that contains only a folder src/test/java but not a folder src/main/java (even thoud the includeTestDir option is set) then checkstyle ignores the whole project:
> [INFO] --- maven-checkstyle-plugin:2.5:checkstyle (default-cli) @ de.faktorlogik.core.tests ---
> [INFO] Source directory does not exist - skipping report.
> [INFO] ------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MCHECKSTYLE-144) If 'src/main/java' does not exist
in a project then checkstyle skips the other source folders of the project
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCHECKSTYLE-144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg updated MCHECKSTYLE-144:
----------------------------------------
Affects Version/s: 2.5
> If 'src/main/java' does not exist in a project then checkstyle skips the other source folders of the project
> ------------------------------------------------------------------------------------------------------------
>
> Key: MCHECKSTYLE-144
> URL: http://jira.codehaus.org/browse/MCHECKSTYLE-144
> Project: Maven 2.x Checkstyle Plugin
> Issue Type: Bug
> Affects Versions: 2.5
> Reporter: Ulli Hafner
>
> I'm not sure whether this is related to MCHECKSTYLE-141.
> If I check a test-project that contains only a folder src/test/java but not a folder src/main/java (even thoud the includeTestDir option is set) then checkstyle ignores the whole project:
> [INFO] --- maven-checkstyle-plugin:2.5:checkstyle (default-cli) @ de.faktorlogik.core.tests ---
> [INFO] Source directory does not exist - skipping report.
> [INFO] ------------------------------------------------------------------------
--
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-144) If 'src/main/java' does not
exist in a project then checkstyle skips the other source folders of the
project
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCHECKSTYLE-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=263611#action_263611 ]
Dennis Lundberg commented on MCHECKSTYLE-144:
---------------------------------------------
I have just applied 2 patches that could help solve this issue.
Can you please try 2.7-SNAPSHOT and see if i works for you?
> If 'src/main/java' does not exist in a project then checkstyle skips the other source folders of the project
> ------------------------------------------------------------------------------------------------------------
>
> Key: MCHECKSTYLE-144
> URL: http://jira.codehaus.org/browse/MCHECKSTYLE-144
> Project: Maven 2.x Checkstyle Plugin
> Issue Type: Bug
> Reporter: Ulli Hafner
>
> I'm not sure whether this is related to MCHECKSTYLE-141.
> If I check a test-project that contains only a folder src/test/java but not a folder src/main/java (even thoud the includeTestDir option is set) then checkstyle ignores the whole project:
> [INFO] --- maven-checkstyle-plugin:2.5:checkstyle (default-cli) @ de.faktorlogik.core.tests ---
> [INFO] Source directory does not exist - skipping report.
> [INFO] ------------------------------------------------------------------------
--
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