Axis2-aar maven plugin : How to exclude a particular dependency from a AAR file

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Axis2-aar maven plugin : How to exclude a particular dependency from a AAR file

Subash Chaturanga
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

phone - 077 2225922


_______________________________________________
Carbon-dev mailing list
[hidden email]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Axis2-aar maven plugin : How to exclude a particular dependency from a AAR file

Isuru Suriarachchi-2
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 <[hidden email]> 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

phone - 077 2225922


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




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

lean . enterprise . middleware


_______________________________________________
Carbon-dev mailing list
[hidden email]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Axis2-aar maven plugin : How to exclude a particular dependency from a AAR file

Isuru Suriarachchi-2
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 <[hidden email]> 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 <[hidden email]> 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

phone - 077 2225922


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




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

lean . enterprise . middleware




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

lean . enterprise . middleware


_______________________________________________
Carbon-dev mailing list
[hidden email]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Loading...