diff --git a/release/src/main/org/apache/maven/release/SnapshotResolver.java b/release/src/main/org/apache/maven/release/SnapshotResolver.java index b7188e85..1bd400da 100644 --- a/release/src/main/org/apache/maven/release/SnapshotResolver.java +++ b/release/src/main/org/apache/maven/release/SnapshotResolver.java @@ -70,7 +70,7 @@ import java.util.Iterator; * * @author Jason van Zyl * - * @version $Id: SnapshotResolver.java,v 1.13 2003/09/29 23:52:00 jvanzyl Exp $ + * @version $Id: SnapshotResolver.java,v 1.14 2003/09/30 07:58:00 dion Exp $ */ public class SnapshotResolver extends AbstractPomTransformer @@ -92,7 +92,7 @@ public class SnapshotResolver public String getNodeContent( Node node ) throws Exception { - String timestampVersion = null; + String timestampVersion = "SNAPSHOT"; Node idNode = node.selectSingleNode( "id" ); @@ -114,7 +114,7 @@ public class SnapshotResolver artifactId = artifactIdNode.getText(); } - Node typeIdNode = node.selectSingleNode( "groupId" ); + Node typeIdNode = node.selectSingleNode( "type" ); if ( typeIdNode != null ) { @@ -133,7 +133,7 @@ public class SnapshotResolver { String remoteRepo = (String) i.next(); String url = remoteRepo + "/" + groupId + "/" + artifactType + "s/" + artifactId + "-snapshot-version"; - + try { HttpUtils.getFile( url, @@ -157,10 +157,6 @@ public class SnapshotResolver { timestampVersion = FileUtils.fileRead( snapshotVersionFile.getPath() ); } - else - { - timestampVersion = "SNAPSHOT"; - } } return timestampVersion;