Return-Path: Delivered-To: apmail-continuum-users-archive@www.apache.org Received: (qmail 20160 invoked from network); 24 Jun 2008 07:51:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jun 2008 07:51:05 -0000 Received: (qmail 95499 invoked by uid 500); 24 Jun 2008 07:51:02 -0000 Delivered-To: apmail-continuum-users-archive@continuum.apache.org Received: (qmail 95474 invoked by uid 500); 24 Jun 2008 07:51:02 -0000 Mailing-List: contact users-help@continuum.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@continuum.apache.org Delivered-To: mailing list users@continuum.apache.org Received: (qmail 95445 invoked by uid 99); 24 Jun 2008 07:51:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2008 00:51:02 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of emmanuel.venisse@gmail.com designates 66.249.82.239 as permitted sender) Received: from [66.249.82.239] (HELO wx-out-0506.google.com) (66.249.82.239) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2008 07:50:12 +0000 Received: by wx-out-0506.google.com with SMTP id h30so932143wxd.14 for ; Tue, 24 Jun 2008 00:50:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=zSm8LOx/iOE8jIrDqeAueBvMTGuF1rSC3ujrI+7uwqM=; b=JjcyM5s0G+0nuIClxCPFs5SiIWP6eKk3mCwIWl6cJThJLwcGwLqPIZbDPr9VvV62Yr gg6Hv8pK+95Www7zRX/NNMz39ayP0sXv2KvIkwS7c9NZfjy4Mvts09+u2U3kNfw54DFg /cvO1rIJVXnV+pKhMBlhNvMO2bynrkFtRAphY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=x+dipa0Wuc0rjD6V7so6k4HuyRM1a0tOBodCcEW6q0toQgOfGObTS9Odg1PAsXvHqU wqm2nfy4Fjg7rY7HRuSxf1QkoK5TEHFA7fxpcnD1n61mUyvE3tmAjLJtV32A0kvAaxtu kvOoVAlN/scowvifCGD15lO7z8u2UwvDk8kUI= Received: by 10.70.13.6 with SMTP id 6mr9968537wxm.17.1214293830114; Tue, 24 Jun 2008 00:50:30 -0700 (PDT) Received: by 10.70.72.4 with HTTP; Tue, 24 Jun 2008 00:50:29 -0700 (PDT) Message-ID: Date: Tue, 24 Jun 2008 09:50:29 +0200 From: "Emmanuel Venisse" To: users@continuum.apache.org Subject: Re: Maven2 POM validation errors should end up in the Output text field of the Build results! In-Reply-To: <14E2D0E6B6CEAD40BB18E4A48B170D8003192080@PROD32.prod.telenet.be> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7068_105180.1214293829879" References: <14E2D0E6B6CEAD40BB18E4A48B170D8003192080@PROD32.prod.telenet.be> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_7068_105180.1214293829879 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Can you file an issue? Emmanuel On Tue, Jun 24, 2008 at 8:55 AM, De Smet Ringo < Ringo.De.Smet@staff.telenet.be> wrote: > Hello, > > One of our Maven2 projects started to fail on Continuum. When I checked > the Builds page, there were always pairs of entries with a few seconds > between them. For each of these pairs of build results, the former was > always in Error, while the latter (most recent build) was always in > Failure. > > The log of the error build was this: > > org.codehaus.plexus.taskqueue.execution.TaskExecutionException: Error > executing action 'update-project-from-working-directory' > at > org.apache.maven.continuum.buildcontroller.DefaultBuildController.perfor > mAction(DefaultBuildController.java:434) > at > org.apache.maven.continuum.buildcontroller.DefaultBuildController.build( > DefaultBuildController.java:139) > at > org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.exec > uteTask(BuildProjectTaskExecutor.java:50) > at > org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Execut > orRunnable$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:176) > at > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker > .runTask(ThreadPoolExecutor.java:665) > at > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker > .run(ThreadPoolExecutor.java:690) > at java.lang.Thread.run(Thread.java:595) > Caused by: > org.apache.maven.continuum.execution.ContinuumBuildExecutorException: > Error while mapping metadata:add.project.validation.error > add.project.project.building.error > add.project.unknown.error > > at > org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.upda > teProjectFromCheckOut(MavenTwoBuildExecutor.java:157) > at > org.apache.maven.continuum.core.action.UpdateProjectFromWorkingDirectory > ContinuumAction.execute(UpdateProjectFromWorkingDirectoryContinuumAction > .java:75) > at > org.apache.maven.continuum.buildcontroller.DefaultBuildController.perfor > mAction(DefaultBuildController.java:408) > ... 8 more > > > The log of the failure build was this: > > + Error stacktraces are turned on. > Maven version: 2.0.8 > Java version: 1.4.2_08 > OS name: "sunos" version: "5.10" arch: > "sparc" Family: "unix" > [DEBUG] Building Maven user-level plugin registry from: > '/home/Dci/.m2/plugin-registry.xml' > [DEBUG] Building Maven global-level plugin registry from: > '/dvp/lib/sft/maven/install/2.0.8/conf/plugin-registry.xml' > [INFO] Scanning for projects... > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Maven Default Project > [INFO] task-segment: [clean, deploy, site] > [INFO] > ------------------------------------------------------------------------ > [DEBUG] maven-clean-plugin: resolved to version 2.2 from repository > central > [DEBUG] Retrieving parent-POM: > org.apache.maven.plugins:maven-plugins::10 for project: > null:maven-clean-plugin:maven-plugin:2.2 from the repository. > [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::7 for > project: org.apache.maven.plugins:maven-plugins:pom:10 from the > repository. > [DEBUG] Retrieving parent-POM: org.apache:apache::4 for project: > org.apache.maven:maven-parent:pom:7 from the repository. > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Cannot execute mojo: clean. It requires a project with an > existing pom.xml, but the build is not using one. > [INFO] > ------------------------------------------------------------------------ > [DEBUG] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: Cannot execute > mojo: clean. It requires a project with an existing pom.xml, but the > build is not using one. > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default > LifecycleExecutor.java:564) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec > ycle(DefaultLifecycleExecutor.java:480) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL > ifecycleExecutor.java:459) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle > Failures(DefaultLifecycleExecutor.java:311) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( > DefaultLifecycleExecutor.java:278) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec > ycleExecutor.java:143) > at > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav > a:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor > Impl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot > execute mojo: clean. It requires a project with an existing pom.xml, but > the build is not using one. > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa > nager.java:373) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default > LifecycleExecutor.java:539) > ... 16 more > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: < 1 second > [INFO] Finished at: Tue Jun 24 08:35:33 CEST 2008 > [INFO] Final Memory: 1M/4M > [INFO] > ------------------------------------------------------------------------ > > If I look at the Working copy, there is no pom.xml file, so I was quite > puzzled. The CVS repository *does* contain the pom.xml and a checkout of > the project to my local workstation was completely OK. > > I finally found the error in the wrapper.log. The POM used a property to > resolve a dependency version that was undefined in the parent pom, > leading to validation errors. This error message should definitely end > up in the Output textfield of a Build results page in the webfrontend!!! > > INFO | jvm 1 | 2008/06/24 08:35:31 | 2008-06-24 08:35:31,497 > [pool-1-thread-1] ERROR > org.apache.maven.continuum.execution.maven.m2.MavenBuilderHelper:default > - Cannot build maven project from > /dvp_loc_ci_00_00/dvp/loc/rts/ci/working-directory/53/pom.xml (Failed to > validate POM). > INFO | jvm 1 | 2008/06/24 08:35:31 | > 'dependencies.dependency.version' is missing for > be.telenet:srv.location.location > > Another remark: having two entries in the Build results page for a build > I triggered once made me believe that there were two copies of Continuum > running, with the error coming from concurrent access of the working > copy. A build failure should only end up in one build result... > > Greetz, > > Ringo De Smet > ixor > ************************************************************* > > Dit e-mail bericht inclusief eventuele ingesloten bestanden kan informati= e > bevatten die vertrouwelijk is en/of beschermd door intellectuele > eigendomsrechten. Dit bericht is uitsluitend bestemd voor de > geadresseerde(n). Elk gebruik van de informatie vervat in dit bericht > (waaronder de volledige of gedeeltelijke reproductie of verspreiding onde= r > elke vorm) door andere personen dan de geadresseerde(n) is verboden. Indi= en > u dit bericht per vergissing heeft ontvangen, gelieve de afzender hiervan= te > verwittigen en dit bericht te verwijderen. > > This e-mail and any attachment thereto may contain information which is > confidential and/or protected by intellectual property rights and are > intended for the sole use of the addressees. Any use of the information > contained herein (including but not limited to total or partial reproduct= ion > or distribution in any form) by other persons than the addressees is > prohibited. If you have received this e-mail in error, please notify the > sender and delete its contents. > > Ce courriel et les annexes =E9ventuelles peuvent contenir des information= s > confidentielles et/ou prot=E9g=E9es par des droits de propri=E9t=E9 intel= lectuelle. > Ce message est adress=E9 exclusivement =E0 son (ses) destinataire(s). Tou= te > utilisation du contenu de ce message (y compris la reproduction ou diffus= ion > partielle ou compl=E8te sous toute forme) par une autre personne que le(s= ) > destinataire(s) est formellement interdite. Si vous avez re=E7u ce messag= e par > erreur, veuillez pr=E9venir l'exp=E9diteur du message et en d=E9truire le= contenu. > > ************************************************************* > ------=_Part_7068_105180.1214293829879--