Return-Path: X-Original-To: apmail-continuum-issues-archive@www.apache.org Delivered-To: apmail-continuum-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C2D9869E6 for ; Sun, 17 Jul 2011 13:02:10 +0000 (UTC) Received: (qmail 13136 invoked by uid 500); 17 Jul 2011 13:02:10 -0000 Delivered-To: apmail-continuum-issues-archive@continuum.apache.org Received: (qmail 13101 invoked by uid 500); 17 Jul 2011 13:02:10 -0000 Mailing-List: contact issues-help@continuum.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@continuum.apache.org Delivered-To: mailing list issues@continuum.apache.org Received: (qmail 13093 invoked by uid 99); 17 Jul 2011 13:02:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Jul 2011 13:02:10 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [63.246.2.115] (HELO codehaus01.managed.contegix.com) (63.246.2.115) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Jul 2011 13:02:04 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id ED6BB15E81D4 for ; Sun, 17 Jul 2011 08:01:43 -0500 (CDT) Date: Sun, 17 Jul 2011 08:01:43 -0500 (CDT) From: "Maria Catherine Tan (JIRA)" To: issues@continuum.apache.org Message-ID: <3296714.20059.1310907703970.JavaMail.haus-jira@codehaus01.managed.contegix.com> In-Reply-To: <1362022.141751241718105210.JavaMail.haus-jira@codehaus01.managed.contegix.com> Subject: [jira] Updated: (CONTINUUM-2222) pom.xml is deleted if validation fails MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 22cf62d5d84cf5bea94eb3b65e0ebd09 X-Virus-Checked: Checked by ClamAV on apache.org [ https://jira.codehaus.org/browse/CONTINUUM-2222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Maria Catherine Tan updated CONTINUUM-2222: ------------------------------------------- Fix Version/s: (was: 1.4.1 (Beta)) 1.4.2 (Beta) > pom.xml is deleted if validation fails > -------------------------------------- > > Key: CONTINUUM-2222 > URL: https://jira.codehaus.org/browse/CONTINUUM-2222 > Project: Continuum > Issue Type: Bug > Components: Integration - Maven 2 > Affects Versions: 1.2.3, 1.3.4 (Beta) > Environment: Java 1.6.0_10, RedHat Enterprise Linux 5.3, Maven 2.1.0, Perforce 2008.2 > Reporter: Peter Janes > Fix For: 1.4.2 (Beta) > > > If Continuum fails to parse the project descriptor for some reason, the pom.xml is deleted from the workspace. With SCMs like Perforce that keep track of the files in a workspace, the pom.xml is not re-synced on subsequent checkouts, which causes build errors until someone manually intervenes (either by making an unnecessary change to the file or by forcing a sync of the workspace). > Here's a sample trace. It was caused when a dependency's version was refactored to the dependencyManagement section of the parent. Continuum built the lower-level project before the parent. > org.apache.maven.continuum.execution.ContinuumBuildExecutorException: Unable to read the Maven project descriptor '/var/continuum/sources/484/pom.xml': Failed to validate POM for project com.example:invalid-project at /var/continuum/sources/484/pom.xml > 'dependencies.dependency.version' is missing for com.example:other-project > at org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.getMavenProject(MavenTwoBuildExecutor.java:334) > at org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.shouldBuild(MavenTwoBuildExecutor.java:414) > at org.apache.maven.continuum.buildcontroller.DefaultBuildController.shouldBuild(DefaultBuildController.java:557) > at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:151) > at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:50) > at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116) > at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442) > at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:178) > at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061) > at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575) > at java.lang.Thread.run(Thread.java:619) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira