You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Wim Deblauwe (JIRA)" <ji...@codehaus.org> on 2005/11/18 14:53:06 UTC

[jira] Created: (MNG-1619) bug using in a flat layout

bug using <modules/> in a flat layout
-------------------------------------

         Key: MNG-1619
         URL: http://jira.codehaus.org/browse/MNG-1619
     Project: Maven 2
        Type: Bug
    Versions: 2.0    
    Reporter: Wim Deblauwe
 Attachments: modules.zip

I have a problem using <modules/> and I don't know if it is a bug or maybe I'm doing something wrong:

This is my structure (note that I use a master pom that defines my slightly different structure):

+ modules
   + utils
      + utils-lang
           + pom.xml
           + src
                + main
                + test
      + utils-logging
           + pom.xml
           + src
                + main
                + test

The utils-lang module depends on the utils-logging module, so I've put in the pom.xml of utils-lang:

<modules>
     <module>../utils-logging</module>
  </modules>

When I then run 'mvn compile' from the utils-lang dir, I get the following output:

[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Utils Logging Module
[INFO]   Utils Lang Module
[INFO] ----------------------------------------------------------------------------
[INFO] Building Utils Logging Module
[INFO]    task-segment: [compile]
[INFO] ----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] ----------------------------------------------------------------------------
[INFO] Building Utils Lang Module
[INFO]    task-segment: [compile]
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO]
[INFO]
[INFO] ----------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ----------------------------------------------------------------------------
[INFO] Utils Logging Module ................................... SUCCESS [1.266s]
[INFO] Utils Lang Module ...................................... SUCCESS [0.000s]
[INFO] ----------------------------------------------------------------------------
[INFO] ----------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ----------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Thu Nov 17 08:14:31 CET 2005
[INFO] Final Memory: 2M/5M
[INFO] ----------------------------------------------------------------------------


So the module i'm trying to compile does not get build. The module that I depend on, do gets build. 

I have attached a zip file showing the structure.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-1619) bug using in a flat layout

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1619?page=all ]
     
Brett Porter closed MNG-1619:
-----------------------------

     Assign To: Brett Porter
    Resolution: Won't Fix

this layout wasn't supported, and the error is cleared up in 2.0.1 (packaging JAR cannot have modules).

The module should be replaced with the dependency that you have commented out.

Your parent should have the modules definitions, and the compile/install run from there.

> bug using <modules/> in a flat layout
> -------------------------------------
>
>          Key: MNG-1619
>          URL: http://jira.codehaus.org/browse/MNG-1619
>      Project: Maven 2
>         Type: Bug
>     Versions: 2.0
>     Reporter: Wim Deblauwe
>     Assignee: Brett Porter
>  Attachments: modules.zip
>
>
> I have a problem using <modules/> and I don't know if it is a bug or maybe I'm doing something wrong:
> This is my structure (note that I use a master pom that defines my slightly different structure):
> + modules
>    + utils
>       + utils-lang
>            + pom.xml
>            + src
>                 + main
>                 + test
>       + utils-logging
>            + pom.xml
>            + src
>                 + main
>                 + test
> The utils-lang module depends on the utils-logging module, so I've put in the pom.xml of utils-lang:
> <modules>
>      <module>../utils-logging</module>
>   </modules>
> When I then run 'mvn compile' from the utils-lang dir, I get the following output:
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Utils Logging Module
> [INFO]   Utils Lang Module
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building Utils Logging Module
> [INFO]    task-segment: [compile]
> [INFO] ----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building Utils Lang Module
> [INFO]    task-segment: [compile]
> [INFO] ----------------------------------------------------------------------------
> [INFO] No goals needed for project - skipping
> [INFO]
> [INFO]
> [INFO] ----------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] ----------------------------------------------------------------------------
> [INFO] Utils Logging Module ................................... SUCCESS [1.266s]
> [INFO] Utils Lang Module ...................................... SUCCESS [0.000s]
> [INFO] ----------------------------------------------------------------------------
> [INFO] ----------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Thu Nov 17 08:14:31 CET 2005
> [INFO] Final Memory: 2M/5M
> [INFO] ----------------------------------------------------------------------------
> So the module i'm trying to compile does not get build. The module that I depend on, do gets build. 
> I have attached a zip file showing the structure.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org