OpenMake Meister

Using Archiva for Transitive Dependencies

 

The Apache Archiva Repository can be used to resolve Transitive Runtime Dependencies.  A Transitive Runtime Dependency is an archive, .jar file, that is needed for runtime but not specified at compile time.  For example, httpclient-4.0.1.jar is used at compile time to resolve any methods and classes used by the calling program, i.e. HelloWorld.war.  The httpclient-4.0.1.jar is specified on the Set Classpath of the Target so no “class not found” errors would occur.  Httpclient-4.0.1.jar itself uses methods and classes from other archives, such as commons-codec-1.2.jar and commons-logging-1.1.1.jar.  Then commons-logging.1.1.1.jar in turn uses log4j-1.2.12.jar and logkit-1.0.1.jar.

 

The archives commons-codec-1.2.jar, commons-loggings-1.1.1.jar, log4j-1.2.12.jar, and logkit-1.0.1.jar are transitive runtime dependencies that httpclient-4.0.1.jar and HelloWorld.war need in order for HelloWorld.war to run correctly.