You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Manfred Geiler (JIRA)" <ji...@codehaus.org> on 2006/02/09 17:07:47 UTC

[jira] Commented: (MASSEMBLY-11) In a multi-module build, assembly descriptor paths are not project-relative, but erraneously relative to the parent project directory

    [ http://jira.codehaus.org/browse/MASSEMBLY-11?page=comments#action_58251 ] 

Manfred Geiler commented on MASSEMBLY-11:
-----------------------------------------

I have the same problem and hope that this can be fixed soon. In my current project I attached the assembly to the install phase and cannot always be sure, that the user is in the right dir when he calls mvn install.
The base for all relative dir attributes in the assembly descriptor should be based on the ${basedir} of the current project.

I also wonder, why it is not possible to use ${} properties in the descriptor. If this was possible an easy workaround would be to use ${project.build.directory} as directory for instance.


> 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
>      Fix For: 2.1

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