You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Martin Vehovský (JIRA)" <ji...@apache.org> on 2016/10/08 19:08:20 UTC

[jira] [Comment Edited] (MASSEMBLY-833) Ability to ignore errors about no files to package in assembly

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

Martin Vehovský edited comment on MASSEMBLY-833 at 10/8/16 7:08 PM:
--------------------------------------------------------------------

Hi Karl, thank you very much. 

I've attached the patch. 

One more question if I may, I have added javadoc for the new 'ignoreNoFiles' property, but I didn't know where the user Documentation is. (the one available on http://maven.apache.org/plugins/maven-assembly-plugin/single-mojo.html)

And BTW I think I stumbled on your plugin already, but our use case is a actually little different, we don't have only 'configuration' files but also something let's call it simply 'data' and those can and in most cases are also for other 'application' modules. Imagine one 'application' module handles task scheduling, so other 'application' modules can provide their own 'data' for it, etc.


was (Author: vehovmar):
Hi Karl, thank you very much. 

I've attached the patch. 

One more question if I may, I have added javadoc for the new 'ignoreNoFiles' property, but I didn't know where the user Documentation is. (the one available on http://maven.apache.org/plugins/maven-assembly-plugin/single-mojo.html)

And BTW I think I stumbled on your plugin already, but our use case is a actually little different, we don't have only 'configuration' files but also something let's call is simply 'data' and those can and in most cases are also for other 'application' modules. Imagine one 'application' module handles task scheduling, so other 'application' modules can provide their own 'data' for it, etc.

> Ability to ignore errors about no files to package in assembly
> --------------------------------------------------------------
>
>                 Key: MASSEMBLY-833
>                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-833
>             Project: Maven Assembly Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.6
>            Reporter: Martin Vehovský
>         Attachments: _MASSEMBLY_833__added_ignoreNoFiles_parameter_allowing_not_to_fail_when_there_are_no_files.patch
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> Motivation: Having extremely large multi-module project, some modules lets call them "application" modules provide "configuration" files, and they provide them for different environments. Problem is that not all "application" modules provide "configuration" files for all environments. In case there are no files available for assembly, the single goal ends up with ERROR:
> Failed to
>  create assembly: Error creating assembly archive <assembly_name>: You must set at least one file.
> Available workaround is to specify a property to by default skip the assembly execution and only if there are files for given environment set this property to not skip the given assembly execution.
> However for large number of environments this solution starts to be messy and hard to maintain.
> Do you think that having assembly Parameter "ignoreNoFiles" that will cause to skip the archive creation for cases there are no files to package seems like reasonable solution?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)