You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by tamahmed <ta...@gmail.com> on 2012/07/10 03:28:54 UTC
Maven2 WSDL2Code Plug-in
I am a newbie so please excuse me of anything silly with this.
I using this eclipse plugin
http://axis.apache.org/axis2/java/core/tools/maven-plugins/maven-wsdl2code-plugin.html
to generate java code. The output directory is always
target/generated-sources/axis2/wsdl2code/src even though I specify
outputDirectory as target/generated-sources. Is there anyway to force it
to just target/generated-sources. This is very critical for my project.
This is what I have in my pom
<plugin>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-wsdl2code-maven-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>MyService</id>
<goals>
<goal>wsdl2code</goal>
</goals>
<configuration>
<outputDir>{project.build.directory}/generated-sources</outputDir>
<packageName>com.myservice</packageName>
<wsdlFile>${basedir}/src/main/resources/wsdl/myservice.wsdl</wsdlFile>
</configuration>
</execution>
</executions>
</plugin>
--
View this message in context: http://old.nabble.com/Maven2-WSDL2Code-Plug-in-tp34137481p34137481.html
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org
Re: Maven2 WSDL2Code Plug-in
Posted by Sagara Gunathunga <sa...@gmail.com>.
On Wed, Jul 11, 2012 at 5:06 AM, tamahmed <ta...@gmail.com> wrote:
>
> Thanks Sagara,
>
> Its the same issue even now after updating to 1.6.2. All I need is get rid
> of axis2/wsdl2code/src path from
> target/generated-sources/axis2/wsdl2code/src
I don't think you can get rid of "src" but clearly you can omit "
axis2/wsdl2code/", following configuration worked for me.
<configuration>
<wsdlFile>src/main/resources/AdderService.wsdl</wsdlFile>
<outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
<packageName>com.my.service</packageName>
</configuration>
Thanks !
>
> Thanks,
> Tameem
>
>
> Sagara wrote:
>>
>> Axis2 1.4 released around 4 years ago, use one of the recent version
>> Axis2 1.6.2 recommended.
>>
>> Thanks !
>>
>> On Tue, Jul 10, 2012 at 10:46 PM, tamahmed <ta...@gmail.com> wrote:
>>>
>>> Version is 1.4 in my POM.
>>>
>>> <dependency>
>>> <groupId>org.apache.axis2</groupId>
>>> <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
>>> <version>1.4</version>
>>> </dependency>
>>>
>>>
>>> Sagara wrote:
>>>>
>>>> According to Maven this is incorrect
>>>> <outputDir>{project.build.directory}/generated-sources</outputDir>.
>>>> What is your Axis2 version ?
>>>>
>>>> Thanks !
>>>>
>>>> On Tue, Jul 10, 2012 at 6:58 AM, tamahmed <ta...@gmail.com>
>>>> wrote:
>>>>> <outputDir>{project.build.directory}/generated-sources</outputDir>
>>>>
>>>>
>>>>
>>>> --
>>>> Sagara Gunathunga
>>>>
>>>> Blog - http://ssagara.blogspot.com
>>>> Web - http://people.apache.org/~sagara/
>>>> LinkedIn - http://www.linkedin.com/in/ssagara
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
>>>> For additional commands, e-mail: java-user-help@axis.apache.org
>>>>
>>>>
>>>>
>>>> -----
>>>> Sagara Gunathunga
>>>>
>>>> Blog - http://ssagara.blogspot.com
>>>> Web - http://sagaras.awardspace.com/
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/Maven2-WSDL2Code-Plug-in-tp34137481p34141287.html
>>> Sent from the Axis - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
>>> For additional commands, e-mail: java-user-help@axis.apache.org
>>>
>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Blog - http://ssagara.blogspot.com
>> Web - http://people.apache.org/~sagara/
>> LinkedIn - http://www.linkedin.com/in/ssagara
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
>> For additional commands, e-mail: java-user-help@axis.apache.org
>>
>>
>>
>> -----
>> Sagara Gunathunga
>>
>> Blog - http://ssagara.blogspot.com
>> Web - http://sagaras.awardspace.com/
>>
>
> --
> View this message in context: http://old.nabble.com/Maven2-WSDL2Code-Plug-in-tp34137481p34143216.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
--
Sagara Gunathunga
Blog - http://ssagara.blogspot.com
Web - http://people.apache.org/~sagara/
LinkedIn - http://www.linkedin.com/in/ssagara
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org
Re: Maven2 WSDL2Code Plug-in
Posted by tamahmed <ta...@gmail.com>.
Thanks Sagara,
Its the same issue even now after updating to 1.6.2. All I need is get rid
of axis2/wsdl2code/src path from
target/generated-sources/axis2/wsdl2code/src
Thanks,
Tameem
Sagara wrote:
>
> Axis2 1.4 released around 4 years ago, use one of the recent version
> Axis2 1.6.2 recommended.
>
> Thanks !
>
> On Tue, Jul 10, 2012 at 10:46 PM, tamahmed <ta...@gmail.com> wrote:
>>
>> Version is 1.4 in my POM.
>>
>> <dependency>
>> <groupId>org.apache.axis2</groupId>
>> <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
>> <version>1.4</version>
>> </dependency>
>>
>>
>> Sagara wrote:
>>>
>>> According to Maven this is incorrect
>>> <outputDir>{project.build.directory}/generated-sources</outputDir>.
>>> What is your Axis2 version ?
>>>
>>> Thanks !
>>>
>>> On Tue, Jul 10, 2012 at 6:58 AM, tamahmed <ta...@gmail.com>
>>> wrote:
>>>> <outputDir>{project.build.directory}/generated-sources</outputDir>
>>>
>>>
>>>
>>> --
>>> Sagara Gunathunga
>>>
>>> Blog - http://ssagara.blogspot.com
>>> Web - http://people.apache.org/~sagara/
>>> LinkedIn - http://www.linkedin.com/in/ssagara
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
>>> For additional commands, e-mail: java-user-help@axis.apache.org
>>>
>>>
>>>
>>> -----
>>> Sagara Gunathunga
>>>
>>> Blog - http://ssagara.blogspot.com
>>> Web - http://sagaras.awardspace.com/
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Maven2-WSDL2Code-Plug-in-tp34137481p34141287.html
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
>> For additional commands, e-mail: java-user-help@axis.apache.org
>>
>
>
>
> --
> Sagara Gunathunga
>
> Blog - http://ssagara.blogspot.com
> Web - http://people.apache.org/~sagara/
> LinkedIn - http://www.linkedin.com/in/ssagara
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>
>
> -----
> Sagara Gunathunga
>
> Blog - http://ssagara.blogspot.com
> Web - http://sagaras.awardspace.com/
>
--
View this message in context: http://old.nabble.com/Maven2-WSDL2Code-Plug-in-tp34137481p34143216.html
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org
Re: Maven2 WSDL2Code Plug-in
Posted by Sagara Gunathunga <sa...@gmail.com>.
Axis2 1.4 released around 4 years ago, use one of the recent version
Axis2 1.6.2 recommended.
Thanks !
On Tue, Jul 10, 2012 at 10:46 PM, tamahmed <ta...@gmail.com> wrote:
>
> Version is 1.4 in my POM.
>
> <dependency>
> <groupId>org.apache.axis2</groupId>
> <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
> <version>1.4</version>
> </dependency>
>
>
> Sagara wrote:
>>
>> According to Maven this is incorrect
>> <outputDir>{project.build.directory}/generated-sources</outputDir>.
>> What is your Axis2 version ?
>>
>> Thanks !
>>
>> On Tue, Jul 10, 2012 at 6:58 AM, tamahmed <ta...@gmail.com> wrote:
>>> <outputDir>{project.build.directory}/generated-sources</outputDir>
>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Blog - http://ssagara.blogspot.com
>> Web - http://people.apache.org/~sagara/
>> LinkedIn - http://www.linkedin.com/in/ssagara
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
>> For additional commands, e-mail: java-user-help@axis.apache.org
>>
>>
>>
>> -----
>> Sagara Gunathunga
>>
>> Blog - http://ssagara.blogspot.com
>> Web - http://sagaras.awardspace.com/
>>
>
> --
> View this message in context: http://old.nabble.com/Maven2-WSDL2Code-Plug-in-tp34137481p34141287.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
--
Sagara Gunathunga
Blog - http://ssagara.blogspot.com
Web - http://people.apache.org/~sagara/
LinkedIn - http://www.linkedin.com/in/ssagara
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org
Re: Maven2 WSDL2Code Plug-in
Posted by tamahmed <ta...@gmail.com>.
Version is 1.4 in my POM.
<dependency>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-wsdl2code-maven-plugin</artifactId>
<version>1.4</version>
</dependency>
Sagara wrote:
>
> According to Maven this is incorrect
> <outputDir>{project.build.directory}/generated-sources</outputDir>.
> What is your Axis2 version ?
>
> Thanks !
>
> On Tue, Jul 10, 2012 at 6:58 AM, tamahmed <ta...@gmail.com> wrote:
>> <outputDir>{project.build.directory}/generated-sources</outputDir>
>
>
>
> --
> Sagara Gunathunga
>
> Blog - http://ssagara.blogspot.com
> Web - http://people.apache.org/~sagara/
> LinkedIn - http://www.linkedin.com/in/ssagara
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>
>
> -----
> Sagara Gunathunga
>
> Blog - http://ssagara.blogspot.com
> Web - http://sagaras.awardspace.com/
>
--
View this message in context: http://old.nabble.com/Maven2-WSDL2Code-Plug-in-tp34137481p34141287.html
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org
Re: Maven2 WSDL2Code Plug-in
Posted by Sagara Gunathunga <sa...@gmail.com>.
According to Maven this is incorrect
<outputDir>{project.build.directory}/generated-sources</outputDir>.
What is your Axis2 version ?
Thanks !
On Tue, Jul 10, 2012 at 6:58 AM, tamahmed <ta...@gmail.com> wrote:
> <outputDir>{project.build.directory}/generated-sources</outputDir>
--
Sagara Gunathunga
Blog - http://ssagara.blogspot.com
Web - http://people.apache.org/~sagara/
LinkedIn - http://www.linkedin.com/in/ssagara
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org