Or else you can use external dependencies which are somewhere on the file
system as follows.

<plugin>
                <groupId>org.apache.axis2</groupId>
                <artifactId>axis2-aar-maven-plugin</artifactId>
                <version>1.6-wso2v3</version>
                <extensions>true</extensions>
                <configuration>
                    <aarName>Calculator</aarName>
                    <fileSets>
                        <fileSet>
                            <directory>
                                /home/isuru/foo/bar
                            </directory>
                            <outputDirectory>lib</outputDirectory>
                            <includes>
                                <include>cal-dep-1.0.0.jar</include>
                            </includes>
                        </fileSet>
                    </fileSets>
                </configuration>
                <executions>
                    <execution>
                        <id>create-aar1</id>
                        <phase>install</phase>
                        <goals>
                            <goal>aar</goal>
                        </goals>
                        <configuration>
                            <aarName>
                                Calculator
                            </aarName>
                            <servicesXmlFile>

${basedir}/src/main/resources/META-INF/services.xml
                            </servicesXmlFile>
                            <includeDependencies>false</includeDependencies>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

~Isuru

On Wed, Feb 29, 2012 at 12:29 PM, Isuru Suriarachchi <[email protected]> wrote:

> Basically you have to make sure that your maven class path only has the
> needed set of dependencies. Try a mvn dependency:tree and exclude what is
> not needed.
>
> Thanks,
> ~Isuru
>
> On Wed, Feb 29, 2012 at 11:56 AM, Subash Chaturanga <[email protected]>wrote:
>
>> Hi,
>> $subject ?
>> I tried to use excludes in the plugin and it does not affects for
>> dependencies. Also just tried by setting
>>  <includeDependencies>false</includeDependencies> and then the lib not get
>> created.
>> Is there a way to do this ?
>>
>> Thanks
>> --
>>
>> Subash Chaturanga
>> Software Engineer
>> WSO2 Inc. http://wso2.com
>>
>> email - [email protected]
>> phone - 077 2225922
>>
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> [email protected]
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Isuru Suriarachchi
> Technical Lead
> WSO2 Inc. http://wso2.com
> email : [email protected]
> blog : http://isurues.wordpress.com/
>
> lean . enterprise . middleware
>
>


-- 
Isuru Suriarachchi
Technical Lead
WSO2 Inc. http://wso2.com
email : [email protected]
blog : http://isurues.wordpress.com/

lean . enterprise . middleware
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to