First mvn install, then you will pass the compilation
在 2011 9 10 02:15,"Shawna Qian" <shaw...@yahoo-inc.com>写道: > Hello: > > I am trying to use this package here in my pom.xml. It is listed in the repository.apache.org. And I can browse it. > > > <dependency> > <groupId>org.apache.hadoop</groupId> > <artifactId>hadoop-hdfs-test</artifactId> > <version>0.23.0-SNAPSHOT</version> > </dependency> > > But when I compile my project, it kept saying this: > [WARNING] The POM for org.apache.hadoop:hadoop-hdfs-test:jar:0.23.0-SNAPSHOT is missing, no dependency information available > [INFO] ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 2.857s > [INFO] Finished at: Fri Sep 09 10:58:27 PDT 2011 > [INFO] Final Memory: 4M/39M > [INFO] ------------------------------------------------------------------------ > [ERROR] Failed to execute goal on project yqatestng-minicluster: Could not resolve dependencies for project yahoo.yinst.yQATestNG_minicluster:yqatestng-minicluster:jar:2.6: The following artifacts could not be resolved: org.apache.hadoop:hadoop-hdfs-test:jar:0.23.0-SNAPSHOT: Could not find artifact org.apache.hadoop:hadoop-hdfs-test:pom:0.23.0-SNAPSHOT -> [Help 1] > > > > But for this dependency: > <dependency> > <groupId>org.apache.hadoop</groupId> > <artifactId>hadoop-hdfs</artifactId> > <version>0.23.0-SNAPSHOT</version> > </dependency> > > > It works fine. > > Can somebody help here? > > > Thx > Shawna