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

run mavn -Dmaven.test.skip=true -Dprofile=step2 will fail due to messy profile property reference

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      the exception is like
      INFO] [xfire:wsgen

      {execution: default}

      ]
      [INFO] Executing XFire WsGen task with url:
      file:/C:/java_3rd_party/servicemix/servicemix-src/samples/wsdl-first/wsdl-fir
      st-jsr181-su/src/main/resources/person.wsdl
      [INFO]
      ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO]
      ------------------------------------------------------------------------
      [INFO] command execution failed

      Embedded error: java.lang.ClassNotFoundException: step2
      [INFO]

      The reason you we see this error is that the -Dprofile=step2 which should only be used by servicemix is also passed into the sub-module of servicemix project, which is samples/wsdl-first/wsdl-first-jsr181-su, and wsdl-first-jsr181-su use xfire codegen plugin try to resolve this profile "step2" as a profile class, you can see the relavant code in xfire Wsdl11Generator.java is like
      if (profile == null) profile = Jsr181Profile.class.getName();
      PluginProfile profileObj =
      (PluginProfile) ClassLoaderUtils.loadClass(profile, getClass()).newInstance();

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            ffang Freeman Yue Fang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: