Skip to content

Mojo not marked as thread-safe #99

@abentele

Description

@abentele

Describe the bug

When using parallel execution of maven, this message is printed:

[WARNING] *****************************************************************
[WARNING] * Your build is requesting parallel execution, but project      *
[WARNING] * contains the following plugin(s) that have goals not marked   *
[WARNING] * as @threadSafe to support parallel building.                  *
[WARNING] * While this /may/ work fine, please look for plugin updates    *
[WARNING] * and/or request plugins be made thread-safe.                   *
[WARNING] * If reporting an issue, report it against the plugin in        *
[WARNING] * question, not against maven-core                              *
[WARNING] *****************************************************************
[WARNING] The following plugins are not marked @threadSafe in [...]:
[WARNING] io.openapitools.swagger:swagger-maven-plugin:2.1.6
[WARNING] Enable debug to see more precisely which goals are not marked @threadSafe.
[WARNING] ***************************************************************

To Reproduce

use command mvn clean install -T2C to build a multi-module project.

Expected behavior

If the mojo is thread-safe it should be marked as thread-safe (via org.apache.maven.plugins.annotations.Mojo#threadSafe which defaults to false).

Additional context

Nothing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @abentele

        Issue actions

          Mojo not marked as thread-safe · Issue #99 · openapi-tools/swagger-maven-plugin