You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jd...@apache.org on 2007/10/23 22:07:04 UTC

svn commit: r587638 - in /maven/components/trunk/maven-project/src/main/java/org/apache/maven/project: ./ artifact/ build/model/

Author: jdcasey
Date: Tue Oct 23 13:07:03 2007
New Revision: 587638

URL: http://svn.apache.org/viewvc?rev=587638&view=rev
Log:
Rollback changes generalizing exception ctors; this destroys traceability in the code for which combinations of exceptions are used in the system to produce an error.

Modified:
    maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java
    maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/DuplicateProjectException.java
    maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/InvalidProjectModelException.java
    maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/ProjectBuildingException.java
    maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/artifact/InvalidDependencyVersionException.java
    maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/build/model/DefaultModelLineageBuilder.java

Modified: maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java?rev=587638&r1=587637&r2=587638&view=diff
==============================================================================
--- maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java (original)
+++ maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java Tue Oct 23 13:07:03 2007
@@ -78,8 +78,6 @@
 import java.io.IOException;
 import java.io.Reader;
 import java.io.StringReader;
-import java.net.URI;
-import java.net.URISyntaxException;
 import java.net.URL;
 import java.util.ArrayList;
 import java.util.Collections;
@@ -211,8 +209,7 @@
 
         Model model = findModelFromRepository( artifact, remoteArtifactRepositories, localRepository );
 
-        return buildInternal( artifact.getFile(), model, localRepository, remoteArtifactRepositories, null, null,
-                              false, false );
+        return buildInternal( "Artifact [" + artifact + "]", model, localRepository, remoteArtifactRepositories, null, null, false, false );
     }
 
     private MavenProject superProject;
@@ -292,7 +289,7 @@
         {
             throw new ProjectBuildingException( projectId,
                 "Unable to build project due to an invalid dependency version: " +
-                    e.getMessage(), projectDescriptor, e );
+                    e.getMessage(), projectDescriptor.getAbsolutePath(), e );
         }
 
         ArtifactResolutionRequest request = new ArtifactResolutionRequest()
@@ -374,7 +371,7 @@
                 catch ( InvalidVersionSpecificationException e )
                 {
                     throw new ProjectBuildingException( projectId, "Unable to parse version '" + d.getVersion() +
-                        "' for dependency '" + d.getManagementKey() + "': " + e.getMessage(), pomFile, e );
+                        "' for dependency '" + d.getManagementKey() + "': " + e.getMessage(), pomFile.getAbsolutePath(), e );
                 }
             }
         }
@@ -400,7 +397,7 @@
 
         Model model = readModel( "unknown", projectDescriptor, STRICT_MODEL_PARSING );
 
-        MavenProject project = buildInternal( projectDescriptor,
+        MavenProject project = buildInternal( projectDescriptor.getAbsolutePath(),
             model,
             localRepository,
             buildArtifactRepositories( getSuperModel() ),
@@ -529,7 +526,7 @@
     // jvz:note
     // We've got a mixture of things going in the USD and from the repository, sometimes the descriptor
     // is a real file and sometimes null which makes things confusing.
-    private MavenProject buildInternal( File pomLocation,
+    private MavenProject buildInternal( String pomLocation,
                                         Model model,
                                         ArtifactRepository localRepository,
                                         List parentSearchRepositories,
@@ -557,7 +554,7 @@
             }
             catch ( ProfileActivationException e )
             {
-                throw new ProjectBuildingException( projectId, "Failed to activate external profiles.", projectDescriptor, e );
+                throw new ProjectBuildingException( projectId, "Failed to activate external profiles.", projectDescriptor.getAbsolutePath(), e );
             }
 
             explicitlyActive = externalProfileManager.getExplicitlyActivatedIds();
@@ -648,11 +645,11 @@
         }
         catch ( ModelInterpolationException e )
         {
-            throw new InvalidProjectModelException( projectId, e.getMessage(), pomLocation, e );
+            throw new InvalidProjectModelException( projectId, pomLocation, e.getMessage(), e );
         }
         catch ( InvalidRepositoryException e )
         {
-            throw new InvalidProjectModelException( projectId, e.getMessage(), pomLocation, e );
+            throw new InvalidProjectModelException( projectId, pomLocation, e.getMessage(), e );
         }
 
         ProjectBuildCache projectBuildCache = ProjectBuildCache.read( buildContextManager );
@@ -801,7 +798,7 @@
      * the resolved source roots, etc for the parent - that occurs for the parent when it is constructed independently
      * and projects are not cached or reused
      */
-    private MavenProject processProjectLogic( File pomLocation,
+    private MavenProject processProjectLogic( String pomLocation,
                                               MavenProject project,
                                               File pomFile,
                                               boolean strict )
@@ -885,7 +882,7 @@
 
         if ( validationResult.getMessageCount() > 0 )
         {
-            throw new InvalidProjectModelException( projectId, "Failed to validate POM", pomLocation,
+            throw new InvalidProjectModelException( projectId, pomLocation, "Failed to validate POM",
                 validationResult );
         }
 
@@ -1001,17 +998,17 @@
         try
         {
             reader = ReaderFactory.newXmlReader( file );
-            return readModel( projectId, file.toURI(), reader, strict );
+            return readModel( projectId, file.getAbsolutePath(), reader, strict );
         }
         catch ( FileNotFoundException e )
         {
             throw new ProjectBuildingException( projectId,
-                "Could not find the model file '" + file.getAbsolutePath() + "'.", file, e );
+                "Could not find the model file '" + file.getAbsolutePath() + "'.", file.getAbsolutePath(), e );
         }
         catch ( IOException e )
         {
             throw new ProjectBuildingException( projectId, "Failed to build model from file '" +
-                file.getAbsolutePath() + "'.\nError: \'" + e.getLocalizedMessage() + "\'", file, e );
+                file.getAbsolutePath() + "'.\nError: \'" + e.getLocalizedMessage() + "\'", file.getAbsolutePath(), e );
         }
         finally
         {
@@ -1020,7 +1017,7 @@
     }
 
     private Model readModel( String projectId,
-                             URI pomLocation,
+                             String pomLocation,
                              Reader reader,
                              boolean strict )
         throws IOException, InvalidProjectModelException
@@ -1029,7 +1026,7 @@
 
         if ( modelSource.indexOf( "<modelVersion>" + MAVEN_MODEL_VERSION ) < 0 )
         {
-            throw new InvalidProjectModelException( projectId, "Not a v" + MAVEN_MODEL_VERSION + " POM.", pomLocation );
+            throw new InvalidProjectModelException( projectId, pomLocation, "Not a v" + MAVEN_MODEL_VERSION  + " POM." );
         }
 
         StringReader sReader = new StringReader( modelSource );
@@ -1040,8 +1037,8 @@
         }
         catch ( XmlPullParserException e )
         {
-            throw new InvalidProjectModelException( projectId, "Parse error reading POM. Reason: " + e.getMessage(),
-                                                    pomLocation, e );
+            throw new InvalidProjectModelException( projectId, pomLocation,
+                "Parse error reading POM. Reason: " + e.getMessage(), e );
         }
     }
 
@@ -1051,22 +1048,15 @@
         throws ProjectBuildingException
     {
         Reader reader = null;
-        URI uri = null;
         try
         {
-            uri = url.toURI();
             reader = ReaderFactory.newXmlReader( url.openStream() );
-            return readModel( projectId, uri, reader, strict );
+            return readModel( projectId, url.toExternalForm(), reader, strict );
         }
         catch ( IOException e )
         {
             throw new ProjectBuildingException( projectId, "Failed build model from URL \'" + url.toExternalForm() +
-                "\'\nError: \'" + e.getLocalizedMessage() + "\'", uri, e );
-        }
-        catch ( URISyntaxException e )
-        {
-            throw new ProjectBuildingException( projectId, "Failed build model from URL \'" + url.toExternalForm()
-                + "\'\nError: \'" + e.getLocalizedMessage() + "\'", e );
+                "\'\nError: \'" + e.getLocalizedMessage() + "\'", url.toExternalForm(), e );
         }
         finally
         {
@@ -1074,33 +1064,10 @@
         }
     }
 
-    /**
-     * @deprecated use {@link #createPluginArtifacts(String, List, File)}
-     * @param projectId
-     * @param plugins
-     * @param pomLocation absolute path of pom file
-     * @return
-     * @throws ProjectBuildingException
-     */
     protected Set createPluginArtifacts( String projectId,
                                          List plugins, String pomLocation )
         throws ProjectBuildingException
     {
-        return createPluginArtifacts( projectId, plugins, new File( pomLocation ) );
-    }
-
-    /**
-     * 
-     * @param projectId
-     * @param plugins
-     * @param pomLocation pom file
-     * @return
-     * @throws ProjectBuildingException
-     */
-    protected Set createPluginArtifacts( String projectId,
-                                         List plugins, File pomLocation )
-        throws ProjectBuildingException
-    {
         Set pluginArtifacts = new HashSet();
 
         for ( Iterator i = plugins.iterator(); i.hasNext(); )
@@ -1139,24 +1106,9 @@
         return pluginArtifacts;
     }
 
-    /**
-     * @deprecated use {@link #createReportArtifacts(String, List, File)}
-     * @param projectId
-     * @param reports
-     * @param pomLocation absolute path of pom file
-     * @return
-     * @throws ProjectBuildingException
-     */
-    protected Set createReportArtifacts( String projectId,
-                                         List reports, String pomLocation )
-        throws ProjectBuildingException
-    {
-        return createReportArtifacts( projectId, reports, new File( pomLocation ) );
-    }
-
     // TODO: share with createPluginArtifacts?
     protected Set createReportArtifacts( String projectId,
-                                         List reports, File pomLocation )
+                                         List reports, String pomLocation )
         throws ProjectBuildingException
     {
         Set pluginArtifacts = new HashSet();
@@ -1200,24 +1152,9 @@
         return pluginArtifacts;
     }
 
-    /**
-     * @deprecated use {@link #createExtensionArtifacts(String, List, File)}
-     * @param projectId
-     * @param extensions
-     * @param pomLocation absolute path of pom file
-     * @return
-     * @throws ProjectBuildingException
-     */
-    protected Set createExtensionArtifacts( String projectId,
-                                            List extensions, String pomLocation )
-        throws ProjectBuildingException
-    {
-        return createExtensionArtifacts( projectId, extensions, new File( pomLocation ) );
-    }
-
     // TODO: share with createPluginArtifacts?
     protected Set createExtensionArtifacts( String projectId,
-                                            List extensions, File pomLocation )
+                                            List extensions, String pomLocation )
         throws ProjectBuildingException
     {
         Set extensionArtifacts = new HashSet();

Modified: maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/DuplicateProjectException.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/DuplicateProjectException.java?rev=587638&r1=587637&r2=587638&view=diff
==============================================================================
--- maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/DuplicateProjectException.java (original)
+++ maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/DuplicateProjectException.java Tue Oct 23 13:07:03 2007
@@ -36,25 +36,6 @@
 
     private final File conflictingProjectFile;
 
-    /**
-     * @deprecated use {@link #DuplicateProjectException(String, File, File, String)}
-     */
-    public DuplicateProjectException( String message )
-    {
-        this( null, null, null, message );
-    }
-    
-    /**
-     * @deprecated use {@link #DuplicateProjectException(String, File, File, String)}
-     */
-    public DuplicateProjectException( String message, Exception e )
-    {
-        super( message, e );
-        this.projectId = null;
-        this.existingProjectFile = null;
-        this.conflictingProjectFile = null;
-    }
-
     public DuplicateProjectException( String projectId,
                                       File existingProjectFile,
                                       File conflictingProjectFile,

Modified: maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/InvalidProjectModelException.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/InvalidProjectModelException.java?rev=587638&r1=587637&r2=587638&view=diff
==============================================================================
--- maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/InvalidProjectModelException.java (original)
+++ maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/InvalidProjectModelException.java Tue Oct 23 13:07:03 2007
@@ -19,117 +19,55 @@
  * under the License.
  */
 
-import java.io.File;
-import java.net.URI;
-
+import org.apache.maven.artifact.InvalidRepositoryException;
+import org.apache.maven.project.interpolation.ModelInterpolationException;
 import org.apache.maven.project.validation.ModelValidationResult;
+import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
 
 public class InvalidProjectModelException
     extends ProjectBuildingException
 {
     private ModelValidationResult validationResult;
 
-    /**
-     * 
-     * @param projectId
-     * @param message
-     * @param pomFile pom file
-     * @param cause
-     */
-    public InvalidProjectModelException( String projectId,
-                                         String message,
-                                         File pomFile,
-                                         Throwable cause )
-    {
-        super( projectId, message, pomFile, cause );
-    }
-
-    /**
-     * 
-     * @param projectId
-     * @param message
-     * @param pomLocation pom location
-     * @param cause
-     */
     public InvalidProjectModelException( String projectId,
+                                         String pomLocation,
                                          String message,
-                                         URI pomLocation,
-                                         Throwable cause )
+                                         ModelInterpolationException cause )
     {
         super( projectId, message, pomLocation, cause );
     }
 
-    /**
-     * 
-     * @param projectId
-     * @param message
-     * @param pomLocation pom location
-     */
-    public InvalidProjectModelException( String projectId,
-                                         String message,
-                                         URI pomLocation )
-    {
-        super( projectId, message, pomLocation );
-    }
-
-    /**
-     * @deprecated use {@link #InvalidProjectModelException(String, String, File, Throwable)}
-     * @param projectId
-     * @param pomLocation absolute path of the pom file
-     * @param message
-     * @param cause
-     */
     public InvalidProjectModelException( String projectId,
                                          String pomLocation,
                                          String message,
-                                         Throwable cause )
+                                         InvalidRepositoryException cause )
     {
-        super( projectId, message, new File( pomLocation ), cause );
+        super( projectId, message, pomLocation, cause );
     }
 
-    /**
-     * @deprecated use {@link #InvalidProjectModelException(String, String, File, ModelValidationResult)}
-     * @param projectId
-     * @param pomLocation absolute path of the pom file
-     * @param message
-     * @param validationResult
-     */
     public InvalidProjectModelException( String projectId,
                                          String pomLocation,
                                          String message,
                                          ModelValidationResult validationResult )
     {
-        this( projectId, message, new File( pomLocation ), validationResult );
-    }
-
-    public InvalidProjectModelException( String projectId,
-                                         String message,
-                                         File pomFile,
-                                         ModelValidationResult validationResult )
-    {
-        super( projectId, message, pomFile );
+        super( projectId, message, pomLocation );
 
         this.validationResult = validationResult;
     }
 
     public InvalidProjectModelException( String projectId,
-                                         String message,
-                                         File pomLocation )
+                                         String pomLocation,
+                                         String message )
     {
         super( projectId, message, pomLocation );
     }
 
-    /**
-     * @deprecated use {@link #InvalidProjectModelException(String, String, File)}
-     * @param projectId
-     * @param pomLocation absolute path of the pom file
-     * @param message
-     */
     public InvalidProjectModelException( String projectId,
                                          String pomLocation,
-                                         String message )
+                                         String message,
+                                         XmlPullParserException cause )
     {
-        super( projectId, message, new File( pomLocation ) );
+        super( projectId, message, pomLocation, cause );
     }
 
     public final ModelValidationResult getValidationResult()

Modified: maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/ProjectBuildingException.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/ProjectBuildingException.java?rev=587638&r1=587637&r2=587638&view=diff
==============================================================================
--- maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/ProjectBuildingException.java (original)
+++ maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/ProjectBuildingException.java Tue Oct 23 13:07:03 2007
@@ -1,7 +1,15 @@
 package org.apache.maven.project;
 
-import java.io.File;
-import java.net.URI;
+import org.apache.maven.artifact.InvalidRepositoryException;
+import org.apache.maven.artifact.resolver.ArtifactNotFoundException;
+import org.apache.maven.artifact.resolver.ArtifactResolutionException;
+import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException;
+import org.apache.maven.profiles.activation.ProfileActivationException;
+import org.apache.maven.project.artifact.InvalidDependencyVersionException;
+import org.apache.maven.project.interpolation.ModelInterpolationException;
+import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
+
+import java.io.IOException;
 
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
@@ -31,106 +39,149 @@
 {
     private final String projectId;
 
-    private URI pomUri;
+    private String pomLocation;
+
+    public ProjectBuildingException( String projectId,
+                                     String message )
+    {
+        super( message );
+        this.projectId = projectId;
+    }
+
+    protected ProjectBuildingException( String projectId,
+                                        String message,
+                                        String pomLocation )
+    {
+        super( message );
+        this.projectId = projectId;
+        this.pomLocation = pomLocation;
+    }
+
+    public ProjectBuildingException( String projectId,
+                                     String message,
+                                     String pomLocation,
+                                     ProfileActivationException cause )
+    {
+        super( message, cause );
+        this.projectId = projectId;
+        this.pomLocation = pomLocation;
+    }
+
+    public ProjectBuildingException( String projectId,
+                                     String message,
+                                     String pomLocation,
+                                     IOException cause )
+    {
+        super( message, cause );
+        this.projectId = projectId;
+        this.pomLocation = pomLocation;
+    }
+
+    public ProjectBuildingException( String projectId,
+                                     String message,
+                                     String pomLocation,
+                                     XmlPullParserException cause )
+    {
+        super( message, cause );
+        this.projectId = projectId;
+        this.pomLocation = pomLocation;
+    }
+
+    protected ProjectBuildingException( String projectId,
+                                     String message,
+                                     XmlPullParserException cause )
+    {
+        super( message, cause );
+        this.projectId = projectId;
+    }
 
-    public ProjectBuildingException( String projectId, String message )
+    public ProjectBuildingException( String projectId,
+                                     String message,
+                                     String pomLocation,
+                                     InvalidRepositoryException cause )
     {
-        this( message, projectId, (File) null );
+        super( message, cause );
+        this.projectId = projectId;
+        this.pomLocation = pomLocation;
     }
 
-    /**
-     * @deprecated use {@link #ProjectBuildingException(String, String, File)}
-     * @param projectId
-     * @param message
-     * @param pomLocation absolute path of the pom file
-     */
-    protected ProjectBuildingException( String projectId, String message, String pomLocation )
+    public ProjectBuildingException( String projectId,
+                                     String message,
+                                     InvalidRepositoryException cause )
     {
-        this( projectId, message, pomLocation, null );
+        super( message, cause );
+        this.projectId = projectId;
     }
 
-    /**
-     * @deprecated use {@link #ProjectBuildingException(String, String, File, Throwable)}
-     * @param projectId
-     * @param message
-     * @param pomLocation absolute path of the pom file
-     * @param cause
-     */
-    public ProjectBuildingException( String projectId, String message, String pomLocation, Throwable cause )
+    public ProjectBuildingException( String projectId,
+                                     String message,
+                                     ArtifactResolutionException cause )
     {
-        this( projectId, message, new File( pomLocation ), null );
+        super( message, cause );
+        this.projectId = projectId;
     }
 
-    /**
-     * 
-     * @param projectId
-     * @param message
-     * @param pomFile pom file location
-     */
-    public ProjectBuildingException( String projectId, String message, File pomFile )
+    public ProjectBuildingException( String projectId,
+                                     String message,
+                                     ArtifactNotFoundException cause )
     {
-        this( projectId, message, pomFile, null );
+        super( message, cause );
+        this.projectId = projectId;
     }
 
-    /**
-     * 
-     * @param projectId
-     * @param message
-     * @param cause
-     */
-    public ProjectBuildingException( String projectId, String message, Throwable cause )
+    public ProjectBuildingException( String projectId,
+                                     String message,
+                                     String pomLocation,
+                                     ArtifactResolutionException cause )
     {
-        this( projectId, message, (URI) null, cause );
+        super( message, cause );
+        this.projectId = projectId;
+        this.pomLocation = pomLocation;
     }
 
-    /**
-     * @param projectId
-     * @param message
-     * @param pomFile pom file location
-     * @param cause
-     */
-    public ProjectBuildingException( String projectId, String message, File pomFile, Throwable cause )
+    public ProjectBuildingException( String projectId,
+                                     String message,
+                                     String pomLocation,
+                                     ArtifactNotFoundException cause )
     {
-        this( projectId, message, pomFile.toURI(), cause );
+        super( message, cause );
+        this.projectId = projectId;
+        this.pomLocation = pomLocation;
     }
 
-    /**
-     * Equivalent to new ProjectBuildingException(projectId, message, pomUri, null)
-     * @see #ProjectBuildingException(String, String, URI, Throwable)
-     */
-    public ProjectBuildingException( String projectId, String message, URI pomUri )
+    public ProjectBuildingException( String projectId,
+                                     String message,
+                                     String pomLocation,
+                                     InvalidVersionSpecificationException cause )
     {
-        this( projectId, message, pomUri, null );
+        super( message, cause );
+        this.projectId = projectId;
+        this.pomLocation = pomLocation;
     }
 
-    /**
-     * @param projectId
-     * @param message
-     * @param pomUri location of the pom
-     * @param cause
-     */
-    public ProjectBuildingException( String projectId, String message, URI pomUri, Throwable cause )
+    public ProjectBuildingException( String projectId,
+                                     String message,
+                                     String pomLocation,
+                                     InvalidDependencyVersionException cause )
     {
         super( message, cause );
         this.projectId = projectId;
-        this.pomUri = pomUri;
+        this.pomLocation = pomLocation;
     }
 
-    public URI getPomUri()
+    protected ProjectBuildingException( String projectId,
+                                        String message,
+                                        String pomLocation,
+                                        ModelInterpolationException cause )
     {
-        return pomUri;
+        super( message, cause );
+        this.projectId = projectId;
+        this.pomLocation = pomLocation;
     }
 
-    /**
-     * @deprecated use {@link #getPomUri()}
-     */
     public String getPomLocation()
     {
-        if ( "file".equals( getPomUri().getScheme() ) )
-        {
-            return new File( getPomUri() ).getAbsolutePath();
-        }
-        return getPomUri().toString();
+        return pomLocation;
     }
 
     public String getProjectId()
@@ -141,6 +192,7 @@
     public String getMessage()
     {
         return super.getMessage() + " for project " + projectId
-            + ( ( getPomUri() == null ? "" : " at " + getPomLocation() ) );
+               + ( ( pomLocation == null ? "" : " at " + pomLocation ) );
     }
+
 }

Modified: maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/artifact/InvalidDependencyVersionException.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/artifact/InvalidDependencyVersionException.java?rev=587638&r1=587637&r2=587638&view=diff
==============================================================================
--- maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/artifact/InvalidDependencyVersionException.java (original)
+++ maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/artifact/InvalidDependencyVersionException.java Tue Oct 23 13:07:03 2007
@@ -34,12 +34,4 @@
     {
         super( message, cause );
     }
-
-    /**
-     * @deprecated use {@link #InvalidDependencyVersionException(String, InvalidVersionSpecificationException)}
-     */
-    public InvalidDependencyVersionException( String message, Exception cause )
-    {
-        super( message, cause );
-    }
 }

Modified: maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/build/model/DefaultModelLineageBuilder.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/build/model/DefaultModelLineageBuilder.java?rev=587638&r1=587637&r2=587638&view=diff
==============================================================================
--- maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/build/model/DefaultModelLineageBuilder.java (original)
+++ maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/build/model/DefaultModelLineageBuilder.java Tue Oct 23 13:07:03 2007
@@ -198,11 +198,11 @@
         }
         catch ( IOException e )
         {
-            throw new ProjectBuildingException( "unknown", "Failed to read model from: " + pomFile, pomFile, e );
+            throw new ProjectBuildingException( "unknown", "Failed to read model from: " + pomFile, pomFile.getAbsolutePath(), e );
         }
         catch ( XmlPullParserException e )
         {
-            throw new ProjectBuildingException( "unknown", "Failed to parse model from: " + pomFile, pomFile, e );
+            throw new ProjectBuildingException( "unknown", "Failed to parse model from: " + pomFile, pomFile.getAbsolutePath(), e );
         }
         finally
         {
@@ -251,7 +251,7 @@
             catch ( InvalidRepositoryException e )
             {
                 throw new ProjectBuildingException( model.getId(), "Failed to create ArtifactRepository list for: "
-                    + pomFile, pomFile, e );
+                    + pomFile, pomFile.getAbsolutePath(), e );
             }
         }