mirror of https://github.com/apache/maven.git
PR: MNG-613
merge all metadata fields on update git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@278898 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1129522bd7
commit
00e365d2ce
|
@ -30,6 +30,7 @@ import java.io.FileWriter;
|
|||
import java.io.IOException;
|
||||
import java.io.Reader;
|
||||
import java.io.Writer;
|
||||
import java.util.Iterator;
|
||||
|
||||
/**
|
||||
* Metadata for the artifact directory of the repository.
|
||||
|
@ -162,6 +163,25 @@ public class ArtifactRepositoryMetadata
|
|||
changed = true;
|
||||
}
|
||||
}
|
||||
if ( versioning.getRelease() != null )
|
||||
{
|
||||
changed = true;
|
||||
v.setRelease( versioning.getRelease() );
|
||||
}
|
||||
if ( versioning.getLatest() != null )
|
||||
{
|
||||
changed = true;
|
||||
v.setLatest( versioning.getLatest() );
|
||||
}
|
||||
for ( Iterator i = versioning.getVersions().iterator(); i.hasNext(); )
|
||||
{
|
||||
String version = (String) i.next();
|
||||
if ( !v.getVersions().contains( version ) )
|
||||
{
|
||||
changed = true;
|
||||
v.getVersions().add( version );
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -95,10 +95,13 @@ public class ArtifactResolutionException
|
|||
{
|
||||
ArtifactRepository remoteRepository = (ArtifactRepository) i.next();
|
||||
|
||||
sb.append( remoteRepository.getId() );
|
||||
sb.append( " (" );
|
||||
sb.append( remoteRepository.getUrl() );
|
||||
sb.append( ")" );
|
||||
if ( i.hasNext() )
|
||||
{
|
||||
sb.append( ", " );
|
||||
sb.append( ",\n " );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue