You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "sebbaz+ch (JIRA)" <ji...@codehaus.org> on 2011/09/01 13:00:32 UTC

[jira] Created: (MCHECKSTYLE-164) Multimodule Configuration example does not show how to configure build-tools pom

Multimodule Configuration example does not show how to configure build-tools pom
--------------------------------------------------------------------------------

                 Key: MCHECKSTYLE-164
                 URL: https://jira.codehaus.org/browse/MCHECKSTYLE-164
             Project: Maven 2.x Checkstyle Plugin
          Issue Type: Bug
         Environment: http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html
            Reporter: sebbaz+ch


It would be helpful if the page documented how to configure the build-tools pom.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (MCHECKSTYLE-164) Multimodule Configuration example does not show how to configure build-tools pom

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

Oliver B. Fischer edited comment on MCHECKSTYLE-164 at 9/22/11 9:46 AM:
------------------------------------------------------------------------

Hi sebbaz,

simply take a minimal {{pom.xml}} like this:

{noformat}
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
                             http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>com.company</groupId>
        <artifactId>parent</artifactId>
        <version>5.4.5</version>
        <relativePath>..</relativePath>
    </parent>

    <groupId>com.company</groupId>
    <artifactId>checkstyle</artifactId>
    <version>5.4.5</version>
    <name>Checkstyle Configuration</name>
</project>
{noformat}

I will create a jar file containing your checkstyle configuration. But you are right, it would be helpfull to have such an example.

      was (Author: oliver.b.fischer):
    Hi sebbaz,

simply take a minimal {{pom.xml}} like this:

{noformat}
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>com.company</groupId>
        <artifactId>parent</artifactId>
        <version>5.4.5</version>
        <relativePath>..</relativePath>
    </parent>

    <groupId>com.company</groupId>
    <artifactId>checkstyle</artifactId>
    <version>5.4.5</version>
    <name>Checkstyle Configuration</name>
</project>
{noformat}

I will create a jar file containing your checkstyle configuration. But you are right, it would be helpfull to have such an example.
  
> Multimodule Configuration example does not show how to configure build-tools pom
> --------------------------------------------------------------------------------
>
>                 Key: MCHECKSTYLE-164
>                 URL: https://jira.codehaus.org/browse/MCHECKSTYLE-164
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>         Environment: http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html
>            Reporter: sebbaz+ch
>
> It would be helpful if the page documented how to configure the build-tools pom.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MCHECKSTYLE-164) Multimodule Configuration example does not show how to configure build-tools pom

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

Oliver B. Fischer commented on MCHECKSTYLE-164:
-----------------------------------------------

Hi sebbaz,

simply take a minimal {{pom.xml}} like this:

{noformat}
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>com.company</groupId>
        <artifactId>parent</artifactId>
        <version>5.4.5</version>
        <relativePath>..</relativePath>
    </parent>

    <groupId>com.company</groupId>
    <artifactId>checkstyle</artifactId>
    <version>5.4.5</version>
    <name>Checkstyle Configuration</name>
</project>
{noformat}

I will create a jar file containing your checkstyle configuration. But you are right, it would be helpfull to have such an example.

> Multimodule Configuration example does not show how to configure build-tools pom
> --------------------------------------------------------------------------------
>
>                 Key: MCHECKSTYLE-164
>                 URL: https://jira.codehaus.org/browse/MCHECKSTYLE-164
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>         Environment: http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html
>            Reporter: sebbaz+ch
>
> It would be helpful if the page documented how to configure the build-tools pom.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MCHECKSTYLE-164) Multimodule Configuration example does not show how to configure build-tools pom

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

Zlika commented on MCHECKSTYLE-164:
-----------------------------------

The multimodule configuration example does not work for me when I do "mvn verify". 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}
                
> Multimodule Configuration example does not show how to configure build-tools pom
> --------------------------------------------------------------------------------
>
>                 Key: MCHECKSTYLE-164
>                 URL: https://jira.codehaus.org/browse/MCHECKSTYLE-164
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>         Environment: http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html
>            Reporter: sebbaz+ch
>            Assignee: Dennis Lundberg
>             Fix For: 2.9
>
>
> It would be helpful if the page documented how to configure the build-tools pom.

--
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-164) Multimodule Configuration example does not show how to configure build-tools pom

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

Dennis Lundberg commented on MCHECKSTYLE-164:
---------------------------------------------

Zlika, please open a new issue.
This one is fixed and closed.
                
> Multimodule Configuration example does not show how to configure build-tools pom
> --------------------------------------------------------------------------------
>
>                 Key: MCHECKSTYLE-164
>                 URL: https://jira.codehaus.org/browse/MCHECKSTYLE-164
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>         Environment: http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html
>            Reporter: sebbaz+ch
>            Assignee: Dennis Lundberg
>             Fix For: 2.9
>
>
> It would be helpful if the page documented how to configure the build-tools pom.

--
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-164) Multimodule Configuration example does not show how to configure build-tools pom

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

Dennis Lundberg closed MCHECKSTYLE-164.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.9
         Assignee: Dennis Lundberg

Fixed in r1239593.
                
> Multimodule Configuration example does not show how to configure build-tools pom
> --------------------------------------------------------------------------------
>
>                 Key: MCHECKSTYLE-164
>                 URL: https://jira.codehaus.org/browse/MCHECKSTYLE-164
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>         Environment: http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html
>            Reporter: sebbaz+ch
>            Assignee: Dennis Lundberg
>             Fix For: 2.9
>
>
> It would be helpful if the page documented how to configure the build-tools pom.

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