maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Hennick (JIRA)" <>
Subject [jira] [Created] (SUREFIRE-1414) Configuration still considered "same" after Proguard has rewritten the jar
Date Mon, 11 Sep 2017 04:26:00 GMT
Chris Hennick created SUREFIRE-1414:

             Summary: Configuration still considered "same" after Proguard has rewritten the
                 Key: SUREFIRE-1414
             Project: Maven Surefire
          Issue Type: Bug
          Components: Maven Surefire Plugin
    Affects Versions: 2.14.1
         Environment: Ubuntu 14.04.3
            Reporter: Chris Hennick

I run my unit tests for a library twice: once to generate a coverage report, then again after
running Proguard to verify the Proguard settings. When I try to do the latter after the former
in the same script, I get "Skipping execution of surefire because it has already been run
for this configuration". This could be fixed by including checksums of the jar's class files
in the identity checksum of the configuration.

My combined test script, including a workaround, is:

cd betterrandom
# Coverage test
mvn clean install jacoco:prepare-agent test jacoco:report -e
if [ "$STATUS" = 0 ]; then
  if [ "$TRAVIS" = "true" ]; then
    mvn coveralls:report
  rm .surefire-* # Avoid false detection of redundancy
  # Post-Proguard test (verifies Proguard settings)
  mvn package proguard:proguard install test
cd ..
exit "$STATUS"

This message was sent by Atlassian JIRA

View raw message