Maven 1.x UberJar Plugin

Allow uberjar to place the project jar at the beginning of the classworlds conf file

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

Due to how resource resolution occurs within the classloader, sometimes it is advantageous to have the project jar placed earlier in the classworlds configuration for uberjars.

I.e. If I want my project resources to override another projects (eg META-INF/service, or log4j or any other of a myriad) then I need my project jar occurring at the start of the classworlds conf.

To this end,

Add a property (this name is only an example - it should be shortened)
maven.uberjar.project.jar.position=first

(domain = first | last) default should be last to remain consistent with existing configuration.

Activity

Hide
Ben Walding added a comment -

Odd title problem

Show
Ben Walding added a comment - Odd title problem
Hide
Brett Porter added a comment -

no new features for uberjar

Show
Brett Porter added a comment - no new features for uberjar

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
1h
Original Estimate - 1 hour
Remaining:
1h
Remaining Estimate - 1 hour
Logged:
Not Specified
Time Spent - Not Specified