The correct Maven way to solve this is to set up an internal remote repo, in which you deploy these libs (artifacts). The easiest way to do this is to use a repo manager such as Nexus or Artifactory. You will have this up and running in less than a day. The benefit of doing this is that you solve the problem for all your developers. And you do it the correct Maven way which makes you learn correct Maven procedures. And when you do have a repo manager already set up, a whole new world of possibilities opens up. Such as deployment of your own artifacts for instance.
Any other way is just a work-around. Please learn from other people going down that path and some time later regretting it. /Anders On Tue, Jun 8, 2010 at 16:38, John Harrison <[email protected]> wrote: > In my project I use a third party library that I would like to put into a > remote maven repository. The lib is distributed as a zip file. To use the > lib outside of maven you unzip the archive to a directory, set your > classpath to various locations in that directory, and set an environment > variable pointing to the directory itself. The library is proprietary and > there are various licensing issues but these would be handled outside of > maven. > > What I'd like to be able to do is place a dependency on the third party lib > in my project and have maven do as much of the above as possible. I'm > looking at the assembly plugin and the dependency plugin but basically I'm a > maven newbie and I'm horribly confused. > > Thanks, John > > > > Confidentiality Notice: This electronic message transmission, including any > attachment(s), may contain confidential, proprietary, or privileged > information from Chemical Abstracts Service ("CAS"), a division of the > American Chemical Society ("ACS"). If you have received this transmission in > error, be advised that any disclosure, copying, distribution, or use of the > contents of this information is strictly prohibited. Please destroy all > copies of the message and contact the sender immediately by either replying > to this message or calling 614-447-3600. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
