Skip to content
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

Error occurred attempting to read POM #313

Open
stefan-g opened this issue Jun 27, 2023 · 1 comment
Open

Error occurred attempting to read POM #313

stefan-g opened this issue Jun 27, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@stefan-g
Copy link

I got the following error when the cyclonedxBom task is excecuted. The problem is there are no infos which artifact is affected. It would be nice to have at least a debug info which artifact was loaded.

An error occurred attempting to read POM
org.codehaus.plexus.util.xml.pull.XmlPullParserException: Unknown attribute 'child.scm.url.inherit.append.path' for tag 'scm' (position: START_TAG seen ...d.path="false"\n child.scm.url.inherit.append.path="false">... @48:52)
at org.apache.maven.model.io.xpp3.MavenXpp3Reader.checkUnknownAttribute(MavenXpp3Reader.java:161)
at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseScm(MavenXpp3Reader.java:3743)
at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Reader.java:2200)
at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:3852)
at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:595)
at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:609)
at org.cyclonedx.gradle.MavenHelper.readPom(MavenHelper.java:298)
at org.cyclonedx.gradle.MavenHelper.extractPom(MavenHelper.java:267)
at org.cyclonedx.gradle.CycloneDxTask.convertArtifact(CycloneDxTask.java:320)
at org.cyclonedx.gradle.CycloneDxTask.lambda$null$3(CycloneDxTask.java:166)
at [email protected]/java.lang.Iterable.forEach(Iterable.java:75)
at org.cyclonedx.gradle.CycloneDxTask.lambda$createBom$4(CycloneDxTask.java:156)
at [email protected]/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273)
at [email protected]/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
at [email protected]/java.util.Iterator.forEachRemaining(Iterator.java:133)
at [email protected]/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845)
at [email protected]/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
at [email protected]/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
at [email protected]/java.util.TreeMap$KeySpliterator.forEachRemaining(TreeMap.java:3064)
at [email protected]/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at [email protected]/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at [email protected]/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at [email protected]/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at [email protected]/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at org.cyclonedx.gradle.CycloneDxTask.createBom(CycloneDxTask.java:174)
at [email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at [email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at [email protected]/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at [email protected]/java.lang.reflect.Method.invoke(Method.java:568)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29)
at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:242)

@vvardan007
Copy link

were you able to resolve the issue, could you pls share thee resolution steps

@skhokhlov skhokhlov added the bug Something isn't working label Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants