[JIRA] [core] (JENKINS-28796) Support shading in maven-hpi plugin

3 views
Skip to first unread message

o.v.nenashev@gmail.com (JIRA)

unread,
Jun 8, 2015, 2:04:02 PM6/8/15
to jenkinsc...@googlegroups.com
Oleg Nenashev created an issue
 
Jenkins / Improvement JENKINS-28796
Support shading in maven-hpi plugin
Issue Type: Improvement Improvement
Assignee: Arnaud Héritier
Components: core
Created: 08/Jun/15 6:03 PM
Labels: maven maven-hpi build
Priority: Major Major
Reporter: Oleg Nenashev

Just a follow-up to the discussion in https://github.com/jenkinsci/docker-traceability-plugin/pull/18

Here are more details about the HPI and shade Maven plugins incompatibility : http://echelog.com/logs/browse/jenkins/1427839200

Arnaud has already discussed with Kanstantsin Shautsou who reported the issue and asked for some help to fix it but for now I did found the time to do it. Here is the feedback he gave regarding the issue :

The issue is that it ignores any package phase bindings and packages jars with hardcoded jar archiver. Jenkins has many issues because of classloader and it will be very convenient to have ability to execute shad-plugin directly from hpi packaging. If packaging is jar, then maven-jar-plugin executes fine maven-shade-plugin. So my idea was to remove hardcoded jar archiver from hpi plugin and give it to maven-jar. https://github.com/jenkinsci/maven-hpi-plugin/blob/ded54b3ac24035ebacda64a0900c3dea5e3de852/src/main/java/org/jenkinsci/maven/plugins/hpi/HpiMojo.java#L122-L131

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

aheritier@apache.org (JIRA)

unread,
Oct 2, 2019, 4:48:04 AM10/2/19
to jenkinsc...@googlegroups.com
Arnaud Héritier assigned an issue to Unassigned
Change By: Arnaud Héritier
Assignee: Arnaud Héritier
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages