maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allan Ramirez (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (MASSEMBLY-11) In a multi-module build, assembly descriptor paths are not project-relative, but erraneously relative to the parent project directory
Date Mon, 06 Mar 2006 03:05:15 GMT
     [ http://jira.codehaus.org/browse/MASSEMBLY-11?page=all ]
     
Allan Ramirez closed MASSEMBLY-11:
----------------------------------

    Resolution: Fixed

Fixed in SVN, usage of expressions are now allowed in the assembly descriptor. 

> In a multi-module build, assembly descriptor paths are not project-relative, but erraneously
relative to the parent project directory
> -------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: MASSEMBLY-11
>          URL: http://jira.codehaus.org/browse/MASSEMBLY-11
>      Project: Maven 2.x Assembly Plugin
>         Type: Bug

>  Environment: WinXP SP2
> Maven 2
>     Reporter: Michael Böckling
>     Assignee: Allan Ramirez
>      Fix For: 2.1

>
> Original Estimate: 4 hours
>         Remaining: 4 hours
>
> When I try to perform a multi-module build executed in a build-only (packaging=pom) parent
project ("AAH-1-Genius-Build"), assembly fails. I defined an assembly:assembly execution bound
to the "install" phase in the "AAH-1-Genius-TpmMonitor" sub-project using my own descriptor.
Maven finds the descriptor, but the (relative) paths in the descriptor are not expanded against
the "AAH-1-Genius-TpmMonitor" sub-project, but against the "AAH-1-Genius-Build" parent-project,
which of course stops the build.
> The last line of the error log below shouldnt be "C:\DEVELOPMENT\Workspaces\Standard\AAH-1-Genius-Build\src\extern",
it should be "C:\DEVELOPMENT\Workspaces\Standard\AAH-1-Genius-TpmMonitor\src\extern"!
> I also tried using ${basedir} and such, but unfortunately those variables don't get expanded.
I also tried activating "includeBaseDirectory" in the descriptor, hoping it would prepend
the current project path to the descriptor paths (I had to guess since its not documented...),
but no luck.
> Beside the obvious bug concerning project directory, I really think maven vars should
be expanded.
> Error log:
> [INFO] [assembly:assembly {execution: prepare-assembly}]
> [INFO] Expanding: C:\DEVELOPMENT\Workspaces\Standard\AAH-1-Genius-Build\..\AAH-1
> -Genius-BusinessLib\target\aah-genius-business-lib-1.0-SNAPSHOT.jar into C:\DEVE
> LOPMENT\Workspaces\Standard\AAH-1-Genius-Build\..\AAH-1-Genius-TpmMonitor\target
> \assembly\work\aah-genius-business-lib-1.0-SNAPSHOT
> [INFO] Expanding: C:\DEVELOPMENT\Workspaces\Standard\AAH-1-Genius-Build\..\AAH-1
> -Genius-MappingLib\target\aah-genius-mapping-lib-1.0-SNAPSHOT.jar into C:\DEVELO
> PMENT\Workspaces\Standard\AAH-1-Genius-Build\..\AAH-1-Genius-TpmMonitor\target\a
> ssembly\work\aah-genius-mapping-lib-1.0-SNAPSHOT
> [INFO] -------------------------------------------------------------------------
> ---
> [ERROR] BUILD ERROR
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Error creating assembly
> Embedded error: C:\DEVELOPMENT\Workspaces\Standard\AAH-1-Genius-Build\src\extern
>  isn't a directory.
> [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


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


Mime
View raw message