jarjar-maven-plugin
jarjar-maven-plugin copied to clipboard
Already processed - even if is new source jar generated
If I call "mvn package" when original-xxxx.jar already exists, jarjar do nothing and exits with message "Already processed".
That's not nice, because when I change code and call "mvn package", then new generated jar is not changed by jarjar. It sees old original-xxx.jar and exits.
Everything is ok, when calling "mvn clean package", but I think that this behaviour is misleading.
My jarjar configuration:
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>jarjar-maven-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jarjar</goal>
</goals>
<configuration>
<includes>
<include>cglib:cglib-nodep</include>
</includes>
<rules>
<rule>
<pattern>net.sf.cglib.**</pattern>
<result>pl.wkr.fluentrule.internal.cglib.@1</result>
</rule>
<keep>
<pattern>pl.wkr.fluentrule.**</pattern>
</keep>
</rules>
</configuration>
</execution>
</executions>
</plugin>
Could do something by checking file modification times - btw, pull requests are welcome if you feel like fixing this yourself.
I found 'overwrite' option just when I looked at plugin code. Of course issue still remains. Maybe later(later) I will try to make pull request.