Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-3773

Apache Camel version banner is wrong in uber-jar

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.7.0
    • Component/s: camel-core
    • Labels:
    • Patch Info:
      Patch Available

      Description

      At context start a version banner is printed to the log:
      Apache Camel 2.6.0 (CamelContext: camel) started in 2.436 seconds
      The version string is calculated by ServiceSupport.getVersion():

      Package aPackage = getClass().getPackage();
      if (aPackage != null) {
          version = aPackage.getImplementationVersion();
          if (version == null) {
              version = aPackage.getSpecificationVersion();
          }
      }
      

      but, in Maven shade-plugin packaged project (to create single uber-jar for distribution to SE environment), the Manifest versions are project version, not Camel. So the wrong version is printed. It would be nice to have this improved to print real Camel version.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              arkadi Arkadi Shishlov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: