-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic element 'path' must not contain child elements #4253
Comments
Weird. I cannot reproduce it. I've tested on Linux with Maven 3.8.3, 3.8.6, and 3.9.7, and Jib 3.3.2 and 3.4.2. |
Maybe the stacktrace can give you a chance of an educated guess... |
Environment:
Description of the issue:
The parsing of the pom configuration seems to depend on some "unexpected feature" in maven.
Using <path> as both a flat element and a parent element seems to not work properly.
Using a single <path> with children breaks the build with error message
Basic element 'path' must not contain child elements
By just adding a leading flat <path> element the problem goes away and all runs fine.
For examples of the failing and working setups see below.
Expected behavior:
The plugin builds the deliverable containing the stated file.
Steps to reproduce:
Use the configuration stated below in a standard jib build.
jib-maven-plugin
Configuration:Log output:
[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.3.2:build (default-cli) on project my-nifty-project: Unable to parse configuration of mojo com.google.cloud.tools:jib-maven-plugin:3.3.2:build for parameter path: Basic element 'path' must not contain child elements -> [Help 1]
Additional Information:
There is a workaround possible. By adding a flat <path> element the issue does not surface.
The text was updated successfully, but these errors were encountered: