Hi folks,
I was able to fix this now by introducing a new classpath. I defined a
wsdl2java.classpath variable. This will solve the Windows long classpath
issue. See below:

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.1</version>
                <executions>
                    <execution>
                        <id>source-code-generation</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <configuration>
                            <tasks>
                                *<path id="wsdl2java.classpath">*
*                                    <pathelement
location="${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v1/axis2-client-${orbit.version.axis2}.jar"/>
*
*                                    <pathelement
location="${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v1/axis2-${orbit.version.axis2}.jar"/>
*
*                                </path>*
                                <java
classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                    <arg line="-uri
src/main/resources/ServiceUploader.wsdl -u -uw
                                    -o target/generated-code -p
org.wso2.carbon.aarservices.ui
                                    -ns2p http://aarservices.carbon.wso2.org
=org.wso2.carbon.aarservices.ui,
http://aarservices.carbon.wso2.org/xsd=org.wso2.carbon.aarservices.ui.types.carbon
"/>
                                    *<classpath
refid="wsdl2java.classpath"/>*
                                </java>
                            </tasks>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

-- 
*Afkham Azeez*
Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com,
*
*
*Member; Apache Software Foundation;
**http://www.apache.org/*<http://www.apache.org/>
*
email: **[email protected]* <[email protected]>* cell: +94 77 3320919
blog: **http://blog.afkham.org* <http://blog.afkham.org>*
twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to