You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tarik Osman (JIRA)" <ji...@apache.org> on 2016/02/26 12:10:18 UTC

[jira] [Commented] (MENFORCER-248) Upgrading maven-enforcer-plugin to 1.4.1 breaks maven-assembly-plugin

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

Tarik Osman commented on MENFORCER-248:
---------------------------------------

This issue only seems to be limited to pom projects. A workaround which worked for me was, to include the enforcer plugin in the bundled jar, war etc. projects, but not to the pom assembly project. Additionally I have jar projects which are released as assembly and don’t cause any problems.

> Upgrading maven-enforcer-plugin to 1.4.1 breaks maven-assembly-plugin
> ---------------------------------------------------------------------
>
>                 Key: MENFORCER-248
>                 URL: https://issues.apache.org/jira/browse/MENFORCER-248
>             Project: Maven Enforcer Plugin
>          Issue Type: Bug
>          Components: Plugin
>            Reporter: Blazej Checinski
>             Fix For: 1.4.1
>
>         Attachments: extjars.xml, pom.xml
>
>
> After upgrading m-e-p from 1.4 to 1.4.1 the maven-assembly-plugin generates the following error:
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.4:single (assemble) on project extjars: Execution assemble of goal org.apache.maven.plugins:maven-assembly-plugin:2.4:single failed. NullPointerException -> [Help 1]
> Downgrading to m-e-p 1.4 makes the assembly work again.
> Sample pom & assembly that expose the error attached.
> When called via:
> mvn -Dplugins.maven-enforcer-plugin.version=1.4
> a zip file is generated as expected, when called via
> mvn -Dplugins.maven-enforcer-plugin.version=1.4.1
> (or without argument) you will get the NPE.



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