Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-891

Maven plugin should use finalName

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1
    • 3.1.1, 3.2
    • tooling
    • None
    • Patch Available

    Description

      When generating a JBI component in Maven, the plugin currently uses "${project.artifactId}-${project.version}.jar" when looking for the original packaged JAR. This causes problems when the plugin is running in a forked lifecycle that changes the artifact name, such as the Clover plugin (clover:instrument will fail with an exception).

      Attached is a patch (vs. servicemix-3.1) that modifies GenerateComponentMojo to use project.build.finalName instead. I'm not sure if this is the correct way to do it, but it works here.

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: