You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Nigel Jones (Jira)" <ji...@apache.org> on 2020/07/14 15:14:00 UTC

[jira] [Commented] (MASSEMBLY-938) includeSubModules==false and useAllReactorProjects warning changes behaviour

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

Nigel Jones commented on MASSEMBLY-938:
---------------------------------------

I think this is a bug since the error reports that the additional flag is ignored, yet it appears to change the behaviour.

Whether there is a another bug in terms of why the module files are not included, or whether that is user error is another question

I think that makes sense :)

> includeSubModules==false and useAllReactorProjects warning changes behaviour
> ----------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-938
>                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-938
>             Project: Maven Assembly Plugin
>          Issue Type: Bug
>          Components: moduleSet
>    Affects Versions: 3.3.0
>         Environment: macOS, maven 3.6.3
>            Reporter: Nigel Jones
>            Priority: Major
>
> The following moduleset fails to include the license and readme and reports '[WARNING] The following patterns were never triggered in this artifact inclusion filter: o 'org.odpi.egeria:egeria:*'
>  <!-- LICENSE & NOTICE and truststore from top level - this is a custom artifact -->
>  <moduleSet>
>  <useAllReactorProjects>true</useAllReactorProjects>
>  <!--includeSubModules>false</includeSubModules-->
>  <includes>
>  <!-- Full qualification here is groupId:artifactId:packaging:classifier:version -->
>  <!-- This retrieves our extra 'root' pom we use for carrying non-java extras needed -->
>  <include>org.odpi.egeria:egeria:*</include>
>  </includes>
>  <sources>
>  <includeModuleDirectory>false</includeModuleDirectory>
>  <fileSets>
>  <fileSet>
>  <outputDirectory>/</outputDirectory>
>  <includes>
>  <include>NOTICE</include>
>  <include>LICENSE</include>
>  <include>truststore.p12</include>
>  </includes>
>  </fileSet>
>  </fileSets>
>  </sources>
>  </moduleSet>
> Uncommenting '<includeSubModules>false</includeSubModules>' results in a warning :
> 15:48:20,349 [WARNING] includeSubModules == false is incompatible with useAllReactorProjects. Ignoring.
> To refactor, remove the <includeSubModules/> flag, and use the <includes/> and <excludes/> sections to fine-tune the modules included.
> However in this case there isn't a warning of a missing module AND the license/readme correctly gets included
> Is this a bug? It appears to be, since the warning says 'Ignoring' so the result should be the same as if it wasn't specified?
> In this particular case the module being referenced in this section is the top level pom (the ultimate parent of the module containing the assembly)
> originally posted thread to: https://lists.apache.org/thread.html/rddcad12fa9403fe86c6d0c378dc91b3236eea5df1ce85bc27319b9bf%40%3Cusers.maven.apache.org%3E



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