You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Armin Ehrenfels (JIRA)" <ji...@apache.org> on 2007/05/03 11:29:15 UTC

[jira] Created: (AXIS2-2633) axis2-wsdl2code-maven-plugin missing extension option "bindingfile" for JiBX

axis2-wsdl2code-maven-plugin missing extension option "bindingfile" for JiBX
----------------------------------------------------------------------------

                 Key: AXIS2-2633
                 URL: https://issues.apache.org/jira/browse/AXIS2-2633
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: Tools
    Affects Versions: 1.2
         Environment: all platforms
            Reporter: Armin Ehrenfels


axis2-wsdl2code-maven-plugin doesn't support extension options such as "-Ebindingfile" for JiBX.

SUGGESTION:
1. in the plugin configuration, introducing an additional option <extensionOptions>, similar to namespaceURIs, like this:
 
<extensionOptions>
   <extensionOption>
       <name>xxx</name>
      <value>yyy</value>
  </extensionOption>
  ...
</extensionOptions> 

2. in the mojo, for each extension option adding the name/value pair to optionsMap. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2633) axis2-wsdl2code-maven-plugin missing extension option "bindingfile" for JiBX

Posted by "Patrick Huber (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12538750 ] 

Patrick Huber commented on AXIS2-2633:
--------------------------------------

Hi there

I'm currently kind of looking into this because I intend to use jibx in a project.

In the current Trunk [1] there is this snippet:
---
        Iterator iterator = options.entrySet().iterator();
        while (iterator.hasNext()) {
            Map.Entry entry = (Map.Entry) iterator.next();
            String key = CommandLineOptionConstants.WSDL2JavaConstants.EXTRA_OPTIONTYPE_PREFIX + entry.getKey();
            String value = (String) entry.getValue();
            optionMap.put(
                    key,
                    new CommandLineOption(
                            key,
                            new String[]{value}));
        }
---

now, when I add an element "options" element like this:
---
				<configuration>
					<databindingName>jibx</databindingName>
					<options>
						<bindingfile>src/main/jibx/mappings.xml</bindingfile>
					</options>
---

I'm still getting the same error, outputting "options.entrySet().size()" to the console gives a size of zero.
Any hints to point me in the right direction? I have absolutely no experience with hacking maven plugins so all help is apreciated.

[1] http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java?revision=560106&view=markup

> axis2-wsdl2code-maven-plugin missing extension option "bindingfile" for JiBX
> ----------------------------------------------------------------------------
>
>                 Key: AXIS2-2633
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2633
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.2
>         Environment: all platforms
>            Reporter: Armin Ehrenfels
>            Assignee: Jochen Wiedmann
>
> axis2-wsdl2code-maven-plugin doesn't support extension options such as "-Ebindingfile" for JiBX.
> SUGGESTION:
> 1. in the plugin configuration, introducing an additional option <extensionOptions>, similar to namespaceURIs, like this:
>  
> <extensionOptions>
>    <extensionOption>
>        <name>xxx</name>
>       <value>yyy</value>
>   </extensionOption>
>   ...
> </extensionOptions> 
> 2. in the mojo, for each extension option adding the name/value pair to optionsMap. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Assigned: (AXIS2-2633) axis2-wsdl2code-maven-plugin missing extension option "bindingfile" for JiBX

Posted by "Jochen Wiedmann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jochen Wiedmann reassigned AXIS2-2633:
--------------------------------------

    Assignee: Jochen Wiedmann

> axis2-wsdl2code-maven-plugin missing extension option "bindingfile" for JiBX
> ----------------------------------------------------------------------------
>
>                 Key: AXIS2-2633
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2633
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.2
>         Environment: all platforms
>            Reporter: Armin Ehrenfels
>         Assigned To: Jochen Wiedmann
>
> axis2-wsdl2code-maven-plugin doesn't support extension options such as "-Ebindingfile" for JiBX.
> SUGGESTION:
> 1. in the plugin configuration, introducing an additional option <extensionOptions>, similar to namespaceURIs, like this:
>  
> <extensionOptions>
>    <extensionOption>
>        <name>xxx</name>
>       <value>yyy</value>
>   </extensionOption>
>   ...
> </extensionOptions> 
> 2. in the mojo, for each extension option adding the name/value pair to optionsMap. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2633) axis2-wsdl2code-maven-plugin missing extension option "bindingfile" for JiBX

Posted by "Mark Stickel (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12681862#action_12681862 ] 

Mark Stickel commented on AXIS2-2633:
-------------------------------------

The correct configuration in order to get the JiBX bindingfile property (or any property, for that matter) read in by the wsdl2code plugin should be like this:

      <plugin>
        ...
        <configuration>
          <packageName>com.foo</packageName>
          <databindingName>jibx</databindingName>
          <wsdlFile>${project.build.sourceDirectory}/../wsdl/foo.wsdl</wsdlFile>
          <options>
            <property>
              <name>bindingfile</name>
              <value>${project.build.sourceDirectory}/../jibx/foo-binding.xml</value>
            </property>
          </options>
        </configuration>
      </plugin>

For reference, see here (Properties is near the bottom of the page): http://maven.apache.org/guides/plugin/guide-java-plugin-development.html

> axis2-wsdl2code-maven-plugin missing extension option "bindingfile" for JiBX
> ----------------------------------------------------------------------------
>
>                 Key: AXIS2-2633
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2633
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.2
>         Environment: all platforms
>            Reporter: Armin Ehrenfels
>            Assignee: Jochen Wiedmann
>
> axis2-wsdl2code-maven-plugin doesn't support extension options such as "-Ebindingfile" for JiBX.
> SUGGESTION:
> 1. in the plugin configuration, introducing an additional option <extensionOptions>, similar to namespaceURIs, like this:
>  
> <extensionOptions>
>    <extensionOption>
>        <name>xxx</name>
>       <value>yyy</value>
>   </extensionOption>
>   ...
> </extensionOptions> 
> 2. in the mojo, for each extension option adding the name/value pair to optionsMap. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.