Skip to content

maven: Support parallel builds #325

@lorenzleutgeb

Description

@lorenzleutgeb

Running mvn with --threads 1C (i.e. one thread per core) produces the following warning:

[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 [REDACTED]
[WARNING] io.github.kobylynskyi:graphql-codegen-maven-plugin:2.0.0
[WARNING] Enable debug to see more precisely which goals are not marked @threadSafe.

Let's get rid of that and enable smooth parallel builds, shall we? I'm happy to take any pointers towards an implementation, but am not sure yet whether I can PR, depending on the complexity of the change.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions