[ 
http://jira.codehaus.org/browse/MSHADE-67?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yoann Yonnet updated MSHADE-67:
-------------------------------

    Attachment: patch-maven-shade-plugin.txt

Hello,

I make a maven aggregator project with two modules.
The first module is a dependency of the second.
The first module is build with the install goal.
The second with the shade plugin during the package phase.
The first module build run successfully and install resulting jar file in the 
maven local repository.
The second module build fail with this error : error in opening zip 
/home/.../target/classes.
It's due to the shade plugin whose tries to reference first module classes from 
target/classes repository instead of the jar file previously build.
Therefore, it seems that the shade plugin doesn't work with a maven 
multimodules project.


I manage to build my maven aggregator project by applying the attached patch 
(patch-maven-shade-plugin.txt) on the class ShadeMojo.java

> Embedded error: error in opening zip on directory
> -------------------------------------------------
>
>                 Key: MSHADE-67
>                 URL: http://jira.codehaus.org/browse/MSHADE-67
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.2.2
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
> Java version: 1.6.0_13
> Java home: /software/java/jdk1.6.0_13-x86_64_sun/jre
> Default locale: de_AT, platform encoding: UTF-8
> OS name: "linux" version: "2.6.9-67.ellargesmp" arch: "amd64" Family: "unix"
>            Reporter: Max Berger
>         Attachments: patch-maven-shade-plugin.txt
>
>
> for whatever reason, the shade plugin tries to add my target/classes 
> directory to the list of zip files:
> Embedded error: error in opening zip 
> file/home/.../workspace/project/target/classes
> which fails because it is a directory. Instead, it should use the normal file 
> inclusion.
> This issue may or may not be related to #MSHADE-60 and #MSHADE-65

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to