Hi Adam, For each dependency, maven needs both a .jar and a .pom file. The .jar file has the necessary code, and the pom file has the necessary dependency info.
If you've installed only a jar into your local repository, maven will still try to find the pom in the global repos. The easiest solution is to use the -DgeneratePom option when installing the jar into your local repo - although you then get a pom that is missing all dependency info for the jar you've installed, so you will have to manually add all the jars it depends on to your own pom. See the documentation for the install:install-file goal. Regards, Simon On Thu, 2008-03-13 at 20:17 +0000, Adam Hardy wrote: > This question has possibly quite an easy answer, I hope. > > I manually installed a 3rd party jar into my local repository. > > Can I prevent mvn checking the global repos whenever I run something? > > It looks like marking it as scope="system" is one way but I don't want the > hassle of specifying a local file system path. > > I can find any setting for this, yet it seems quite a common thing to want to > do. > > > Thanks > Adam > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
