Very lost - can anyone see why the top one works, but the bottom one would fail with
Error: Unable to initialize main class some.project.DoThing
Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/util/component/LifeCycle
{:mvn/repos {"jitpack" {:url ""}}
:paths ["target/src"]
:deps {org.eclipse.jetty/jetty-server {:mvn/version "11.0.2"}
org.eclipse.jetty/jetty-servlet {:mvn/version "11.0.2"}
org.slf4j/slf4j-simple {:mvn/version "1.8.0-beta4"}
dev.mccue/rosie {:mvn/version "0.0.5"}
dev.mccue/regex-router {:mvn/version "0.0.3"}
org.apache.commons/commons-text {:mvn/version "1.9"}}
:aliases {:compile {:extra-deps {org.immutables/value {:mvn/version "2.8.2"}}}
:build {:extra-paths []
:extra-deps {org.jacoco/org.jacoco.agent {:mvn/version "0.8.7"}
org.jacoco/org.jacoco.report {:mvn/version "0.8.7"}
info.picocli/picocli {:mvn/version "4.6.2"}}} Sorry if I'm pointing something obvious, it seems org/eclipse/jetty/util/component/LifeCycle class is missing in classpath, would have guess its present in jetty-util-11.0.2.jar lib, it seems its not š
i figured it out - it was very silly. I was getting the classpath with a newline at the end so ā¦\n not ⦠that apparently makes all the difference for the last dependency in the list which was jetty-util
also maven central says jetty-server 11.0.2 has a vulnerability https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34428
noted. regardless iām about at mvp for this project now though which is exciting
got decent examples for ⢠running junit tests ⢠generating coverage reports with jacoco ⢠using an annotation processor ⢠writing a build program
still TONS of polish to do, but im happy that it works at all