spring-core dependency version error with a Jenkins Plugin

后端 未结 2 1620
孤独总比滥情好
孤独总比滥情好 2021-01-21 02:11

I\'m trying to make a Jenkins plugin that uses a library that requires spring-core 3.2.2 (cloudfoundry-client-lib). I simply used the mvn command to create a skeleton plugin, th

2条回答
  •  清酒与你
    2021-01-21 02:42

    If you're picking up dependencies from the Jenkins install rather than from your plugin the solution is actual quite easy to implement. Per the Jenkins documentation, simply add the maven-hpi-plugin to the build in the pom.xml of your Jenkins plugin and set it to load the plugin classes first:

    
        
            
                org.jenkins-ci.tools
                maven-hpi-plugin
                
                    true
                
            
        
    
    

提交回复
热议问题