continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r521751 - /maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/executors/PerformReleaseTaskExecutor.java
Date Fri, 23 Mar 2007 14:59:53 GMT
Author: evenisse
Date: Fri Mar 23 07:59:52 2007
New Revision: 521751

URL: http://svn.apache.org/viewvc?view=rev&rev=521751
Log:
[CONTINUUM-1221] We don't need to get the project with dependencies because child artifacts
aren't yet in the repo and we can't download them

Modified:
    maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/executors/PerformReleaseTaskExecutor.java

Modified: maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/executors/PerformReleaseTaskExecutor.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/executors/PerformReleaseTaskExecutor.java?view=diff&rev=521751&r1=521750&r2=521751
==============================================================================
--- maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/executors/PerformReleaseTaskExecutor.java
(original)
+++ maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/executors/PerformReleaseTaskExecutor.java
Fri Mar 23 07:59:52 2007
@@ -131,7 +131,7 @@
         MavenProject project;
         try
         {
-            project = projectBuilder.buildWithDependencies( getProjectDescriptorFile( descriptor
),
+            project = projectBuilder.build( getProjectDescriptorFile( descriptor ),
                                             getLocalRepository(), getProfileManager( settings
) );
 
             reactorProjects.add( project );
@@ -142,14 +142,6 @@
         {
             throw new ContinuumReleaseException( "Failed to build project.", e );
         }
-        catch ( ArtifactNotFoundException e )
-        {
-            throw new ContinuumReleaseException( "Failed to build project.", e );
-        }
-        catch ( ArtifactResolutionException e )
-        {
-            throw new ContinuumReleaseException( "Failed to build project.", e );
-        }
         
         try
         {
@@ -175,10 +167,11 @@
             String moduleDir = modules.next().toString();
 
             File pomFile = new File( project.getBasedir(), moduleDir + "/pom.xml" );
+            System.out.println( pomFile.getAbsolutePath());
 
             try
             {
-                MavenProject reactorProject = projectBuilder.buildWithDependencies( pomFile,
getLocalRepository(),
+                MavenProject reactorProject = projectBuilder.build( pomFile, getLocalRepository(),
                                                                     getProfileManager( settings
) );
 
                 reactorProjects.add( reactorProject );
@@ -186,14 +179,6 @@
                 addModules( reactorProjects, reactorProject );
             }
             catch ( ProjectBuildingException e )
-            {
-                throw new ContinuumReleaseException( "Failed to build project.", e );
-            }
-            catch ( ArtifactNotFoundException e )
-            {
-                throw new ContinuumReleaseException( "Failed to build project.", e );
-            }
-            catch ( ArtifactResolutionException e )
             {
                 throw new ContinuumReleaseException( "Failed to build project.", e );
             }



Mime
View raw message