[ 
https://issues.apache.org/jira/browse/AXIS2-2673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16088847#comment-16088847
 ] 

Hudson commented on AXIS2-2673:
-------------------------------

SUCCESS: Integrated in Jenkins build Axis2 #3800 (See 
[https://builds.apache.org/job/Axis2/3800/])
AXIS2-2673: Add axis2-jibx-codegen to the dependencies of 
axis2-wsdl2code-maven-plugin. (veithen: rev 1800561)
* (edit) axis2/modules/tool/axis2-wsdl2code-maven-plugin/pom.xml
* (edit) axis2/pom.xml


> axis2-wsdl2code-maven-plugin + JiBX
> -----------------------------------
>
>                 Key: AXIS2-2673
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2673
>             Project: Axis2
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.2
>            Reporter: Antoni Jakubiak
>              Labels: jibx, maven
>             Fix For: 1.7.0
>
>         Attachments: AXIS2-2673.patch, AXIS2-2673.patch
>
>
> I have to use maven plugin for axis and jibx - axis2-wsdl2code-maven-plugin 
> version 1.2. 
> It doesn't work for me. I made some changes:
> 1. pom.xml (axis2-1.2/modules/tool/axis2-wsdl2code-maven-plugin/pom.xml)
> add dependency to axis2-jibx:
> <dependency>
>  <groupId>org.apache.axis2</groupId>
>  <artifactId>axis2-jibx</artifactId>
>  <version>${version}</version>
> </dependency
> It helps with "java.lang.RuntimeException: JiBX framework jars not in 
> classpath" error.
> 2. WSDL2CodeMojo.java
> (modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java)
> 2.1. add private field:
> /**
>  * JiBX binding file
>  *
>  * @parameter expression="${axis2.wsdl2code.jibxBindingFile}" 
> default-value="src/main/axis2/binding.xml"
>  */
> private File jibxBindingFile;
> 2.2. modify method fillOptionMap - add code:
> if ("jibx".equals(databindingName)) {
>    String tmpName = 
> CommandLineOptionConstants.WSDL2JavaConstants.EXTRA_OPTIONTYPE_PREFIX 
>        + 
> org.apache.axis2.wsdl.codegen.extension.JiBXExtension.BINDING_PATH_OPTION;
>     optionMap.put( tmpName, new CommandLineOption( tmpName, 
> getStringArray(jibxBindingFile.getPath())));
> }
> It helps with error "java.lang.RuntimeException: JiBX wrapped support
> requires a binding definition to be provided using the -Ebindingfile
> {file-path} parameter"
> This modifications allow me to build with maven axis2 jibx web service.
> Please add it to axis2 distribution.
> Example pom:
> <?xml version="1.0" encoding="UTF-8"?>
> <project>
>  <modelVersion>4.0.0</modelVersion>
>  <groupId>org.apache.axis2.maven2</groupId>
>  <artifactId>axis2-wsdl2code-maven-plugin-test1-jibx</artifactId>
>  <version>1.2-SNAPSHOT</version>
>  <name>Test 1 of the axis2-wsdl2code-maven-plugin</name>
>  <build>
>    <plugins>
>      <plugin>
>        <groupId>org.apache.axis2</groupId>
>        <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
>        <version>1.2</version>
>        <executions>
>          <execution>
>            <goals>
>              <goal>wsdl2code</goal>
>            </goals>
>            <configuration>
>              <generateServerSide>true</generateServerSide>
>              <generateServerSideInterface>true</generateServerSideInterface>
>              <generateAllClasses>true</generateAllClasses>
>              <generateServicesXml>true</generateServicesXml>
>              <packageName>demo</packageName>
>              <databindingName>jibx</databindingName>
>            </configuration>
>          </execution>
>        </executions>
>      </plugin>
>    </plugins>
>  </build>
> </project>



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to