Index: ProjectVerifier.java
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-maven/src/java/org/apache/maven/app/ProjectVerifier.java,v
retrieving revision 1.6
diff -u -r1.6 ProjectVerifier.java
--- ProjectVerifier.java	30 Sep 2002 04:12:56 -0000	1.6
+++ ProjectVerifier.java	1 Oct 2002 20:50:40 -0000
@@ -82,8 +82,8 @@
 import org.apache.maven.project.Dependency;
 import org.apache.maven.util.HttpUtils;
 
-// Temporary
-import org.apache.maven.repository.DefaultJarArtifact;
+import org.apache.maven.repository.DefaultArtifactFactory;
+import org.apache.maven.repository.Artifact;
 
 /**
  * Make sure that everything that is required for the project to build
@@ -399,10 +399,10 @@
             log.debug("id: " + dependency.getId());
             log.debug("version: " + dependency.getVersion());
             log.debug("jar: " + dependency.getJar());
-            
-            DefaultJarArtifact dja = new DefaultJarArtifact();
-            dja.setDependency(dependency);
-            String path = dja.getPath();
+
+
+            Artifact artifact = DefaultArtifactFactory.createArtifact(dependency);
+            String path = artifact.getPath();
             File jarFile = new File(getMavenLocalRepo(), path);
             
             log.debug("Looking for " + jarFile.getCanonicalPath() + "\n\n");
@@ -421,8 +421,8 @@
                 // run update-jars or something else has gone wrong. So
                 // We'll add the jar to our list of failed dependencies
                 // and get them when we're done checking all the JARs.
-                log.debug("failed dependency: " + dja.getPath());
-                failedDependencies.add(dja);
+                log.debug("failed dependency: " + artifact.getPath());
+                failedDependencies.add(artifact);
             }
         }
 
@@ -457,9 +457,9 @@
             
             for (Iterator i = failedDependencies.iterator(); i.hasNext();)
             {
-                DefaultJarArtifact dja = (DefaultJarArtifact) i.next();
-                File destinationFile = new File(getMavenLocalRepo(), dja.getPath());
-                String artifactName = dja.getName();
+                Artifact artifact = (Artifact) i.next();
+                File destinationFile = new File(getMavenLocalRepo(), artifact.getPath());
+                String artifactName = artifact.getName();
                 
                 if (nonDistMap.containsKey(artifactName))
                 {
@@ -488,7 +488,7 @@
                     continue;
                 }
 
-                if (!getRemoteFile(dja.getUrlPath(), destinationFile) && isOnline())
+                if (!getRemoteFile(artifact.getUrlPath(), destinationFile) && isOnline())
                 {
                     warnings.append("-------------------------------------"
                         + "------------\n");
