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

NoSuchMethodError org.codehaus.plexus.util.xml.pull.MXParser.<init>(org.codehaus.plexus.util.xml.pull.EntityReplacementMap) #246

Open
devinrsmith opened this issue Dec 12, 2022 · 0 comments

Comments

@devinrsmith
Copy link

I'm unable to use this plugin, as it errors out:

$ ./gradlew server-jetty-app:cyclonedxBom -info

...

CycloneDX: Parameters
------------------------------------------------------------------------
schemaVersion          : 1.4
includeBomSerialNumber : true
includeConfigs         : [runtimeClasspath]
skipConfigs            : [compileClasspath, testCompileClasspath]
destination            : /home/devin/dev/deephaven/deephaven-core/server/jetty-app/build/reports
outputName             : CycloneDX-Sbom
------------------------------------------------------------------------
CycloneDX: Resolving Dependencies
Resource missing. [HTTP GET: https://repo.maven.apache.org/maven2/io/deephaven/server-jetty/0.20.0/server-jetty-0.20.0.pom]
Unable to resolve POM for io.deephaven:server-jetty:0.20.0: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':server-jetty-app:detachedConfiguration1'.
Resource missing. [HTTP GET: https://repo.maven.apache.org/maven2/io/deephaven/log-to-slf4j/0.20.0/log-to-slf4j-0.20.0.pom]
Unable to resolve POM for io.deephaven:log-to-slf4j:0.20.0: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':serv
er-jetty-app:detachedConfiguration2'.
Resource missing. [HTTP GET: https://repo.maven.apache.org/maven2/io/deephaven/logback-print-stream-globals/0.20.0/logback-print-stream-globals-0.20.0.pom]
Unable to resolve POM for io.deephaven:logback-print-stream-globals:0.20.0: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for conf
iguration ':server-jetty-app:detachedConfiguration3'.
Resource missing. [HTTP GET: https://repo.maven.apache.org/maven2/io/deephaven/logback-logbuffer/0.20.0/logback-logbuffer-0.20.0.pom]
Unable to resolve POM for io.deephaven:logback-logbuffer:0.20.0: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration '
:server-jetty-app:detachedConfiguration4'.

It looks like it's trying to resolve local projects as if they were remote.

For reference, the dependencies of this project looks like:

dependencies {
    implementation project(':server-jetty')

    runtimeOnly project(':log-to-slf4j')
    runtimeOnly project(':logback-print-stream-globals')
    runtimeOnly project(':logback-logbuffer')
}

There's a potentially relevant error complaining about NoSuchMethod:

$ ./gradlew server-jetty-app:cyclonedxBom --stacktrace

...

java.lang.NoSuchMethodError: 'void org.codehaus.plexus.util.xml.pull.MXParser.<init>(org.codehaus.plexus.util.xml.pull.EntityReplacementMap)'
        at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:590)
        at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:609)
        at org.cyclonedx.gradle.MavenHelper.readPom(MavenHelper.java:312)
        at org.cyclonedx.gradle.MavenHelper.extractPom(MavenHelper.java:274)
        at org.cyclonedx.gradle.CycloneDxTask.convertArtifact(CycloneDxTask.java:486)
        at org.cyclonedx.gradle.CycloneDxTask.lambda$null$3(CycloneDxTask.java:296)
        at org.cyclonedx.gradle.CycloneDxTask.lambda$createBom$4(CycloneDxTask.java:286)
        at org.cyclonedx.gradle.CycloneDxTask.createBom(CycloneDxTask.java:245)

For reference, this is the branch I'm working against https://github.com/devinrsmith/deephaven-core/tree/sbom-cyclonedx.

I'm happy to iterate or provide further debugging information.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant