ServiceMix
  1. ServiceMix
  2. SM-1079

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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();

        Activity

        Jeff Turner made changes -
        Project Import Sat Nov 27 00:46:19 EST 2010 [ 1290836779991 ]
        Freeman Fang made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Freeman Fang created issue -

          People

          • Assignee:
            Freeman Fang
            Reporter:
            Freeman Fang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development