Hi, You have to create a POM file for that JAR in the repository, either manually, or by installing the JAR file with -DgeneratePom=true.
Cheers Max -----Original Message----- From: Jeff Mutonho [mailto:[EMAIL PROTECTED] Sent: 16 August 2006 16:13 To: Maven Users List Subject: Re: Reason: Error getting POM for 'javax.j2ee:j2ee' Seems to be happening for jars I manually installed, because I just tried to build my domain objects project as well and got the error : [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ ---- [INFO] Error building POM (may not be this project's POM). Project ID: net.sf.hibernate2:hibernate Reason: Error getting POM for 'net.sf.hibernate2:hibernate' from the repository: Error transferring file net.sf.hibernate2:hibernate:pom:2.0.0 from the specified remote repositories: central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ ---- [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ ---- [INFO] Total time: 17 seconds [INFO] Finished at: Wed Aug 16 16:55:14 SAST 2006 [INFO] Final Memory: 5M/10M [INFO] ------------------------------------------------------------------------ ---- On 8/16/06, Jeff Mutonho <[EMAIL PROTECTED]> wrote: > > I'm getting the following error message when trying to build my web > project : > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > Downloading: > http://repo1.maven.org/maven2/javax/j2ee/j2ee/1.3.0/j2ee-1.3.0.pom > [INFO] > ---------------------------------------------------------------------- > ------ > [ERROR] BUILD ERROR > [INFO] > ---------------------------------------------------------------------- > ------ > > [INFO] Error building POM (may not be this project's POM). > > > Project ID: javax.j2ee:j2ee > > Reason: Error getting POM for 'javax.j2ee:j2ee' from the repository: > Error transferring file > javax.j2ee:j2ee:pom:1.3.0 > > from the specified remote repositories: > central (http://repo1.maven.org/maven2) > > > > [INFO] > ---------------------------------------------------------------------- > ------ > > [INFO] For more information, run Maven with the -e switch [INFO] > ---------------------------------------------------------------------- > ------ > [INFO] Total time: 11 seconds > [INFO] Finished at: Wed Aug 16 16:12:13 SAST 2006 [INFO] Final Memory: > 4M/7M [INFO] > ---------------------------------------------------------------------- > ------ > $ > > > The j2ee-1.3.0.jar file is present in > /home/maven/.m2/repository/javax/j2ee/j2ee/1.3.0.Why is maven trying > to download the POM from repo1.maven.org/maven2 when I have already > installed it locally with the command "mvn install:install-file > -Dfile=blah blah blah......" > > -- > > > Jeff Mutonho > > GoogleTalk : ejbengine > Skype : ejbengine > Registered Linux user number 366042 > -- Jeff Mutonho GoogleTalk : ejbengine Skype : ejbengine Registered Linux user number 366042 Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]