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

Apache Camel version banner is wrong in uber-jar

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6.0
    • 2.7.0
    • camel-core
    • 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

        1. camel-getVersion-uber-jar.diff
          2 kB
          Arkadi Shishlov

        Activity

          People

            davsclaus Claus Ibsen
            arkadi Arkadi Shishlov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: