As you said, you do not want to set up your own repository, perhaps this will help.
You can use the installation file in maven-install-plugin to install the file in the local repository. If you create a script with a Maven call for each file and keep it near the banks, you (and everyone with access) can easily install the banks (and the associated pom files) in their local repository.
For example:
mvn install:install-file -Dfile=/usr/jars/foo.jar -DpomFile=/usr/jars/foo.pom mvn install:install-file -Dfile=/usr/jars/bar.jar -DpomFile=/usr/jars/bar.pom
or simply
mvn install:install-file -Dfile=ojdbc14.jar -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0 -Dpackaging=jar
You can then reference the dependencies as usual in your project.
However, it is best to set up an internal remote repository, and I would recommend using Nexus . It can be launched in your development window, if necessary, and the overhead is minimal.
Rich Seller Jul 22. '09 at 11:07 2009-07-22 11:07
source share