Fork me on GitHub
#other-languages
<
2022-01-12
>
emccue02:01:30

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

emccue02:01:23

{: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"}}}

paulocuneo02:01:55

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 🙂

emccue02:01:24

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

paulocuneo02:01:24

also maven central says jetty-server 11.0.2 has a vulnerability https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34428

emccue02:01:24

noted. regardless i’m about at mvp for this project now though which is exciting

emccue02:01:07

got decent examples for • running junit tests • generating coverage reports with jacoco • using an annotation processor • writing a build program

emccue02:01:48

still TONS of polish to do, but im happy that it works at all