proguard-maven-plugin issue when using assembly

116 views
Skip to first unread message

dave

unread,
Apr 12, 2010, 11:45:13 AM4/12/10
to pyx4me-users
Hi all,

I'm using proguard-maven-plugin to include the classes of another
bundle in the final output. Using the <assembly> tag the inclusion
works fine and I can find the referenced classes in the out jar.
Though, when loading the same jar through a
java.util.jar.JarInputStream I cannot get the jar manifest. I
inspected the file and found out the the MANIFEST.MF is no more the
first entry (as per ZIP specs), and that's the reason why the
JarInputStream.getManifest() returns null.
Can anyone through some light on that?

Thanks,

Davide

Vlad Skarzhevskyy

unread,
Apr 12, 2010, 12:07:55 PM4/12/10
to pyx4me...@googlegroups.com
I would say that this may be a problem of MavenArchiver
We are using this:
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-archiver</artifactId>
            <version>2.4</version>

Or maybe we are using it in wrong way....

            MavenArchiver archiver = new MavenArchiver();
            archiver.setArchiver(jarArchiver);
            archiver.setOutputFile(archiverFile);
            archive.setAddMavenDescriptor(addMavenDescriptor);

           jarArchiver.addArchivedFileSet(file);
           archiver.createArchive(mavenProject, archive);

Vlad



--
You received this message because you are subscribed to the Google Groups "pyx4me-users" group.
To post to this group, send email to pyx4me...@googlegroups.com.
To unsubscribe from this group, send email to pyx4me-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pyx4me-users?hl=en.


dave

unread,
Apr 13, 2010, 8:22:45 AM4/13/10
to pyx4me-users
Thanks for pointing that out, I see the problem is not in the Proguard
plugin and I have to investigate further.

Regards,

Davide

> > pyx4me-users...@googlegroups.com<pyx4me-users%2Bunsubscribe@google groups.com>

Reply all
Reply to author
Forward
0 new messages