No,
Only using transformers:
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer
">
<resource>META-INF/spring.handlers</resource>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer
">
<resource>META-INF/spring.schemas</resource>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTran
sformer">
<mainClass>somepackage.ClientApp</mainClass>
</transformer>
</transformers>
Vitaliy Morarian
-----Original Message-----
From: Alexander [mailto:[email protected]]
Sent: Tuesday, August 11, 2009 10:14 AM
To: Maven Users List
Subject: Re: Removing signed data from jar via maven-shade-plugin
Does you use *shade *option of this plugin? I mean renaming dependency
names?
2009/8/11 Vitaliy Morarian <[email protected]>
> I'm using maven-shade-plugin to make executable JAR. But, some of
artifacts
> are signed, and this is causes an exception
>
> Exception in thread "main" java.lang.SecurityException: Invalid signature
> file digest for Manifest main attributes
>
>
>
> So, how can I configure plugin for removing of such data? I've tried to
use
> in filters exclude, but it doesn't help. Looks like I missing something
> important
>
> <filter>
>
> <artifact>*:*</artifact>
>
> <excludes>
>
> <exclude>META-INF/eclipse.sf</exclude>
>
> <exclude>META-INF/eclipse.rsa</exclude>
>
> <exclude>META-INF/eclipse.inf</exclude>
>
> </excludes>
>
> </filter>
>
>
>
>
>
>
--
Regards,
Alexander
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]