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 ma...@nordea.com on 2008/05/19 16:36:20 UTC

How to integrate Axis2 into our project built by Maven

Hi,

We're developing Axis2 based webservice and it works great, but now we
plan to build the WAR by using Maven instead of Ant. In the Axis2 1.3
distribution there are 60 jars, do we need to declare dependencies of
all these jar in our project or is there any easy way to get around
this?

Any suggestion is appreciated.

Best wishes,
Mai Sun

Re: How to integrate Axis2 into our project built by Maven

Posted by Saminda Abeyruwan <sa...@gmail.com>.
Hi Sun,

At the moment, even with axis2 1.4 release, if user added axis2.jar as a
dependency, this will not download the dependent jars transitively as the
pom.xml attached with the axis2.jar doesn't list them.

axis2.jar contains the classes from following modules,

1. kernel
2. addressing
3. codegen
4. adb
5. adb-codegen
6. axis2-java2wsdl
7. xmlbeans
8. clustering

In addition to this there are a lot of module that did not make it to the
axis2.jar.

As a production stand point, if the project contains the small units of
axis2 dependencies, it will be very easy to maintain them and patch them if
needed.

Thus, I would recommend the usage of separate jars for your project rather
using the axis2.jar itself. This is because it is maintainable and axis2.jar
doesn't contain classes from all the axis2 modules.

The newest version of axis2 release is 1.4 and it's better that axis2 1.3 :)

Thank you!

Saminda

On Tue, May 20, 2008 at 5:27 PM, <ma...@nordea.com> wrote:

>  Hi Saminda,
>
> Thanks for you reply. We're indeed using Maven2 to build WAR. We tried to
> add the following dependencies in our pom.xml:
>
>
> <dependency>
>
> <groupId>org.apache.axis2</groupId>
>
> <artifactId>axis2-adb</artifactId>
>
> <version>1.3</version>
>
> </dependency>
>
> <dependency>
>
> <groupId>org.apache.axis2</groupId>
>
> <artifactId>axis2-kernel</artifactId>
>
> <version>1.3</version>
>
> </dependency>
> It only downloads the mininal jars for Axis2. What if we want to get a full
> version of Axis2? Is it just a matter of adding all sub modules from Axis2?
>
> Thanks a lot!
>
> Best wishes,
> Mai Sun
>
>
>  ------------------------------
> *From:* Saminda Abeyruwan [mailto:samindaa@gmail.com]
> *Sent:* 19 May 2008 20:32
> *To:* axis-dev@ws.apache.org
> *Subject:* Re: How to integrate Axis2 into our project built by Maven
>
> Hi Sun,
>
> I believe you are using Maven2 to create the WAR distribution. If you are
> using Maven 1.x, we would recommend you to switch to Maven2 instead.
>
> What you need in this case is Maven2 and war plugin. You only need to
> provide the axis2 dependencies in you pom.xml and rest will be take care by
> Manven2 with as transitive dependencies.
>
> With minimum dependencies of axis2-kernel and axis2-adb you'll be able to
> build the WAR distribution as you pleased using Maven2
>
> Thank you!
>
> Saminda
>
> On Mon, May 19, 2008 at 8:06 PM, <ma...@nordea.com> wrote:
>
>>
>> Hi,
>>
>> We're developing Axis2 based webservice and it works great, but now we
>> plan to build the WAR by using Maven instead of Ant. In the Axis2 1.3
>> distribution there are 60 jars, do we need to declare dependencies of all
>> these jar in our project or is there any easy way to get around this?
>>
>> Any suggestion is appreciated.
>>
>> Best wishes,
>> Mai Sun
>>
>
>
>
> --
> Saminda Abeyruwan
>
> Senior Software Engineer
> WSO2 Inc. - www.wso2.org
>



-- 
Saminda Abeyruwan

Senior Software Engineer
WSO2 Inc. - www.wso2.org

RE: How to integrate Axis2 into our project built by Maven

Posted by ma...@nordea.com.
Hi Saminda,
 
Thanks for you reply. We're indeed using Maven2 to build WAR. We tried
to add the following dependencies in our pom.xml:
 
<dependency>

<groupId>org.apache.axis2</groupId> 

<artifactId>axis2-adb</artifactId>

<version>1.3</version> 

</dependency>

<dependency>

<groupId>org.apache.axis2</groupId> 

<artifactId>axis2-kernel</artifactId>

<version>1.3</version> 

</dependency> 

It only downloads the mininal jars for Axis2. What if we want to get a
full version of Axis2? Is it just a matter of adding all sub modules
from Axis2?
 
Thanks a lot!
 
Best wishes,
Mai Sun

 
________________________________

From: Saminda Abeyruwan [mailto:samindaa@gmail.com] 
Sent: 19 May 2008 20:32
To: axis-dev@ws.apache.org
Subject: Re: How to integrate Axis2 into our project built by Maven


Hi Sun,

I believe you are using Maven2 to create the WAR distribution. If you
are using Maven 1.x, we would recommend you to switch to Maven2 instead.


What you need in this case is Maven2 and war plugin. You only need to
provide the axis2 dependencies in you pom.xml and rest will be take care
by Manven2 with as transitive dependencies. 

With minimum dependencies of axis2-kernel and axis2-adb you'll be able
to build the WAR distribution as you pleased using Maven2

Thank you!

Saminda 


On Mon, May 19, 2008 at 8:06 PM, <ma...@nordea.com> wrote:



	Hi, 

	We're developing Axis2 based webservice and it works great, but
now we plan to build the WAR by using Maven instead of Ant. In the Axis2
1.3 distribution there are 60 jars, do we need to declare dependencies
of all these jar in our project or is there any easy way to get around
this?

	Any suggestion is appreciated. 

	Best wishes, 
	Mai Sun 




-- 
Saminda Abeyruwan

Senior Software Engineer
WSO2 Inc. - www.wso2.org 

Re: How to integrate Axis2 into our project built by Maven

Posted by Saminda Abeyruwan <sa...@gmail.com>.
Hi Sun,

I believe you are using Maven2 to create the WAR distribution. If you are
using Maven 1.x, we would recommend you to switch to Maven2 instead.

What you need in this case is Maven2 and war plugin. You only need to
provide the axis2 dependencies in you pom.xml and rest will be take care by
Manven2 with as transitive dependencies.

With minimum dependencies of axis2-kernel and axis2-adb you'll be able to
build the WAR distribution as you pleased using Maven2

Thank you!

Saminda

On Mon, May 19, 2008 at 8:06 PM, <ma...@nordea.com> wrote:

>
> Hi,
>
> We're developing Axis2 based webservice and it works great, but now we plan
> to build the WAR by using Maven instead of Ant. In the Axis2 1.3
> distribution there are 60 jars, do we need to declare dependencies of all
> these jar in our project or is there any easy way to get around this?
>
> Any suggestion is appreciated.
>
> Best wishes,
> Mai Sun
>



-- 
Saminda Abeyruwan

Senior Software Engineer
WSO2 Inc. - www.wso2.org