mirror of https://github.com/apache/maven.git
remove snapshot metadata too
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163932 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d5be37cf00
commit
877eeb9a40
|
@ -147,7 +147,7 @@ public class Verifier
|
|||
continue;
|
||||
}
|
||||
|
||||
line = replaceArtifacts( line );
|
||||
lines.addAll( replaceArtifacts( line ) );
|
||||
|
||||
lines.add( line );
|
||||
}
|
||||
|
@ -161,7 +161,7 @@ public class Verifier
|
|||
return lines;
|
||||
}
|
||||
|
||||
private static String replaceArtifacts( String line )
|
||||
private static List replaceArtifacts( String line )
|
||||
{
|
||||
String MARKER = "${artifact:";
|
||||
int index = line.indexOf( MARKER );
|
||||
|
@ -178,9 +178,23 @@ public class Verifier
|
|||
newLine += convertArtifact( artifact );
|
||||
newLine += line.substring( index + 1 );
|
||||
|
||||
line = replaceArtifacts( newLine );
|
||||
index = newLine.indexOf( "SNAPSHOT" );
|
||||
if ( index >= 0 )
|
||||
{
|
||||
List l = new ArrayList();
|
||||
l.add( newLine );
|
||||
l.add( newLine.substring( 0, index ) + "SNAPSHOT.version.txt" );
|
||||
return l;
|
||||
}
|
||||
else
|
||||
{
|
||||
return Collections.singletonList( line );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return Collections.singletonList( line );
|
||||
}
|
||||
return line;
|
||||
}
|
||||
|
||||
private static String convertArtifact( String artifact )
|
||||
|
|
Loading…
Reference in New Issue