You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Zlika (JIRA)" <ji...@codehaus.org> on 2012/08/20 15:01:22 UTC

[jira] (MCHECKSTYLE-180) Multimodule configuration example does not work

Zlika created MCHECKSTYLE-180:
---------------------------------

             Summary: Multimodule configuration example does not work
                 Key: MCHECKSTYLE-180
                 URL: https://jira.codehaus.org/browse/MCHECKSTYLE-180
             Project: Maven 2.x Checkstyle Plugin
          Issue Type: Bug
    Affects Versions: 2.9.1
         Environment: Maven 3.0.4, Ubuntu 12.04 64bit
            Reporter: Zlika
         Attachments: test-buildtools.zip

I followed the multimodule example from http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html, but it does not seem to work.
With the attached test case, when I do "mvn verify" the build fail. It seems that Maven wants to download the "buildtool" module from the local repository (instead of building it), but it cannot find it.
{noformat}
mvn verify
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] test-parent
[INFO] Build tools
[INFO] test-test
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building test-parent 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.9.1:check (default) @ test-parent ---
Downloading: http://repository.apache.org/snapshots/testgroup/test-buildtools/0.1-SNAPSHOT/maven-metadata.xml
Downloading: http://repository.apache.org/snapshots/testgroup/test-buildtools/0.1-SNAPSHOT/test-buildtools-0.1-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] test-parent ....................................... FAILURE [3.345s]
[INFO] Build tools ....................................... SKIPPED
[INFO] test-test ......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.958s
[INFO] Finished at: Mon Aug 20 14:39:55 CEST 2012
[INFO] Final Memory: 6M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:check (default) on project test-parent: Execution default of goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:check failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1 or one of its dependencies could not be resolved: Could not find artifact testgroup:test-buildtools:jar:0.1-SNAPSHOT in apache.snapshots (http://repository.apache.org/snapshots) -> [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/PluginResolutionException
{noformat}

--
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-180) Multimodule configuration example does not work

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MCHECKSTYLE-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=307400#comment-307400 ] 

Dennis Lundberg commented on MCHECKSTYLE-180:
---------------------------------------------

Okay, but you do have a corporate POM don't you?

If so, then you can do it like this:

corporate-parent
* specifies plugin versions in build/pluginManagement

multi-module-project
* test-parent
  ** has corporate-parent as its parent
  ** has buildtools and test-test as modules

* buildtools module
  ** has corporate-parent as its parent
  ** contains project specific Checkstyle configuration files

* test-test
  ** has test-parent as its parent
  ** uses buildtools module to configure Checkstyle plugin

                
> Multimodule configuration example does not work
> -----------------------------------------------
>
>                 Key: MCHECKSTYLE-180
>                 URL: https://jira.codehaus.org/browse/MCHECKSTYLE-180
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.9.1
>         Environment: Maven 3.0.4, Ubuntu 12.04 64bit
>            Reporter: Zlika
>         Attachments: test-buildtools.zip
>
>
> I followed the multimodule example from http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html, but it does not seem to work.
> With the attached test case, when I do "mvn verify" the build fail. It seems that Maven wants to download the "buildtool" module from the local repository (instead of building it), but it cannot find it.
> {noformat}
> mvn verify
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO] 
> [INFO] test-parent
> [INFO] Build tools
> [INFO] test-test
> [INFO]                                                                         
> [INFO] ------------------------------------------------------------------------
> [INFO] Building test-parent 0.1-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-checkstyle-plugin:2.9.1:check (default) @ test-parent ---
> Downloading: http://repository.apache.org/snapshots/testgroup/test-buildtools/0.1-SNAPSHOT/maven-metadata.xml
> Downloading: http://repository.apache.org/snapshots/testgroup/test-buildtools/0.1-SNAPSHOT/test-buildtools-0.1-SNAPSHOT.jar
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] test-parent ....................................... FAILURE [3.345s]
> [INFO] Build tools ....................................... SKIPPED
> [INFO] test-test ......................................... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 3.958s
> [INFO] Finished at: Mon Aug 20 14:39:55 CEST 2012
> [INFO] Final Memory: 6M/15M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:check (default) on project test-parent: Execution default of goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:check failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1 or one of its dependencies could not be resolved: Could not find artifact testgroup:test-buildtools:jar:0.1-SNAPSHOT in apache.snapshots (http://repository.apache.org/snapshots) -> [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/PluginResolutionException
> {noformat}

--
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-180) Multimodule configuration example does not work

Posted by "Zlika (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MCHECKSTYLE-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=306616#comment-306616 ] 

Zlika commented on MCHECKSTYLE-180:
-----------------------------------

Thank you for your answer.
So that means that either I have a non reproductible (because no specific plugin version is declared in the buildtool pom) or I need to duplicate the pluginManagement section ?
None of these solutions seem right to me.
                
> Multimodule configuration example does not work
> -----------------------------------------------
>
>                 Key: MCHECKSTYLE-180
>                 URL: https://jira.codehaus.org/browse/MCHECKSTYLE-180
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.9.1
>         Environment: Maven 3.0.4, Ubuntu 12.04 64bit
>            Reporter: Zlika
>         Attachments: test-buildtools.zip
>
>
> I followed the multimodule example from http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html, but it does not seem to work.
> With the attached test case, when I do "mvn verify" the build fail. It seems that Maven wants to download the "buildtool" module from the local repository (instead of building it), but it cannot find it.
> {noformat}
> mvn verify
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO] 
> [INFO] test-parent
> [INFO] Build tools
> [INFO] test-test
> [INFO]                                                                         
> [INFO] ------------------------------------------------------------------------
> [INFO] Building test-parent 0.1-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-checkstyle-plugin:2.9.1:check (default) @ test-parent ---
> Downloading: http://repository.apache.org/snapshots/testgroup/test-buildtools/0.1-SNAPSHOT/maven-metadata.xml
> Downloading: http://repository.apache.org/snapshots/testgroup/test-buildtools/0.1-SNAPSHOT/test-buildtools-0.1-SNAPSHOT.jar
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] test-parent ....................................... FAILURE [3.345s]
> [INFO] Build tools ....................................... SKIPPED
> [INFO] test-test ......................................... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 3.958s
> [INFO] Finished at: Mon Aug 20 14:39:55 CEST 2012
> [INFO] Final Memory: 6M/15M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:check (default) on project test-parent: Execution default of goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:check failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1 or one of its dependencies could not be resolved: Could not find artifact testgroup:test-buildtools:jar:0.1-SNAPSHOT in apache.snapshots (http://repository.apache.org/snapshots) -> [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/PluginResolutionException
> {noformat}

--
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-180) Multimodule configuration example does not work

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MCHECKSTYLE-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=306677#comment-306677 ] 

Dennis Lundberg commented on MCHECKSTYLE-180:
---------------------------------------------

I don't understand what you are saying.

You only need to do one thing to get this to work:
- remove the <parent> element from your test-buildtools pom.xml

How does that make your build non-reproducible?
                
> Multimodule configuration example does not work
> -----------------------------------------------
>
>                 Key: MCHECKSTYLE-180
>                 URL: https://jira.codehaus.org/browse/MCHECKSTYLE-180
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.9.1
>         Environment: Maven 3.0.4, Ubuntu 12.04 64bit
>            Reporter: Zlika
>         Attachments: test-buildtools.zip
>
>
> I followed the multimodule example from http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html, but it does not seem to work.
> With the attached test case, when I do "mvn verify" the build fail. It seems that Maven wants to download the "buildtool" module from the local repository (instead of building it), but it cannot find it.
> {noformat}
> mvn verify
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO] 
> [INFO] test-parent
> [INFO] Build tools
> [INFO] test-test
> [INFO]                                                                         
> [INFO] ------------------------------------------------------------------------
> [INFO] Building test-parent 0.1-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-checkstyle-plugin:2.9.1:check (default) @ test-parent ---
> Downloading: http://repository.apache.org/snapshots/testgroup/test-buildtools/0.1-SNAPSHOT/maven-metadata.xml
> Downloading: http://repository.apache.org/snapshots/testgroup/test-buildtools/0.1-SNAPSHOT/test-buildtools-0.1-SNAPSHOT.jar
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] test-parent ....................................... FAILURE [3.345s]
> [INFO] Build tools ....................................... SKIPPED
> [INFO] test-test ......................................... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 3.958s
> [INFO] Finished at: Mon Aug 20 14:39:55 CEST 2012
> [INFO] Final Memory: 6M/15M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:check (default) on project test-parent: Execution default of goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:check failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1 or one of its dependencies could not be resolved: Could not find artifact testgroup:test-buildtools:jar:0.1-SNAPSHOT in apache.snapshots (http://repository.apache.org/snapshots) -> [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/PluginResolutionException
> {noformat}

--
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-180) Multimodule configuration example does not work

Posted by "Zlika (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MCHECKSTYLE-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=306681#comment-306681 ] 

Zlika commented on MCHECKSTYLE-180:
-----------------------------------

If there is no parent (where I define all the plugin versions), then the versions of the plugins which will be used to build the buildtool module will depend on the Maven version (each Maven version comes with a super pom that defines the default plugin versions). Then the build is not "reproductible" (in a sense) because it will depend on the Maven version that will be used.
Moreover, I would have to manage another version number for the buildtool module (if it has a parent, it inherits its version number), and it would be a nightmare to manage with the release plugin.
                
> Multimodule configuration example does not work
> -----------------------------------------------
>
>                 Key: MCHECKSTYLE-180
>                 URL: https://jira.codehaus.org/browse/MCHECKSTYLE-180
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.9.1
>         Environment: Maven 3.0.4, Ubuntu 12.04 64bit
>            Reporter: Zlika
>         Attachments: test-buildtools.zip
>
>
> I followed the multimodule example from http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html, but it does not seem to work.
> With the attached test case, when I do "mvn verify" the build fail. It seems that Maven wants to download the "buildtool" module from the local repository (instead of building it), but it cannot find it.
> {noformat}
> mvn verify
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO] 
> [INFO] test-parent
> [INFO] Build tools
> [INFO] test-test
> [INFO]                                                                         
> [INFO] ------------------------------------------------------------------------
> [INFO] Building test-parent 0.1-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-checkstyle-plugin:2.9.1:check (default) @ test-parent ---
> Downloading: http://repository.apache.org/snapshots/testgroup/test-buildtools/0.1-SNAPSHOT/maven-metadata.xml
> Downloading: http://repository.apache.org/snapshots/testgroup/test-buildtools/0.1-SNAPSHOT/test-buildtools-0.1-SNAPSHOT.jar
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] test-parent ....................................... FAILURE [3.345s]
> [INFO] Build tools ....................................... SKIPPED
> [INFO] test-test ......................................... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 3.958s
> [INFO] Finished at: Mon Aug 20 14:39:55 CEST 2012
> [INFO] Final Memory: 6M/15M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:check (default) on project test-parent: Execution default of goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:check failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1 or one of its dependencies could not be resolved: Could not find artifact testgroup:test-buildtools:jar:0.1-SNAPSHOT in apache.snapshots (http://repository.apache.org/snapshots) -> [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/PluginResolutionException
> {noformat}

--
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-180) Multimodule configuration example does not work

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MCHECKSTYLE-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=306603#comment-306603 ] 

Dennis Lundberg commented on MCHECKSTYLE-180:
---------------------------------------------

This is a chicken-and-egg problem that has a simple solution:

Make sure that the test-buildtools module does *not* have test-parent as its parent. Note in our configuration example that the build-tools module has no parent at all.

What I tend to do is have test-buildtools as a completely separate project. That way it can be reused in multiple projects.
                
> Multimodule configuration example does not work
> -----------------------------------------------
>
>                 Key: MCHECKSTYLE-180
>                 URL: https://jira.codehaus.org/browse/MCHECKSTYLE-180
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.9.1
>         Environment: Maven 3.0.4, Ubuntu 12.04 64bit
>            Reporter: Zlika
>         Attachments: test-buildtools.zip
>
>
> I followed the multimodule example from http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html, but it does not seem to work.
> With the attached test case, when I do "mvn verify" the build fail. It seems that Maven wants to download the "buildtool" module from the local repository (instead of building it), but it cannot find it.
> {noformat}
> mvn verify
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO] 
> [INFO] test-parent
> [INFO] Build tools
> [INFO] test-test
> [INFO]                                                                         
> [INFO] ------------------------------------------------------------------------
> [INFO] Building test-parent 0.1-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-checkstyle-plugin:2.9.1:check (default) @ test-parent ---
> Downloading: http://repository.apache.org/snapshots/testgroup/test-buildtools/0.1-SNAPSHOT/maven-metadata.xml
> Downloading: http://repository.apache.org/snapshots/testgroup/test-buildtools/0.1-SNAPSHOT/test-buildtools-0.1-SNAPSHOT.jar
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] test-parent ....................................... FAILURE [3.345s]
> [INFO] Build tools ....................................... SKIPPED
> [INFO] test-test ......................................... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 3.958s
> [INFO] Finished at: Mon Aug 20 14:39:55 CEST 2012
> [INFO] Final Memory: 6M/15M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:check (default) on project test-parent: Execution default of goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:check failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1 or one of its dependencies could not be resolved: Could not find artifact testgroup:test-buildtools:jar:0.1-SNAPSHOT in apache.snapshots (http://repository.apache.org/snapshots) -> [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/PluginResolutionException
> {noformat}

--
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-180) Multimodule configuration example does not work

Posted by "Zlika (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MCHECKSTYLE-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=306883#comment-306883 ] 

Zlika commented on MCHECKSTYLE-180:
-----------------------------------

That's an interesting idea, but it's not really applicable for me: each project may have slighly different rules, and in particular the checkstyle-suppresions.xml file is often project specific.
Once again, Maven is very efficient do to complex things easily but is not able to do simple things in a clean and simple way... :-(
                
> Multimodule configuration example does not work
> -----------------------------------------------
>
>                 Key: MCHECKSTYLE-180
>                 URL: https://jira.codehaus.org/browse/MCHECKSTYLE-180
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.9.1
>         Environment: Maven 3.0.4, Ubuntu 12.04 64bit
>            Reporter: Zlika
>         Attachments: test-buildtools.zip
>
>
> I followed the multimodule example from http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html, but it does not seem to work.
> With the attached test case, when I do "mvn verify" the build fail. It seems that Maven wants to download the "buildtool" module from the local repository (instead of building it), but it cannot find it.
> {noformat}
> mvn verify
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO] 
> [INFO] test-parent
> [INFO] Build tools
> [INFO] test-test
> [INFO]                                                                         
> [INFO] ------------------------------------------------------------------------
> [INFO] Building test-parent 0.1-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-checkstyle-plugin:2.9.1:check (default) @ test-parent ---
> Downloading: http://repository.apache.org/snapshots/testgroup/test-buildtools/0.1-SNAPSHOT/maven-metadata.xml
> Downloading: http://repository.apache.org/snapshots/testgroup/test-buildtools/0.1-SNAPSHOT/test-buildtools-0.1-SNAPSHOT.jar
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] test-parent ....................................... FAILURE [3.345s]
> [INFO] Build tools ....................................... SKIPPED
> [INFO] test-test ......................................... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 3.958s
> [INFO] Finished at: Mon Aug 20 14:39:55 CEST 2012
> [INFO] Final Memory: 6M/15M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:check (default) on project test-parent: Execution default of goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:check failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1 or one of its dependencies could not be resolved: Could not find artifact testgroup:test-buildtools:jar:0.1-SNAPSHOT in apache.snapshots (http://repository.apache.org/snapshots) -> [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/PluginResolutionException
> {noformat}

--
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-180) Multimodule configuration example does not work

Posted by "Zlika (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MCHECKSTYLE-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=306616#comment-306616 ] 

Zlika edited comment on MCHECKSTYLE-180 at 8/21/12 2:26 AM:
------------------------------------------------------------

Thank you for your answer.
So that means that either I have a non reproductible build (because no specific plugin version is declared in the buildtool pom) or I need to duplicate the pluginManagement section of the parent ?
None of these solutions seems right to me.
                
      was (Author: zlika):
    Thank you for your answer.
So that means that either I have a non reproductible build (because no specific plugin version is declared in the buildtool pom) or I need to duplicate the pluginManagement section ?
None of these solutions seem right to me.
                  
> Multimodule configuration example does not work
> -----------------------------------------------
>
>                 Key: MCHECKSTYLE-180
>                 URL: https://jira.codehaus.org/browse/MCHECKSTYLE-180
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.9.1
>         Environment: Maven 3.0.4, Ubuntu 12.04 64bit
>            Reporter: Zlika
>         Attachments: test-buildtools.zip
>
>
> I followed the multimodule example from http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html, but it does not seem to work.
> With the attached test case, when I do "mvn verify" the build fail. It seems that Maven wants to download the "buildtool" module from the local repository (instead of building it), but it cannot find it.
> {noformat}
> mvn verify
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO] 
> [INFO] test-parent
> [INFO] Build tools
> [INFO] test-test
> [INFO]                                                                         
> [INFO] ------------------------------------------------------------------------
> [INFO] Building test-parent 0.1-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-checkstyle-plugin:2.9.1:check (default) @ test-parent ---
> Downloading: http://repository.apache.org/snapshots/testgroup/test-buildtools/0.1-SNAPSHOT/maven-metadata.xml
> Downloading: http://repository.apache.org/snapshots/testgroup/test-buildtools/0.1-SNAPSHOT/test-buildtools-0.1-SNAPSHOT.jar
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] test-parent ....................................... FAILURE [3.345s]
> [INFO] Build tools ....................................... SKIPPED
> [INFO] test-test ......................................... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 3.958s
> [INFO] Finished at: Mon Aug 20 14:39:55 CEST 2012
> [INFO] Final Memory: 6M/15M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:check (default) on project test-parent: Execution default of goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:check failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1 or one of its dependencies could not be resolved: Could not find artifact testgroup:test-buildtools:jar:0.1-SNAPSHOT in apache.snapshots (http://repository.apache.org/snapshots) -> [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/PluginResolutionException
> {noformat}

--
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-180) Multimodule configuration example does not work

Posted by "Zlika (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MCHECKSTYLE-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=306616#comment-306616 ] 

Zlika edited comment on MCHECKSTYLE-180 at 8/21/12 1:23 AM:
------------------------------------------------------------

Thank you for your answer.
So that means that either I have a non reproductible build (because no specific plugin version is declared in the buildtool pom) or I need to duplicate the pluginManagement section ?
None of these solutions seem right to me.
                
      was (Author: zlika):
    Thank you for your answer.
So that means that either I have a non reproductible (because no specific plugin version is declared in the buildtool pom) or I need to duplicate the pluginManagement section ?
None of these solutions seem right to me.
                  
> Multimodule configuration example does not work
> -----------------------------------------------
>
>                 Key: MCHECKSTYLE-180
>                 URL: https://jira.codehaus.org/browse/MCHECKSTYLE-180
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.9.1
>         Environment: Maven 3.0.4, Ubuntu 12.04 64bit
>            Reporter: Zlika
>         Attachments: test-buildtools.zip
>
>
> I followed the multimodule example from http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html, but it does not seem to work.
> With the attached test case, when I do "mvn verify" the build fail. It seems that Maven wants to download the "buildtool" module from the local repository (instead of building it), but it cannot find it.
> {noformat}
> mvn verify
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO] 
> [INFO] test-parent
> [INFO] Build tools
> [INFO] test-test
> [INFO]                                                                         
> [INFO] ------------------------------------------------------------------------
> [INFO] Building test-parent 0.1-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-checkstyle-plugin:2.9.1:check (default) @ test-parent ---
> Downloading: http://repository.apache.org/snapshots/testgroup/test-buildtools/0.1-SNAPSHOT/maven-metadata.xml
> Downloading: http://repository.apache.org/snapshots/testgroup/test-buildtools/0.1-SNAPSHOT/test-buildtools-0.1-SNAPSHOT.jar
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] test-parent ....................................... FAILURE [3.345s]
> [INFO] Build tools ....................................... SKIPPED
> [INFO] test-test ......................................... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 3.958s
> [INFO] Finished at: Mon Aug 20 14:39:55 CEST 2012
> [INFO] Final Memory: 6M/15M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:check (default) on project test-parent: Execution default of goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:check failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1 or one of its dependencies could not be resolved: Could not find artifact testgroup:test-buildtools:jar:0.1-SNAPSHOT in apache.snapshots (http://repository.apache.org/snapshots) -> [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/PluginResolutionException
> {noformat}

--
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-180) Multimodule configuration example does not work

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MCHECKSTYLE-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=306835#comment-306835 ] 

Dennis Lundberg edited comment on MCHECKSTYLE-180 at 8/22/12 11:39 AM:
-----------------------------------------------------------------------

Well, the buildtools module doesn't need a lot of plugins to build, but I get your point.

I suggest that you follow my earlier suggestion and make the buildtools module an entirely separate project. It would look something like this:

* corporate-parent version 1
  ** specifies plugin versions in build/pluginManagement

* buildtools project version 1
  ** has corporate-parent:1 as its parent

* corporate-parent version 2
  ** specifies plugin versions in build/pluginManagement
  ** adds buildtools:1 as a dependency to Checkstyle plugin in build/pluginManagement
  ** specifies the version of buildtools in a property so that it can be easily overridden

* multi-module-project
  ** has corporate-parent:2 as its parent
  ** uses Checkstyle plugin in build/plugins

                
      was (Author: dennislundberg):
    Well, the buildtools module doesn't need a lot of plugins to build, but I get your point.

I suggest that you follow my earlier suggestion and make the buildtools module an entirely separate project. It would look something like this:

* corporate-parent version 1
  * specifies plugin versions

* buildtools project

  * has corporate-parent:1 as its parent

* corporate-parent version 2

  * specifies plugin versions
  * specifies buildtools version, preferably in a property so that it can be easily overridden
  * adds buildtools as a dependency to Checkstyle plugin in build/pluginManagement

* multi-module-project

  * has corporate-parent:2 as its parent
  * uses Checkstyle plugin in build/plugins

                  
> Multimodule configuration example does not work
> -----------------------------------------------
>
>                 Key: MCHECKSTYLE-180
>                 URL: https://jira.codehaus.org/browse/MCHECKSTYLE-180
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.9.1
>         Environment: Maven 3.0.4, Ubuntu 12.04 64bit
>            Reporter: Zlika
>         Attachments: test-buildtools.zip
>
>
> I followed the multimodule example from http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html, but it does not seem to work.
> With the attached test case, when I do "mvn verify" the build fail. It seems that Maven wants to download the "buildtool" module from the local repository (instead of building it), but it cannot find it.
> {noformat}
> mvn verify
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO] 
> [INFO] test-parent
> [INFO] Build tools
> [INFO] test-test
> [INFO]                                                                         
> [INFO] ------------------------------------------------------------------------
> [INFO] Building test-parent 0.1-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-checkstyle-plugin:2.9.1:check (default) @ test-parent ---
> Downloading: http://repository.apache.org/snapshots/testgroup/test-buildtools/0.1-SNAPSHOT/maven-metadata.xml
> Downloading: http://repository.apache.org/snapshots/testgroup/test-buildtools/0.1-SNAPSHOT/test-buildtools-0.1-SNAPSHOT.jar
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] test-parent ....................................... FAILURE [3.345s]
> [INFO] Build tools ....................................... SKIPPED
> [INFO] test-test ......................................... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 3.958s
> [INFO] Finished at: Mon Aug 20 14:39:55 CEST 2012
> [INFO] Final Memory: 6M/15M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:check (default) on project test-parent: Execution default of goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:check failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1 or one of its dependencies could not be resolved: Could not find artifact testgroup:test-buildtools:jar:0.1-SNAPSHOT in apache.snapshots (http://repository.apache.org/snapshots) -> [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/PluginResolutionException
> {noformat}

--
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-180) Multimodule configuration example does not work

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MCHECKSTYLE-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=306835#comment-306835 ] 

Dennis Lundberg commented on MCHECKSTYLE-180:
---------------------------------------------

Well, the buildtools module doesn't need a lot of plugins to build, but I get your point.

I suggest that you follow my earlier suggestion and make the buildtools module an entirely separate project. It would look something like this:

* corporate-parent version 1
  * specifies plugin versions

* buildtools project

  * has corporate-parent:1 as its parent

* corporate-parent version 2

  * specifies plugin versions
  * specifies buildtools version, preferably in a property so that it can be easily overridden
  * adds buildtools as a dependency to Checkstyle plugin in build/pluginManagement

* multi-module-project

  * has corporate-parent:2 as its parent
  * uses Checkstyle plugin in build/plugins

                
> Multimodule configuration example does not work
> -----------------------------------------------
>
>                 Key: MCHECKSTYLE-180
>                 URL: https://jira.codehaus.org/browse/MCHECKSTYLE-180
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.9.1
>         Environment: Maven 3.0.4, Ubuntu 12.04 64bit
>            Reporter: Zlika
>         Attachments: test-buildtools.zip
>
>
> I followed the multimodule example from http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html, but it does not seem to work.
> With the attached test case, when I do "mvn verify" the build fail. It seems that Maven wants to download the "buildtool" module from the local repository (instead of building it), but it cannot find it.
> {noformat}
> mvn verify
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO] 
> [INFO] test-parent
> [INFO] Build tools
> [INFO] test-test
> [INFO]                                                                         
> [INFO] ------------------------------------------------------------------------
> [INFO] Building test-parent 0.1-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-checkstyle-plugin:2.9.1:check (default) @ test-parent ---
> Downloading: http://repository.apache.org/snapshots/testgroup/test-buildtools/0.1-SNAPSHOT/maven-metadata.xml
> Downloading: http://repository.apache.org/snapshots/testgroup/test-buildtools/0.1-SNAPSHOT/test-buildtools-0.1-SNAPSHOT.jar
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] test-parent ....................................... FAILURE [3.345s]
> [INFO] Build tools ....................................... SKIPPED
> [INFO] test-test ......................................... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 3.958s
> [INFO] Finished at: Mon Aug 20 14:39:55 CEST 2012
> [INFO] Final Memory: 6M/15M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:check (default) on project test-parent: Execution default of goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:check failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1 or one of its dependencies could not be resolved: Could not find artifact testgroup:test-buildtools:jar:0.1-SNAPSHOT in apache.snapshots (http://repository.apache.org/snapshots) -> [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/PluginResolutionException
> {noformat}

--
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