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

Tarik Osman edited comment on MENFORCER-248 at 2/26/16 11:11 AM:
-----------------------------------------------------------------

This issue 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.

edit: I am using maven-assembly-plugin 2.6 with maven-enforcer-plugin 1.4.1


was (Author: tosman):
This issue 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)

Reply via email to