Thursday, March 1, 2012

Maven Axis2 aar plugin:Ignore maven class path dependencies

In a web service implementation class, you might want to exclude some dependencies get packaged inside service/lib, but still use those dependencies at compile time in the service class. Because maven axis2 aar plugin adds all the dependent jars in maven classpath in to the service/lib dir.

What you can do is to add a scope inside the dependencies. This will then exclude that particular dependency from being packaged inside lib(Remember: this will exclude all its related child dependencies also).


org.apache.axis2.wso2
axis2
provided