jarjar-maven-plugin icon indicating copy to clipboard operation
jarjar-maven-plugin copied to clipboard

Already processed - even if is new source jar generated

Open wjtk opened this issue 11 years ago • 2 comments

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>

wjtk avatar Dec 17 '13 12:12 wjtk

Could do something by checking file modification times - btw, pull requests are welcome if you feel like fixing this yourself.

mcculls avatar Jan 06 '14 14:01 mcculls

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.

wjtk avatar Jan 07 '14 11:01 wjtk