JENKINS .HPI dependencies issue

梦想与她 提交于 2019-12-25 16:29:13

问题


I am creating the .hpi jenkins plugin. The issue i am having is with the external jars, it is not getting picked up by my java code that is running. I am using maven so they are in the .hpi package inside the

web-inf/lib in the .hpi package

I have a menifest.mf file inside /META-INF directory in the .hpi pcakage

with the following

Class-Path: ./lib/car.jar ./lib/plane.jar PluginFirstClassLoader: true

this is what i have in the pom.xml file

''' '''<manifestFile>src/main/resources/custom/MANIFEST.MF</manifestFile> <manifest>
<addClasspath>true</addClasspath> </manifest> <manifestEntries>

but my code gets stuck cause it cannot get to "car.jar "

the code works fine in eclipse cause it is seeing the car, cause i have it set in the dependencies


anything i am missing , or i can check to see if they are getting picked up . Any suggestions ?

来源:https://stackoverflow.com/questions/27826796/jenkins-hpi-dependencies-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!