I think it's because you put the dependancy in the dependancy management section
I think you need a raw dependencies section https://github.com/jenkinsci/lighthouse-report-plugin/blob/master/pom.xml#L43 Gavin On Wed., Sep. 22, 2021, 5:22 a.m. t4k30ff, <[email protected]> wrote: > Hello, > > Since i am new to plugin-development (and Jenkins as well) my > knowledge is not that great so it would be great if somebody helps me out. > > I am programming with eclipse and since i want to track the agents of > pipeline-builds i need to implement the GraphListener interface in one of > my classes. In order to do that - at least in my understanding - i need to > add the workflow-api plugin as a dependency in maven. > So i did that but neither eclipse nor maven would know the packages. (At > least i assume this but i can't be shure because nothing is happening). > > I already tried things from this tutorial > <https://intellipaat.com/community/6786/how-to-add-local-jar-files-to-a-maven-project> > (adding the jar manually) but nothing worked so far. > > Since i had some complications regarding setting up my eclipse project i > have the .m2/settings.xml from this tutorial > <https://www.velotio.com/engineering-blog/jenkins-plugin-development>. So > the jar file for the requested dependency is already on my pc. > > So in the end, everytime i do a *mvn compile* i get a *package does not > exist* and a *cannot find symbol* error. > > I attached my GraphListener implementation, pom.xml, settings.xml and a > debug-log of a *mvn comlie* command if needed. > > Thanks for your help > > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/e0798036-05a7-48bb-9039-80d05604fd3en%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-dev/e0798036-05a7-48bb-9039-80d05604fd3en%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAG%3D_Duty8BAXFojBeZZQSdX%2BVT72sxXwpLDKGoKLCtjVMJtn9w%40mail.gmail.com.
