Open DiverOfDark opened 5 months ago
Could someone elaborate whether I need to add any further details for this issue to be fixed or to have label for accepting contributions?
possible fix could be changing field variables to local in JibLayerFilterExtension:
Map<PathMatcher, String> pathMatchers = new LinkedHashMap<>();
Map<String, FileEntriesLayer.Builder> newToLayers = new LinkedHashMap<>();
Issue is if it defined in root pom as part of pluginmanagement - apparently there is only one instance of JibLayerFilterExtension across all modules in such case.
Hi, we struggle with the same issue. I've fixed the maven plugin: https://github.com/GoogleContainerTools/jib-extensions/compare/master...nitschSB:jib-extensions:issue%23170
~I don't create a PR. ./CONTRIBUTING.md says~
Open a PR only if the issue is labeled with "Accepting Contributions"
(Created a PR anyway)
Same bug reproduced on jib-maven-plugin:3.4.3 while biuld multimodule project.
[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.4.3:build (default) on project ***: error running extension 'com.google.cloud.tools.jib.maven.extension.layerfilter.JibLayerFilterExtension': extension crashed: null: ConcurrentModificationException -> [Help 1] [ERROR]
Using jib-maven-plugin 3.4.1 with jib-layer-filter-extension-maven 0.3.0 on large multi-module maven project (350 projects, ~50 of them have jib plugin to do jib:build as part of mvn deploy lifecycle). They all share same base image as same jib plugin configuration coming from root pom file.
Whenever I try to build projects in parallel (mvn deploy -T8) - I get these exceptions: