Skip to content

[java-kotlin] Autobuild sets unnecessary maven.test.skip.exec parameter #22218

Description

@scordio

Description of the issue

Autobuild builds AssertJ via the following command line:

[autobuild] > /home/runner/work/assertj/assertj/./mvnw clean package -f pom.xml -B -V -e -Dfindbugs.skip -Dcheckstyle.skip -Dpmd.skip=true -Dspotbugs.skip -Denforcer.skip -Dmaven.javadoc.skip -DskipTests -Dmaven.test.skip.exec -Dlicense.skip=true -Drat.skip=true -Dspotless.check.skip=true -s /home/runner/.m2/settings.xml -t /home/runner/.m2/toolchains.xml

However, the maven-surefire-plugin reports a warning:

[autobuild] [WARNING]  Parameter 'skipExec' (user property 'maven.test.skip.exec') is deprecated: use skipTests instead

According to the log message and the documentation, skipExec is equivalent to skipTests.

Since skipTests is already part of the command line, setting maven.test.skip.exec could be safely removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions