maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (Jira)" <j...@apache.org>
Subject [jira] [Commented] (MASSEMBLY-930) Assembly FileSet and Files do no consistently handle -f directory location
Date Thu, 05 Mar 2020 08:40:00 GMT

    [ https://issues.apache.org/jira/browse/MASSEMBLY-930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17051900#comment-17051900
] 

Michael Osipov commented on MASSEMBLY-930:
------------------------------------------

The attached goal does not exist anymore. Retry with 3.2.0 and the single goal.

> Assembly FileSet and Files do no consistently handle -f directory location
> --------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-930
>                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-930
>             Project: Maven Assembly Plugin
>          Issue Type: Task
>         Environment: * macOS (development machine) using maven 3.6.0
> * Unbuntu (build server)
>            Reporter: Jody Garnett
>            Priority: Major
>
> We have observed fileSet and file handling of relative paths in an inconsistent fashion
when using mvn -f command line option to run a pom.xml file in a subdirectory.
> {panel:title=current directory}
> cd src
> mvn assembly:attached
> {panel}
> {panel:title=subdirectory location}
> mvn -f src/pom.xml assembly:attached
> {panel}
> Inconsistent behaviour:
>  * fileSet directory - path based on location of pom.xml
>     Works with both current directory, or subdirectory location, approach above.
>  * file source - path based on where mvn executable is run, ignoring -f subdirectory
location
>    
>    Impossible to define assembly independently of how maven is run (choose one of current
directory or subdirectory approach).
> For the following example of file release/extensions/LICENSE.txt:
> {code:xml}
>     <file>
>       <source>release/extensions/LICENSE.txt</source>
>       <outputDirectory></outputDirectory>
>       <destName>LICENSE-LGPL.txt</destName>
>     </file>
> {code}
> Running with "cd src" "mvn assembly:attached" succeeds:
> * src/release/extensions/LICENSE.txt
> Running from the root folder with "mvn -f src/pom.xml assembly:attached" fails with:
> * release/extensions/LICENSE.txt



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message