Removed unneeded class/methods related to extension scanner.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@700300 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Britton Isbell 2008-09-29 23:02:15 +00:00
parent 534b660b4e
commit 3af42c2f05
3 changed files with 0 additions and 217 deletions

View File

@ -20,7 +20,6 @@ import org.apache.maven.project.InvalidProjectVersionException;
import org.apache.maven.project.MavenProject;
import org.apache.maven.project.ProjectBuilderConfiguration;
import org.apache.maven.project.artifact.InvalidDependencyVersionException;
import org.apache.maven.project.ModelAndFile;
import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
@ -551,50 +550,6 @@ public class DefaultProjectErrorReporter
registerBuildError( cause, writer.toString() );
}
public void reportErrorParsingParentProjectModel( ModelAndFile childInfo,
File parentPomFile,
XmlPullParserException cause )
{
StringWriter writer = new StringWriter();
writer.write( NEWLINE );
if ( parentPomFile == null )
{
writer.write( "Error parsing built-in super POM!" );
}
else
{
writer.write( "Error parsing parent-POM." );
}
writer.write( NEWLINE );
writer.write( NEWLINE );
writer.write( cause.getMessage() );
writer.write( NEWLINE );
writer.write( NEWLINE );
writer.write( "Line: " );
writer.write( "" + cause.getLineNumber() );
writer.write( NEWLINE );
writer.write( "Column: " );
writer.write( "" + cause.getColumnNumber() );
writer.write( NEWLINE );
String projectId = childInfo.getModel().getParent().getId();
String childId = childInfo.getModel().getId();
addStandardInfo( projectId, parentPomFile, writer );
writer.write( NEWLINE );
writer.write( NEWLINE );
writer.write( "Child-Project Id: " );
writer.write( childId );
addTips( ProjectErrorTips.getTipsForPomParsingError( projectId, parentPomFile, cause ),
writer );
registerBuildError( cause, writer.toString() );
}
public void reportErrorParsingProjectModel( String projectId,
File pomFile,
IOException cause )
@ -623,43 +578,6 @@ public class DefaultProjectErrorReporter
registerBuildError( cause, writer.toString() );
}
public void reportErrorParsingParentProjectModel( ModelAndFile childInfo,
File parentPomFile,
IOException cause )
{
StringWriter writer = new StringWriter();
writer.write( NEWLINE );
if ( parentPomFile == null )
{
writer.write( "Error reading built-in super POM!" );
}
else
{
writer.write( "Error reading parent-POM." );
}
writer.write( NEWLINE );
writer.write( NEWLINE );
writer.write( cause.getMessage() );
writer.write( NEWLINE );
String projectId = childInfo.getModel().getParent().getId();
String childId = childInfo.getModel().getId();
addStandardInfo( projectId, parentPomFile, writer );
writer.write( NEWLINE );
writer.write( NEWLINE );
writer.write( "Child-Project Id: " );
writer.write( childId );
addTips( ProjectErrorTips.getTipsForPomParsingError( projectId, parentPomFile, cause ),
writer );
registerBuildError( cause, writer.toString() );
}
public void reportParentPomArtifactNotFound( Parent parentRef,
ProjectBuilderConfiguration config,
List remoteRepos,

View File

@ -1,11 +1,8 @@
package org.apache.maven.errors;
import org.apache.maven.artifact.InvalidRepositoryException;
import org.apache.maven.artifact.resolver.ArtifactNotFoundException;
import org.apache.maven.artifact.resolver.ArtifactResolutionException;
import org.apache.maven.model.DeploymentRepository;
import org.apache.maven.model.Model;
import org.apache.maven.model.Parent;
import org.apache.maven.model.Profile;
import org.apache.maven.model.Repository;
import org.apache.maven.profiles.activation.ProfileActivationContext;
@ -15,9 +12,7 @@ import org.apache.maven.execution.DuplicateProjectException;
import org.apache.maven.project.InvalidProjectModelException;
import org.apache.maven.project.InvalidProjectVersionException;
import org.apache.maven.project.MavenProject;
import org.apache.maven.project.ProjectBuilderConfiguration;
import org.apache.maven.project.artifact.InvalidDependencyVersionException;
import org.apache.maven.project.ModelAndFile;
import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
@ -270,21 +265,6 @@ public interface ProjectErrorReporter
File pomFile,
XmlPullParserException cause );
/**
* <b>Call Stack:</b>
* <br/>
* <pre>
* ...
* --&gt; DefaultModelLineageBuilder.buildModelLineage(..)
* --&gt; DefaultModelLineageBuilder.readModel(..) (private)
* --&gt; thrown XmlPullParserException
* &lt;------ ProjectBuildingException
* </pre>
*/
void reportErrorParsingParentProjectModel( ModelAndFile childInfo,
File parentPomFile,
XmlPullParserException cause );
/**
* <b>Call Stack:</b>
* <br/>
@ -303,59 +283,6 @@ public interface ProjectErrorReporter
File pomFile,
IOException cause );
/**
* <b>Call Stack:</b>
* <br/>
* <pre>
* ...
* --&gt; DefaultModelLineageBuilder.buildModelLineage(..)
* --&gt; DefaultModelLineageBuilder.readModel(..) (private)
* --&gt; thrown IOException
* &lt;------ ProjectBuildingException
* </pre>
*/
void reportErrorParsingParentProjectModel( ModelAndFile childInfo,
File parentPomFile,
IOException cause );
/**
* <b>Call Stack:</b>
* <br/>
* <pre>
* ...
* --&gt; DefaultModelLineageBuilder.buildModelLineage(..)
* --&gt; DefaultModelLineageBuilder.resolveParentPom(..) (private)
* --&gt; DefaultModelLineageBuilder.resolveParentFromRepository(..) (private)
* --&gt; thrown ArtifactNotFoundException
* &lt;---------- ProjectBuildingException
* </pre>
*/
void reportParentPomArtifactNotFound( Parent parentRef,
ProjectBuilderConfiguration config,
List remoteRepos,
String childId,
File childPomFile,
ArtifactNotFoundException cause );
/**
* <b>Call Stack:</b>
* <br/>
* <pre>
* ...
* --&gt; DefaultModelLineageBuilder.buildModelLineage(..)
* --&gt; DefaultModelLineageBuilder.resolveParentPom(..) (private)
* --&gt; DefaultModelLineageBuilder.resolveParentFromRepository(..) (private)
* --&gt; thrown ArtifactResolutionException
* &lt;---------- ProjectBuildingException
* </pre>
*/
void reportParentPomArtifactUnresolvable( Parent parentRef,
ProjectBuilderConfiguration config,
List remoteRepos,
String childId,
File childPomFile,
ArtifactResolutionException cause );
/**
* <b>Call Stack:</b>
* <br/>

View File

@ -1,62 +0,0 @@
package org.apache.maven.project;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.model.Model;
import java.io.File;
public class ModelAndFile
{
private final Model model;
private final File file;
private final boolean validProfilesXmlLocation;
public ModelAndFile( Model model, File file, boolean validProfilesXmlLocation )
{
this.model = model;
this.file = file;
this.validProfilesXmlLocation = validProfilesXmlLocation;
}
public Model getModel()
{
return model;
}
public File getFile()
{
return file;
}
public boolean isValidProfilesXmlLocation()
{
return validProfilesXmlLocation;
}
public String toString()
{
return model.getId() + "@" + file;
}
}