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

jbi-maven-plugin should not complains when calling compile goal for a service-assembly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • jbi-maven-plugin-4.3
    • jbi-maven-plugin-4.6
    • tooling
    • None
    • Using maven 3.0-beta1, but manifests itself with maven 2.2.1

    Description

      Hello,

      Problem

      When calling mvn compile in a project tree and one of the project is an SA, I get the following error:

      [ERROR] Failed to execute goal org.apache.servicemix.tooling:jbi-maven-plugin:4.3:generate-jbi-service-assembly-descriptor (default-generate-jbi-service-assembly-descriptor) on project scenario1-sa: Execution default-generate-jbi-service-assembly-descriptor of goal org.apache.servicemix.tooling:jbi-maven-plugin:4.3:generate-jbi-service-assembly-descriptor failed: String index out of range: -1 -> [Help 1]
      

      The errors seems to be coming from GenerateServiceAssemblyDescriptorMojo.java, line 213, for the following part:

      fileName = fileName.substring(0, fileName.lastIndexOf('.')) + ".zip";
      

      This piece of code seems to try to generate the jbi.xml file using the name of the files of the SU plugins generated by the goal package.

      Expected Result

      I would expect jbi-maven-plugin, either not to try to generate the jbi.xml file on compile, or to generate it without using the information about things that are produced by the goal package.

      Rational for using compile

      1. because I want to do it
      2. to compile all the projects in a project tree without bothering
      3. to run tests !!
      4. to use the project in Eclipse with m2eclipse (Eclipse the goal compile from time to time and the error appears in its console)

      Thank you

      Attachments

        1. tutorial-wsdl-cxf-service.tar.gz
          4 kB
          Gavin Scott
        2. jbi-maven-plugin-su-filename.patch
          3 kB
          Gavin Scott

        Activity

          People

            ffang Freeman Yue Fang
            victor.noel Victor
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: