Return-Path: Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 72301 invoked by uid 500); 14 Aug 2003 15:43:43 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 72252 invoked from network); 14 Aug 2003 15:43:42 -0000 Received: from ajsoft.plus.com (HELO roobarb.ajsoft.net) (81.174.133.99) by daedalus.apache.org with SMTP; 14 Aug 2003 15:43:42 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by roobarb.ajsoft.net (Postfix) with ESMTP id 62A375880A for ; Thu, 14 Aug 2003 16:39:43 +0100 (BST) From: Andy Jefferson Organization: AJSoft Limited To: "Maven Users List" Subject: Re: Noob question: how to deal with non maven jars? Date: Thu, 14 Aug 2003 16:39:43 +0100 User-Agent: KMail/1.5 References: <000001c36279$64423010$6a25cdd9@CO2679> In-Reply-To: <000001c36279$64423010$6a25cdd9@CO2679> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308141639.43162.andy@ajsoft.net> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Thursday 14 Aug 2003 16:33, Michael Mills wrote: > After spending a lot of time looking at (what little) documentation > there is and trying out various maven command lines I was wondering how > (other than manually creating the dir in the maven.local.repository) you > get any old jar that is required for a build into your local repository. > > If I have a jar: bob.jar that is currently in the 'lib' folder of my > project, which is currently using ant to build with that path added to > my project.classpath, how do I get bob.jar into my local repository so > that I can add the following to my maven project.xml file and get it to > compile: > > > bob > bob > 1.0 > jar > > > I have tried to use the "maven jar:xxx" goals but they don't seem to > work, also "maven repository:xxx" don't work (I have got a local > webserver running and maven.repo.remote=http://localhost stored in > build.properties in the user.profile directory). > > I would have thought that you could cd to the lib folder and execute a > maven command to register bob in the local repository as version 1.0? > This does not seem possible. > > In general I guess I am asking: what process is intended for files that > A, are not open source (i.e. in the standard maven remote repo) or B, do > not have the associated src files (and hence can not be built by a maven > project where you can use "maven jar:install"). What you can do is just manually copy it into the maven repository where you installed everything. There will be a repository directory. Create a directory in there called 'bob', and then a subdirectory called 'jars', and put the jar in there as bob-1.0.jar. When you run maven afterwards it should find it :-) -- Andy --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org