Re: error while deploying a project
On Thu, Apr 14, 2011 at 11:49 AM, Nilesh Mevada wrote: > I have migrated all the necessary artifcats to sonatype nexus as explained > in their docs and found no errors while rebuilding any indexes whatsoever in > the logs. The migration was successful. However, while deploying one of the > project, i get following error.. Please re-post your question to either the Maven or Nexus users list. (You've written to an address that is only used for automated notifications from the issue tracking system.) http://maven.apache.org/mail-lists.html -- Wendy
error while deploying a project
i m using maven 2.0.9 and recently i have shifted my repository to sonatype nexus 1.9.0.2 from archiva. I have migrated all the necessary artifcats to sonatype nexus as explained in their docs and found no errors while rebuilding any indexes whatsoever in the logs. The migration was successful. However, while deploying one of the project, i get following error.. [INFO] Scanning for projects... [INFO] [INFO] Building Unnamed - pw:pw-base-dependencies:pom:1.0-SNAPSHOT [INFO]task-segment: [deploy] [INFO] [INFO] [jar:test-jar {execution: default}] [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] [site:attach-descriptor] [INFO] Preparing source:jar [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation. [INFO] No goals needed for project - skipping [INFO] [source:jar {execution: default}] [INFO] [install:install] [INFO] Installing /somepath/base/base-dependencies/pom.xml to /home/nilesh/MiKuStuff/Workspace/_app_base/Maven2Repo/pw/pw-base-dependencies/1.0-SNAPSHOT/pw-base-dependencies-1.0-SNAPSHOT.pom [INFO] Installing /somepath/base/base-dependencies/target/WEB-INF/lib/pw-base-dependencies-1.0-SNAPSHOT-tests.jar to /home/nilesh/MiKuStuff/Workspace/_app_base/Maven2Repo/pw/pw-base-dependencies/1.0-SNAPSHOT/pw-base-dependencies-1.0-SNAPSHOT-tests.jar [INFO] [deploy:deploy] altDeploymentRepository = null [INFO] Retrieving previous build number from snapshots [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error retrieving previous build number for artifact 'pw:pw-base-dependencies:pom': Cannot read metadata from '/somepath/_app_base/Maven2Repo/pw/pw-base-dependencies/1.0-SNAPSHOT/maven-metadata-snapshots.xml': expected START_TAG or END_TAG not TEXT (position: TEXT seen ...tests pw pw-base-dependencies 1.0-SNAPSHOT 20100617.105422 11 20110411220259 tests jar 1.0-20100617.105422-11 20100617105422 pom 1.0-20100617.105422-11 20100617105422 Googling did not give any hint on what is to be done. And i dont understand what is wrong with this situation. Please help. Please revert if some more information is needed. -- Best Regards, Nilesh Mevada