This is my pom section, and it work fine:
<plugin>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-wsdl2code-maven-plugin</artifactId>
<version>1.3</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>wsdl2code</goal>
</goals>
</execution>
</executions>
<configuration>
<packageName>mytest.services</packageName>
<databindingName>xmlbeans</databindingName>
<generateServerSide>true</generateServerSide>
<generateServerSideInterface>true</generateServerSideInterface>
<generateServicesXml>true</generateServicesXml>
<outputDirectory>target/generated-by-axis2</outputDirectory>
<wsdlFile>src/main/resources/META-INF/service.wsdl</wsdlFile>
</configuration>
</plugin>
Bye.
Antonio.
2007/12/22, Alejandro Calbazana <[EMAIL PROTECTED]>:
>
> Got it working... But, I am a wee bit confused now :)
>
> Docs say wsdl2code:wsdl2code... JIRAs say axis2-wsdl2code:wsdl2code...
>
> JIRA says docs are wrong when it comes to <configuration/> section being
> inside the <execution/> section... But axis2-wsdl2code:wsdl2code errors
> out with:
>
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] One or more required plugin parameters are invalid/missing for
> 'axis2-wsdl2code:wsdl2code'
>
> [0] Inside the definition for plugin 'axis2-wsdl2code-maven-plugin'
> specify the following:
>
> <configuration>
> ...
> <packageName>VALUE</packageName>
> </configuration>
>
> -OR-
>
> on the command line, specify: '-Daxis2.wsdl2code.package=VALUE'
>
> However, it works when configuration is set outside of the execution
> section?
>
> Is there a definitive way to perform code gen using wsdl as part of
> maven2?
>
> Thanks!
>
> Alejandro
>
>
> Martin Gainty wrote:
> > Alejandro
> >
> > you will need axis2-mar-maven-plugin-1.3.jar
> > axis2-mar-maven-plugin-1.3.pom
> >
> > This bug has been around for awhile..
> > https://issues.apache.org/jira/browse/AXIS2-2788
> >
> > Gracias/
> > Martin
> >
> > ----- Original Message -----
> > From: "Alejandro Calbazana" <[EMAIL PROTECTED]>
> > To: <[email protected]>
> > Sent: Friday, December 21, 2007 1:44 PM
> > Subject: Axis2 - where is the maven-wsdl2code-plugin?
> >
> >
> >
> >> Hi,
> >>
> >> Can someone help me understand how to have this plugin properly
> >> recognized by maven2? I am unable to get this plugin to download
> >> successfully when its added as a plugin inside my pom.xml.
> >>
> >> mvn wsdl2code:wsdl2code will generate the following:
> >>
> >> The plugin 'org.apache.maven.plugins:maven-wsdl2code-plugin' does not
> >> exist or no valid version could be found
> >>
> >> The build section of my pom.xml:
> >>
> >> <build>
> >> <plugins>
> >> <plugin>
> >> <groupId>org.apache.axis2</groupId>
> >> <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
> >> <version>1.3</version>
> >> <executions>
> >> <execution>
> >> <goals>
> >> <goal>wsdl2code</goal>
> >> </goals>
> >> <configuration>
> >> <databindingName>xmlbeans</databindingName>
> >>
> <generateAllClasses>true</generateAllClasses>
> >>
> <generateServerSide>true</generateServerSide>
> >>
> >> <generateServerSideInterface>true</generateServerSideInterface>
> >>
> >>
> > <generateServicesXml>true</generateServicesXml>
> >
> >> <packageName>com.foo.samples</packageName>
> >> </configuration>
> >> </execution>
> >> </executions>
> >> </plugin>
> >> </plugins>
> >> </build>
> >>
> >> Is there a known repository that has this plugin? If not, how can I
> >> move this into maven manually since it is available under the axis2
> >> grouping on several repos? Simply copying it to
> >> ~/.m2/repository/org/apache/maven/plugins does not work.
> >>
> >> I can get this to work by adding the plugin as a dependency in my
> >> pom.xml. But this doesnt seem quite right.
> >>
> >> Any hints are appreciated. BTW - I do know that the docs are incorrect
> >> concerning the config section of this plugin.
> >>
> >> Thanks,
> >>
> >> Alejandro
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>