How did pom file in repository get info
I had a missing dependency on JAR files for JTA when I tried to build a project, so I did a mvn install:install-file as suggested. The JTA jars that I downloaded were correctly put into the repository, and in its .pom file I noticed that it was prepopulated with information about its name, description, url, and distributionManagement/downloadURL. I'm wondering how it got this information when I didn't enter it in my install-file command? Very weird... Thanks. -- View this message in context: http://www.nabble.com/How-did-pom-file-in-repository-get-info-tf3681673s177.html#a10289581 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
POM file in Repository
We have a few 3rd-party jar files that are not in central repository, e.g. ibiblio.org. So we had to manually install them to our local repository using the following command. mvn install:install-file -Dfile=path-to-file -DgroupId=group-id \ -DartifactId=artifact-id -Dversion=version -Dpackaging=packaging However, this command only installs the jar file into the local repository. So what happens is - whenever I started my maven build, it always tries to retrieve the corresponding pom file for each of the 3rd-party jar files from central repository, which of course are not there. So the warning message always displayed like this: [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) It's quite annoying. It's annoying not because of the message itself, it's because it slows down my build process. I don't want it to go to central repository to retrieve something that I know is not there. I only need the jar file and it's already in my local repository. why it always tries to retrieve the pom file from central? Is there a way to disable this??? Please advise. Thanks. -- View this message in context: http://www.nabble.com/POM-file-in-Repository-t1735732.html#a4716428 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: POM file in Repository
Add the -DgeneratePom=true to your command and a local POM will be generated. This should stop the systematic lookup on new builds. Cheers, GB Guillaume Bilodeau [EMAIL PROTECTED] Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. - Albert Einstein - Original Message From: cristal [EMAIL PROTECTED] To: users@maven.apache.org Sent: Monday, June 5, 2006 7:11:54 PM Subject: POM file in Repository We have a few 3rd-party jar files that are not in central repository, e.g. ibiblio.org. So we had to manually install them to our local repository using the following command. mvn install:install-file -Dfile=path-to-file -DgroupId=group-id \ -DartifactId=artifact-id -Dversion=version -Dpackaging=packaging However, this command only installs the jar file into the local repository. So what happens is - whenever I started my maven build, it always tries to retrieve the corresponding pom file for each of the 3rd-party jar files from central repository, which of course are not there. So the warning message always displayed like this: [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) It's quite annoying. It's annoying not because of the message itself, it's because it slows down my build process. I don't want it to go to central repository to retrieve something that I know is not there. I only need the jar file and it's already in my local repository. why it always tries to retrieve the pom file from central? Is there a way to disable this??? Please advise. Thanks. -- View this message in context: http://www.nabble.com/POM-file-in-Repository-t1735732.html#a4716428 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]