Maven 1.x UberJar Plugin
  1. Maven 1.x UberJar Plugin
  2. MPUBERJAR-3

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
    • 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

          • Assignee:
            Unassigned
            Reporter:
            Ben Walding
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

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