My deploy works with Maven 2.2.0-RC3, so this must be a bug that has been fixed.
Thanks, Paul > -----Original Message----- > From: Vonnahme, Paul > Sent: Wednesday, June 10, 2009 4:15 PM > To: [email protected] > Subject: 'mvn deploy' doesn't create metadata in maven 2.1.0? > > I'm new to maven and was trying out repository managers > today. However, the 'mvn deploy' command was giving me the > same error each time I would try to deploy. The > 'maven-metadata.xml' file didn't exist (since this was the > first time it was deployed), and rather than create it maven > would throw an error. This happened first with nexus and > then with artifactory, so I decided to try a different > version of maven. Version 2.0.1 works for me, while 2.1.0 doesn't. > > Is this a known issue? Since I'm new to maven I want to make > sure this is a bug and I'm not just doing something wrong :) > > Thanks, > Paul > > > Running 'mvn deploy' using 2.1.0: > ... > [INFO] [deploy:deploy] > [INFO] Retrieving previous build number from > artifactory.snapshot [INFO] > -------------------------------------------------------------- > ---------- > [ERROR] BUILD ERROR > [INFO] > -------------------------------------------------------------- > ---------- > [INFO] Error retrieving previous build number for artifact > 'com.principal.ris.SH > RCP.local:RIS_Utility:jar': repository metadata for: > 'snapshot com.principal.ris > .SHRCP.local:RIS_Utility:1.0-SNAPSHOT' could not be retrieved > from repository: a rtifactory.snapshot due to an error: Error > transferring file: null > > http://localhost:8081/artifactory/libs-snapshots-local/com/pri > ncipal/ris/SHRCP/l > ocal/RIS_Utility/1.0-SNAPSHOT/maven-metadata.xml > [INFO] > -------------------------------------------------------------- > ---------- > [INFO] For more information, run Maven with the -e switch > [INFO] > -------------------------------------------------------------- > ---------- > ... > > > Running 'mvn deploy' using 2.0.1: > ... > [INFO] [deploy:deploy] > [INFO] Retrieving previous build number from > artifactory.snapshot [INFO] repository metadata for: > 'snapshot com.principal.ris.SHRCP.local:RIS_Util > ity:1.0-SNAPSHOT' could not be found on repository: > artifactory.snapshot, so wil l be created > Uploading: > http://localhost:8081/artifactory/libs-snapshots-local/com/principal/ > ris/SHRCP/local/RIS_Utility/1.0-SNAPSHOT/RIS_Utility-1.0-20090 > 610.204808-1.jar > 43K uploaded > [INFO] Retrieving previous metadata from artifactory.snapshot > [INFO] repository metadata for: 'snapshot > com.principal.ris.SHRCP.local:RIS_Util > ity:1.0-SNAPSHOT' could not be found on repository: > artifactory.snapshot, so wil l be created [INFO] Uploading > repository metadata for: 'snapshot > com.principal.ris.SHRCP.loca l:RIS_Utility:1.0-SNAPSHOT' > [INFO] Uploading project information for RIS_Utility > 1.0-20090610.204808-1 [INFO] Retrieving previous metadata > from artifactory.snapshot [INFO] repository metadata for: > 'artifact com.principal.ris.SHRCP.local:RIS_Util > ity' could not be found on repository: artifactory.snapshot, > so will be created [INFO] Uploading repository metadata for: > 'artifact com.principal.ris.SHRCP.loca l:RIS_Utility' > [INFO] > -------------------------------------------------------------- > ---------- > [INFO] BUILD SUCCESSFUL > [INFO] > -------------------------------------------------------------- > ---------- > ... > -----Message Disclaimer----- This e-mail message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient, any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by reply email to [email protected] and delete or destroy all copies of the original message and attachments thereto. Email sent to or from the Principal Financial Group or any of its member companies may be retained as required by law or regulation. Nothing in this message is intended to constitute an Electronic signature for purposes of the Uniform Electronic Transactions Act (UETA) or the Electronic Signatures in Global and National Commerce Act ("E-Sign") unless a specific statement to the contrary is included in this message. While this communication may be used to promote or market a transaction or an idea that is discussed in the publication, it is intended to provide general information about the subject matter covered and is provided with the understanding that The Principal is not rendering legal, accounting, or tax advice. It is not a marketed opinion and may not be used to avoid penalties under the Internal Revenue Code. You should consult with appropriate counsel or other advisors on all matters pertaining to legal, tax, or accounting obligations and requirements. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
