mirror of https://github.com/apache/maven.git
Remove UnsupportedOperationExceptions, ignore invalid mutator methods so we will continue to derive information from the parent artifact where necessary and still work in the changing maven-artifact framework.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@594363 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b4f9ac3067
commit
775ee6c5bb
|
@ -59,7 +59,7 @@ public class AttachedArtifact
|
|||
|
||||
public void setArtifactId( String artifactId )
|
||||
{
|
||||
throw new UnsupportedOperationException( "Cannot change the artifactId for an attached artifact. It is derived from the main artifact." );
|
||||
// ignore this. We should ALWAYS use the information from the parent artifact.
|
||||
}
|
||||
|
||||
public List getAvailableVersions()
|
||||
|
@ -69,7 +69,7 @@ public class AttachedArtifact
|
|||
|
||||
public void setAvailableVersions( List availableVersions )
|
||||
{
|
||||
throw new UnsupportedOperationException( "Cannot change the version information for an attached artifact. It is derived from the main artifact." );
|
||||
// ignore this. We should ALWAYS use the information from the parent artifact.
|
||||
}
|
||||
|
||||
public String getBaseVersion()
|
||||
|
@ -79,7 +79,7 @@ public class AttachedArtifact
|
|||
|
||||
public void setBaseVersion( String baseVersion )
|
||||
{
|
||||
throw new UnsupportedOperationException( "Cannot change the version information for an attached artifact. It is derived from the main artifact." );
|
||||
// ignore this. We should ALWAYS use the information from the parent artifact.
|
||||
}
|
||||
|
||||
public String getDownloadUrl()
|
||||
|
@ -89,12 +89,12 @@ public class AttachedArtifact
|
|||
|
||||
public void setDownloadUrl( String downloadUrl )
|
||||
{
|
||||
throw new UnsupportedOperationException( "Cannot change the download information for an attached artifact. It is derived from the main artifact." );
|
||||
// ignore this. We should ALWAYS use the information from the parent artifact.
|
||||
}
|
||||
|
||||
public void setGroupId( String groupId )
|
||||
{
|
||||
throw new UnsupportedOperationException( "Cannot change the groupId on attached artifacts. It is derived from the main artifact." );
|
||||
// ignore this. We should ALWAYS use the information from the parent artifact.
|
||||
}
|
||||
|
||||
public ArtifactRepository getRepository()
|
||||
|
@ -104,7 +104,7 @@ public class AttachedArtifact
|
|||
|
||||
public void setRepository( ArtifactRepository repository )
|
||||
{
|
||||
throw new UnsupportedOperationException( "Cannot change the repository information for an attached artifact. It is derived from the main artifact." );
|
||||
// ignore this. We should ALWAYS use the information from the parent artifact.
|
||||
}
|
||||
|
||||
public String getScope()
|
||||
|
@ -114,7 +114,7 @@ public class AttachedArtifact
|
|||
|
||||
public void setScope( String scope )
|
||||
{
|
||||
throw new UnsupportedOperationException( "Cannot change the scoping information for an attached artifact. It is derived from the main artifact." );
|
||||
// ignore this. We should ALWAYS use the information from the parent artifact.
|
||||
}
|
||||
|
||||
public String getVersion()
|
||||
|
@ -124,7 +124,7 @@ public class AttachedArtifact
|
|||
|
||||
public void setVersion( String version )
|
||||
{
|
||||
throw new UnsupportedOperationException( "Cannot change the version information for an attached artifact. It is derived from the main artifact." );
|
||||
// ignore this. We should ALWAYS use the information from the parent artifact.
|
||||
}
|
||||
|
||||
public VersionRange getVersionRange()
|
||||
|
@ -134,7 +134,7 @@ public class AttachedArtifact
|
|||
|
||||
public void setVersionRange( VersionRange range )
|
||||
{
|
||||
throw new UnsupportedOperationException( "Cannot change the version information for an attached artifact. It is derived from the main artifact." );
|
||||
// ignore this. We should ALWAYS use the information from the parent artifact.
|
||||
}
|
||||
|
||||
public boolean isRelease()
|
||||
|
@ -144,7 +144,7 @@ public class AttachedArtifact
|
|||
|
||||
public void setRelease( boolean release )
|
||||
{
|
||||
throw new UnsupportedOperationException( "Cannot change the version information for an attached artifact. It is derived from the main artifact." );
|
||||
// ignore this. We should ALWAYS use the information from the parent artifact.
|
||||
}
|
||||
|
||||
public boolean isSnapshot()
|
||||
|
|
Loading…
Reference in New Issue