-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
I still get the following error after executing the command with version 2.7.6: #332
Comments
can you provide us a reproducer project, so we can investigate, please? |
Please give this project a try:https://github.com/YunaiV/yudao-cloud.git |
I tried, I can't get the error you're getting: what is your build command? |
The command I use is:‘mvn org.cyclonedx:cyclonedx-maven-plugin:makeAggregateBom -Dfile.encoding=UTF-8 -Dcyclonedx-maven-plugin.version=2.7.6’ |
no problem here, and I can see CycloneDX output containing chinese chars why do you set what is the output of |
Setting '-Dfile.encoding=UTF-8' is the solution I found online to the above error. My maven version is 3.6.3. What command are you using |
I'm using basic Given your running environment, I tested with Maven 3.6.3 and 3.8.7 and got your invalid character on
But using Maven 3.9.1 as I was using by default, I don't get the issue (I don't know precisely why, I'm just sharing what I found for now) Can you confirm that using Maven 3.9.1 avoids the issue? |
After I used maven3.9.1, executing the command was successful. Does this have anything to do with the maven version? Older versions of maven cannot be used |
surprisingly, from our common experience here, yes... Reading the stacktrace, it seems an invalid character is read from POMs that makes the CycloneDX XML writer (from If you don't need the SBOM in XML format, perhaps as a workaround you can try to disable XML output and only keep json: perhaps it won't choke with other Maven versions |
OK, thank you |
The text was updated successfully, but these errors were encountered: