How do I implement “maven.jar.override” of Maven 1 with Maven 2?
Assume you have an open source project on Source Forge which uses some 3rd party libraries which are not available in any public Maven repository. Still, you want to build your project with Maven 2 – how to deal with those unavailable dependencies? Maven 1 allowed to override the path of files of dependencies, with a relative path, for example to a .jar file included in the projects’ CVS structure. Maven 2 does not support that, so one way to achieve the same thing is: • Create a multi-module project. The first module contains the local 3rd-party jar files, at any location, with any name. As a simple example, just one file, under the path “src/build/jars/acme-worker12.jar” • The purpose of the first sub-module is to install the 3rd party .jar file into your local Maven 2 repository through the maven “install” plugin.