exist icon indicating copy to clipboard operation
exist copied to clipboard

[feature] get rid "parallel execution" warnings

Open dizzzz opened this issue 5 months ago • 5 comments

During parallel builds the following WARNINGs pop up; I'd really get rid of them as is polluting the output:

[WARNING] *****************************************************************
[WARNING] * Your build is requesting parallel execution, but this         *
[WARNING] * project contains the following plugin(s) that have goals not  *
[WARNING] * marked as thread-safe to support parallel execution.          *
[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 Apache Maven.                           *
[WARNING] *****************************************************************
[WARNING] The following plugins are not marked as thread-safe in eXist-db Distributions:
[WARNING]   com.code54.mojo:buildversion-plugin:1.0.3
[WARNING] 
[WARNING] Enable debug to see precisely which goals are not marked as thread-safe.
[WARNING] *****************************************************************

solutions directions:

  1. force me to ignore the messages :-)
  2. find another plugin that does the same buildversion-plugin
  3. re-release the plugin with the minor change ourselves

dizzzz avatar Jul 28 '25 19:07 dizzzz

The plugin https://github.com/code54/buildversion-plugin seems to be no longer maintained. The last release was cut back in 2013!

line-o avatar Jul 28 '25 19:07 line-o

correct

dizzzz avatar Jul 28 '25 19:07 dizzzz

related: https://github.com/code54/buildversion-plugin/issues/8

line-o avatar Jul 28 '25 19:07 line-o

Candidate for replacement (requires Java > 8) https://github.com/git-commit-id/git-commit-id-maven-plugin/blob/master/docs/access-version-info-at-runtime.md

line-o avatar Jul 28 '25 19:07 line-o

I looked into this before a couple of years ago. I considered forking, updating (it's just missing a single annotation), and re-releasing the plugin, but... (a) It's written in Clojure, and I haven't written any Clojure in years, and (b) decompiling it into Java with Fern Flower yielded very much non-idiomatic Java code.

Even studying the de-compiled Java code, the process the plugin follows was much more complicated than I expected. As it is only a warning that is generated I abandoned the effort.

It would be cool if a suitable replacement could be identified. When I looked in the past there was nothing suitable, but maybe things have changed in the meantime?

adamretter avatar Jul 28 '25 20:07 adamretter