I did that: % mvn install:install-file -Dfile=lib/ejb3-persistence.jar -DgroupId= javax.persistence -DartifactId=ejb -Dversion=3.0 -Dpackaging=jar -DgeneratePom=true [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'install'. [INFO] ---------------------------------------------------------------------------- [INFO] Building Maven Default Project [INFO] task-segment: [install:install-file] (aggregator-style) [INFO] ---------------------------------------------------------------------------- [INFO] [install:install-file] [INFO] Installing /Users/stefan/Development/Java/hibernate- entitymanager-3.1.0.Beta8/lib/ejb3-persistence.jar to /Users/stefan/.m2/repository/javax/persistence/ejb/3.0/ejb-3.0.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 seconds [INFO] Finished at: Fri May 12 19:08:46 CEST 2006 [INFO] Final Memory: 2M/4M [INFO] ------------------------------------------------------------------------
But Maven still looks online: Downloading: http://repo1.maven.org/maven2/javax/persistence/ejb/3.0/ejb-3.0.pom [WARNING] Unable to get resource from repository central ( http://repo1.maven.org/maven2) Compiling the app works, so it did use the local one. Weird, eh? S. On 5/12/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
Reinstall the file and specify -DgeneratePom=true. Wayne On 5/12/06, Mike Perham <[EMAIL PROTECTED]> wrote: > Is the pom in your repo or just the jar? > > -----Original Message----- > From: Stefan Arentz [mailto:[EMAIL PROTECTED] > Sent: Friday, May 12, 2006 11:29 AM > To: Maven Users List > Subject: Why does Maven 2 keep trying to download stuff that i put in my > local repository > > This question will probably have a one line answer, but I seriously > can't find any hints. > > I put the EJB3 jar in my own local repository. Works great. However, > every time I run Maven it still does this: > > Downloading: > http://repo1.maven.org/maven2/javax/persistence/ejb/3.0/ejb-3.0.pom > [WARNING] Unable to get resource from repository central ( > http://repo1.maven.org/maven2) > > There is really no point. But it keeps trying :-) > > Is there any way to turn this off? > > S. > > --------------------------------------------------------------------- > 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]
