Camel
  1. Camel
  2. CAMEL-3773

Apache Camel version banner is wrong in uber-jar

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor 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.

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development