mirror of https://github.com/apache/maven.git
fix metadata parsing in mboot
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@280374 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
057268bd56
commit
db945f1dd0
|
@ -234,9 +234,13 @@ public class RepositoryMetadata
|
||||||
{
|
{
|
||||||
insideVersioning = false;
|
insideVersioning = false;
|
||||||
}
|
}
|
||||||
else if ( insideSnapshot && "snapshot".equals( rawName ) )
|
else if ( insideSnapshot )
|
||||||
{
|
{
|
||||||
if ( "buildNumber".equals( rawName ) )
|
if ( "snapshot".equals( rawName ) )
|
||||||
|
{
|
||||||
|
insideSnapshot = false;
|
||||||
|
}
|
||||||
|
else if ( "buildNumber".equals( rawName ) )
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -255,15 +259,17 @@ public class RepositoryMetadata
|
||||||
{
|
{
|
||||||
metadata.setLocalCopy( Boolean.valueOf( getBodyText() ).booleanValue() );
|
metadata.setLocalCopy( Boolean.valueOf( getBodyText() ).booleanValue() );
|
||||||
}
|
}
|
||||||
insideSnapshot = false;
|
|
||||||
}
|
}
|
||||||
else if ( insideVersions && "versions".equals( rawName ) )
|
else if ( insideVersions )
|
||||||
{
|
{
|
||||||
if ( "version".equals( rawName ) )
|
if ( "versions".equals( rawName ) )
|
||||||
|
{
|
||||||
|
insideVersions = false;
|
||||||
|
}
|
||||||
|
else if ( "version".equals( rawName ) )
|
||||||
{
|
{
|
||||||
metadata.addVersion( getBodyText() );
|
metadata.addVersion( getBodyText() );
|
||||||
}
|
}
|
||||||
insideVersions = false;
|
|
||||||
}
|
}
|
||||||
else if ( "latest".equals( rawName ) )
|
else if ( "latest".equals( rawName ) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue