[maven-proguard-plugin] Problem with attachArtifactClassifier or appendClassifier

56 views
Skip to first unread message

Adrian

unread,
Jan 22, 2010, 3:39:10 AM1/22/10
to pyx4me-users
Hi,

I'm using the plugin to obfuscate some jar-files, but I also want to
append a classifier "obfuscated".
But whatever I do, it doesn't append anything.

Am I doing something wrong or is this functionality broken?

My configuration looks like this:

<profile>
<id>obfuscate</id>
<build>
<plugins>
<plugin>
<groupId>com.pyx4me</groupId>
<artifactId>proguard-maven-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>proguard</goal>
</goals>
</execution>
</executions>
<configuration>
<appendClassifier>true</appendClassifier>
<attachArtifactClassifier>obfuscated</attachArtifactClassifier>
<options>
[...]
</options>
<libs>
<lib>${java.home}/lib/rt.jar</lib>
<lib>${java.home}/lib/jsse.jar</lib>
<lib>${java.home}/lib/jce.jar</lib>
</libs>
</configuration>
</plugin>
</plugins>
</build>
</profile>

Vlad Skarzhevskyy

unread,
Jan 22, 2010, 9:31:41 AM1/22/10
to pyx4me...@googlegroups.com
To the best of my knowledge it was working just two days ago when we made this

   http://repository.pyx4j.com/maven2-release/org/microemu/microemu-cldc/2.0.4/microemu-cldc-2.0.4-4applet.jar

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.


Adrian

unread,
Jan 22, 2010, 9:55:51 AM1/22/10
to pyx4me-users
Thanks Vlad,

after having a look at your pom's I figured out that I had to set the
"attach" parameter. This wasn't obviously from the documentation and I
still do not know what this setting is exactly for.

So my configuration looks like this now and is working:

<profile>
<id>obfuscate</id>
<build>
<plugins>
<plugin>
<groupId>com.pyx4me</
groupId>
<artifactId>proguard-
maven-plugin</artifactId>
<executions>
<execution>

<phase>package</phase>

<goals>

<goal>proguard</goal>
</
goals>
</execution>
</executions>
<configuration>

<attach>true</
attach>



<attachArtifactClassifier>obfuscated</attachArtifactClassifier>
<options>

[...]
</options>
<libs>
<lib>$
{java.home}/lib/rt.jar</lib>
<lib>$
{java.home}/lib/jsse.jar</lib>
<lib>$
{java.home}/lib/jce.jar</lib>
</libs>
</configuration>
</plugin>
</plugins>
</build>
</profile>

Thanks, Adrian


On 22 Jan., 15:31, Vlad Skarzhevskyy <skarzhevs...@gmail.com> wrote:
> To the best of my knowledge it was working just two days ago when we made
> this
>

> http://repository.pyx4j.com/maven2-release/org/microemu/microemu-cldc...
> microemu-cldc-2.0.4-4applet.jar<http://repository.pyx4j.com/maven2-release/org/microemu/microemu-cldc...>

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

Reply all
Reply to author
Forward
0 new messages