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

2005-12-16 Thread Michael B?ckling (JIRA)
[ http://jira.codehaus.org/browse/MNG-1734?page=comments#action_53554 ] 

Michael Böckling commented on MNG-1734:
---

Well, I solved it by using "../AAH-1-Genius-TpmMonitor/src/extern" as path in 
the descriptor to change back to the correct directory, but that of course 
isn't the optimal solution. Will this issue be fixed?

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

>   Components: maven-assembly-plugin
> Versions: 2.0
>  Environment: WinXP SP2
> Maven 2
> Reporter: Michael Böckling

>
>
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2005-12-15 Thread Travis Carlson (JIRA)
[ http://jira.codehaus.org/browse/MNG-1734?page=comments#action_53535 ] 

Travis Carlson commented on MNG-1734:
-

Actually I think the path is relative to the current working directory (i.e., 
the directory from which the "mvn" command was executed.  This means the 
workaround is to either base your paths on the root and always execute "mvn" 
from the root, OR base your paths on the sub-project (the way they _should_ be) 
and always execute "mvn" from within the sub-project.

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

>   Components: maven-assembly-plugin
> Versions: 2.0
>  Environment: WinXP SP2
> Maven 2
> Reporter: Michael Böckling

>
>
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]