Return-Path: Delivered-To: apmail-continuum-issues-archive@www.apache.org Received: (qmail 7222 invoked from network); 2 Mar 2009 10:15:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2009 10:15:44 -0000 Received: (qmail 66509 invoked by uid 500); 2 Mar 2009 10:15:44 -0000 Delivered-To: apmail-continuum-issues-archive@continuum.apache.org Received: (qmail 66499 invoked by uid 500); 2 Mar 2009 10:15:44 -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 66488 invoked by uid 99); 2 Mar 2009 10:15:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 02:15:43 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.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; Mon, 02 Mar 2009 10:15:34 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id EB4A015E8066 for ; Mon, 2 Mar 2009 04:15:12 -0600 (CST) Message-ID: <16117953.1235988912914.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Mon, 2 Mar 2009 04:15:12 -0600 (CST) From: "Sebastian Bathke (JIRA)" To: issues@continuum.apache.org Subject: [jira] Updated: (CONTINUUM-1814) release prepare : when generate-reactor-projects can't resolve transitively dependency. In-Reply-To: <25779166.1215012926812.JavaMail.haus-jira@codehaus01.managed.contegix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 4e90ceb663894a42f12c0e28abbab431 X-Virus-Checked: Checked by ClamAV on apache.org [ http://jira.codehaus.org/browse/CONTINUUM-1814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sebastian Bathke updated CONTINUUM-1814: ---------------------------------------- Attachment: GenerateReactorProjects_snippet.java I just modified the GenerateReactorProjects Class of the continuum-release module to invoke the usual "build()" instead of the "buildWithDependencies()" Method of the MavenProjectsBuilder (see attached Source snippet). This resolves the problems with transitive Dependencies in my project. I didn't had the time to read about the exact difference of this two methods, the idea to change it was the result of reading this comment in the "buildWithDependencies()" Method // ---------------------------------------------------------------------- // Typically when the project builder is being used from maven proper // the transitive dependencies will not be resolved here because this // requires a lot of work when we may only be interested in running // something simple like 'm2 clean'. So the artifact collector is used // in the dependency resolution phase if it is required by any of the // goals being executed. But when used as a component in another piece // of code people may just want to build maven projects and have the // dependencies resolved for whatever reason: this is why we keep // this snippet of code here. // ---------------------------------------------------------------------- I would appreciate if someone could look over this workaround ;) > release prepare : when generate-reactor-projects can't resolve transitively dependency. > --------------------------------------------------------------------------------------- > > Key: CONTINUUM-1814 > URL: http://jira.codehaus.org/browse/CONTINUUM-1814 > Project: Continuum > Issue Type: Bug > Components: Release > Affects Versions: 1.1 > Environment: maven 2.0.7, subversion 1.4.2 > Reporter: jsteve > Fix For: 1.x > > Attachments: GenerateReactorProjects_snippet.java > > > [INFO] Updating local copy against the scm... > [ERROR] org.apache.maven.shared.release.ReleaseExecutionException: Unable to get reactor projects: Failed to build project. > at org.apache.maven.continuum.release.phase.GenerateReactorProjectsPhase.execute(GenerateReactorProjectsPhase.java:82) > at org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:194) > at org.apache.maven.shared.release.DefaultReleaseManager.prepareWithResult(DefaultReleaseManager.java:107) > at org.apache.maven.continuum.release.executors.PrepareReleaseTaskExecutor.execute(PrepareReleaseTaskExecutor.java:43) > at org.apache.maven.continuum.release.executors.AbstractReleaseTaskExecutor.executeTask(AbstractReleaseTaskExecutor.java:67) > 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: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.release.ContinuumReleaseException: Failed to build project. > at org.apache.maven.continuum.release.phase.GenerateReactorProjectsPhase.addModules(GenerateReactorProjectsPhase.java:169) > at org.apache.maven.continuum.release.phase.GenerateReactorProjectsPhase.getReactorProjects(GenerateReactorProjectsPhase.java:109) > at org.apache.maven.continuum.release.phase.GenerateReactorProjectsPhase.execute(GenerateReactorProjectsPhase.java:78) > ... 10 more > Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing: > ---------- > 1) fr.paris.lutece:lutece-core:lutece-core:2.1.2 > Try downloading the file manually from the project website. > Then, install it using the command: > mvn install:install-file -DgroupId=fr.paris.lutece -DartifactId=lutece-core \ > -Dversion=2.1.2 -Dpackaging=lutece-core -Dfile=/path/to/file > Path to dependency: > 1) fr.paris.lutece.plugins:lutece-plugins-pom:pom:2.6-SNAPSHOT > 2) fr.paris.lutece.plugins:library-lutece-unit-testing:jar:2.0.2 > 3) fr.paris.lutece:lutece-core:lutece-core:2.1.2 > ---------- > 1 required artifact is missing. > for artifact: > fr.paris.lutece.plugins:lutece-plugins-pom:pom:2.6-SNAPSHOT > from the specified remote repositories: > central (http://repo1.maven.org/maven2), > codehausSnapshots (http://snapshots.maven.codehaus.org/maven2), > lutece (http://dev.lutece.paris.fr/maven_repository), > luteceSnapshot (http://dev.lutece.paris.fr/snapshot_repository) > at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:305) > at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:272) > at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:253) > at org.apache.maven.project.DefaultMavenProjectBuilder.buildWithDependencies(DefaultMavenProjectBuilder.java:367) > at org.apache.maven.project.DefaultMavenProjectBuilder.buildWithDependencies(DefaultMavenProjectBuilder.java:315) > at org.apache.maven.continuum.release.phase.GenerateReactorProjectsPhase.addModules(GenerateReactorProjectsPhase.java:151) > ... 12 more > the Artifact is in my repository and in my local repository. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira