The problem was in the settings.xml. Only a normal repository was defined, not a plugin repository.
/André -----Original Message----- From: André Isaksson [mailto:[EMAIL PROTECTED] Sent: den 2 december 2005 13:22 To: Maven Users List Subject: RE: Problem finding my plugin in remote repository The strangest thing about this problem is these two lines: ------------ Downloading: file:///m2_repo/repository/se/zystems/maven/plugins/maven-baseline-plugin/1.0.0/maven-baseline-plugin-1.0.0.pom 3K downloaded Downloading: http://repo1.maven.org/maven2/se/zystems/maven/plugins/maven-baseline-plugin/1.0.0/maven-baseline-plugin-1.0.0.jar ------------ Why does it decide to download the jar-file from repo1.maven.org when the pom is not located there? And why doesn't it try get the jar-file from file:///m2_repo when it fails to fetch it from repo1.maven.org? Could it be a bug? Regards, André -----Original Message----- From: André Isaksson [mailto:[EMAIL PROTECTED] Sent: den 2 december 2005 10:55 To: [email protected] Subject: Problem finding my plugin in remote repository Hello! I have created a plugin and deployed it to a remote repository (file:///m2_repo/repository). To test that the plugin can be downloaded from the remote repository I have removed it from my local repository. When I try to use the plugin the following error occurs: ---------------------------------- [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/se/zystems/maven/plugins/maven-baseline-plugin/1.0.0/mave n-baseline-plugin-1.0.0.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) Downloading: http://gotdevmq/maven/se.zystems.maven.plugins/poms/maven-baseline-plugin-1.0.0.pom [WARNING] Unable to get resource from repository gotdevmq (http://gotdevmq/maven) Downloading: file:///m2_repo/repository/se/zystems/maven/plugins/maven-baseline-plugin/1.0.0/maven-b aseline-plugin-1.0.0.pom 3K downloaded Downloading: http://repo1.maven.org/maven2/se/zystems/maven/plugins/maven-baseline-plugin/1.0.0/mave n-baseline-plugin-1.0.0.jar [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] ---------------------------------------------------------------------------- [ERROR] BUILD ERROR [INFO] ---------------------------------------------------------------------------- [INFO] Plugin could not be found - check that the goal name is correct: Unable to download the artif act from any repository se.zystems.maven.plugins:maven-baseline-plugin:1.0.0:maven-plugin from the specified remote repositories: central (http://repo1.maven.org/maven2) se.zystems.maven.plugins:maven-baseline-plugin:1.0.0:maven-plugin from the specified remote repositories: central (http://repo1.maven.org/maven2) ---------------------------------- What puzzles me is that the pom is located correctly but the actual jar-file can't be found. It seems like Maven only searches the repositories I have defined in settings.xml when it tries to find the correct pom, not when it tries to locate the jar-file. Is this true, and if yes, how can I solve the problem? Best Regards / Vänliga hälsningar André Isaksson System Integrator Zystems by Semcon _______________________________________________ This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation Best Regards / Vänliga hälsningar André Isaksson System Integrator Zystems by Semcon Theres Svenssons Gata 15 417 80 Göteborg ( Telefon: +46 (0)707-77 86 02 * E-mail: [EMAIL PROTECTED] WWW: http://www.zystems.se <blocked::http://www.zystems.se/> _______________________________________________ This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:43903959197151680526813! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
