Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Labels:None
-
Number of attachments :
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
Ben Walding
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Summary | Allow uberjar conf can | Allow uberjar to place the project jar at the beginning of the classworlds conf file |
Jason van Zyl
made changes -
| Project | maven [ 10030 ] | maven-uberjar-plugin [ 10340 ] |
| Fix Version/s | 1.1 [ 10211 ] | |
| Affects Version/s | 1.0-rc1 [ 10181 ] | |
| Key | MAVEN-799 |
|
| Component/s | plugin-uberjar [ 10374 ] |
Brett Porter
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Won't Fix [ 2 ] |