Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-51068] - Maven HPI Plugin is invoked without Upper Bounds Check #8

Open
oleg-nenashev opened this issue Mar 28, 2018 · 3 comments
Labels
bug Something isn't working

Comments

@oleg-nenashev
Copy link
Member

oleg-nenashev commented Mar 28, 2018

When a Custom WAR is packaged by invoking Maven HPI plugin, the intermediate POM has no upper bounds checks. So the resulting WAR may compile but then fail to start depending on the inclusion order.

Mar 28, 2018 2:48:42 AM jenkins.InitReactorRunner$1 onTaskFailed
SEVERE: Failed Loading plugin Artifact Manager on S3 plugin v256.0-master-bc845780854b6a522f6a07a63f24fe2c21a739bc-SNAPSHOT (private-bc845780-nenashev) (artifact-manager-s3)
java.io.IOException: Artifact Manager on S3 plugin v256.0-master-bc845780854b6a522f6a07a63f24fe2c21a739bc-SNAPSHOT (private-bc845780-nenashev) failed to load.
 - Structs Plugin v1.7 is older than required. To fix, install v1.10 or later.
	at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:655)
	at hudson.PluginManager$2$1$1.run(PluginManager.java:514)
	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
	at jenkins.model.Jenkins$5.runTask(Jenkins.java:1062)
	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

https://issues.jenkins-ci.org/browse/JENKINS-51068

@oleg-nenashev oleg-nenashev added the bug Something isn't working label Mar 28, 2018
@oleg-nenashev oleg-nenashev changed the title Maven HPI Plugin is invoked without Upper Bounds Check [JENKINS-51068] - Maven HPI Plugin is invoked without Upper Bounds Check May 2, 2018
@obv-mikhail
Copy link

obv-mikhail commented Dec 26, 2018

@oleg-nenashev Is making a Jenkins war prepackaged with Blue Ocean impossible due to this bug or does there exist some workaround?

@oleg-nenashev
Copy link
Member Author

@obv-mikhail It should work well. The only issue is that you may need to resolve version conflicts manually by declaring upstream dependencies.

It is also possible to use pom.xml as an input so that Maven enforcer is invoked externally. For example, see https://github.com/oleg-nenashev/ci.jenkins.io-runner

@obv-mikhail
Copy link

@oleg-nenashev Ok, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants