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

jbi maven plugin: service assembly & attached artifact

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • jbi-maven-plugin-4.5
    • tooling
    • None

    Description

      jbi maven plugin would seem the behave badly when creating a service assembly. At least when the pom file with packaging jbi-service-assembly contains only dependencies to jbi-service-units (and the project for that pom.xml does not contain any java code in src/main/java), the plugin first creates a jar, installs it as a zip, then creates the correct zip and installs it as an attached artifact.

      If I got it right from the plugins source code, it's contradicting the "correct way" that's referred here:
      http://maven.40175.n5.nabble.com/Missing-search-results-with-assembly-attached-artifacts-td131996.html

      "What happens in those cases is that you end up with empty jar, and a zip that has same coordinates as main artifact, but only different extension. Since Nexus reads POM to figure out the packaging, it will think in these two cases it is "JAR"."

      I ran in to this problem when trying to package the service assebly using the maven-rpm-plugin. When using dependencies to package the rpm, it just keeps packing the jar whiles of the service assembly -not the zip file at all. I suppose it's because the jar & zip files have the same maven coordinates. With the BCs/SEs the zip file gets the classifier "installer", and with that I can get the BC/SE zip file to the rpm(but I'm also getting the jar there even if I'm setting the dependency type to zip...)

      maven 2.09,2.2.1,3 tried. latest beta of maven-rpm-plugin, jbi-maven-plugin:4.0,4.3...errrr....at least some combinations of these...

      Attachments

        Issue Links

          Activity

            People

              lhein Lars Heinemann
              karniemi Kari J. Niemi
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: