Web / Apache Axiom Interview questions
List the Maven dependencies required to use Axiom standalone?
To use Axiom outside of Axis2, in a plain Java project, the two dependencies that matter are the API and its default implementation.
<dependency> <groupId>org.apache.ws.commons.axiom</groupId> <artifactId>axiom-api</artifactId> <version>1.4.0</version> </dependency> <dependency> <groupId>org.apache.ws.commons.axiom</groupId> <artifactId>axiom-impl</artifactId> <version>1.4.0</version> </dependency>
axiom-api supplies the public interfaces (OMElement, OMFactory, and so on), while axiom-impl provides the default LLOM implementation that actually backs them at runtime - both are required together, since the API module alone has no concrete classes.
If DOM compatibility is specifically needed, an additional axiom-dom dependency provides that alternate implementation; it's optional and only pulled in when a library downstream genuinely requires real org.w3c.dom objects.
More Related questions...