[prev in list] [next in list] [prev in thread] [next in thread]
List: maven-user
Subject: MavenXpp3Reader.read: difference between Maven 3.8.6 and 4.0.0-alpha-3
From: Mirko Friedenhagen <mfriedenhagen () gmx ! de>
Date: 2022-12-17 19:24:59
Message-ID: 3A7A83E8-DE65-4DBB-8DDB-CFC42CAB39DF () gmx ! de
[Download RAW message or body]
Hello,
please see https://github.com/mfriedenhagen/cyclonedx-maven-plugin-maven4-logging for \
an example of the problem.
When running `mvn -V -q clean cyclonedx:makeBom` with Maven 4 an error message is \
shown while with Maven 3 the error path is not reached.
It looks like MavenXpp3Reader.read behaves differently.
The error is understandable, the cyclonedx plugin does inspect the embedded pom.xml \
beneath META-INF/maven/ and that one for \
net.logstash.logback:logstash-logback-encoder:jar:6.6 is not a valid POM (there is an \
element <goals> in a plugin but outside of an execution, see \
https://github.com/logfellow/logstash-logback-encoder/blob/logstash-logback-encoder-6.6/pom.xml#L232).
https://github.com/CycloneDX/cyclonedx-maven-plugin/blob/59e71a6b74b07f65d9fa1046ff7ad881dbd6c96f/src/main/java/org/cyclonedx/maven/BaseCycloneDxMojo.java#L759-L759
Is Maven 4 stricter while parsing XML?
Best Regards
Mirko
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic