You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by Shawna Qian <sh...@yahoo-inc.com> on 2011/09/09 20:14:32 UTC

missing artifiacts in the repository for hadoop-hdfs 0.23..0-SNAPSHOT

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

Re: missing artifiacts in the repository for hadoop-hdfs 0.23..0-SNAPSHOT

Posted by Alejandro Abdelnur <tu...@cloudera.com>.
Shawna,

The hadoop-hdfs TEST JAR shares the same group/name as the hadoop-hdfs JAR,
it has a different 'type'. Following is how you should include it in your
POM:

    <dependency>
      <groupId>org.apache.hadoop</groupId>
      <artifactId>hadoop-hdfs</artifactId>
      <version>0.23.0-SNAPSHOT</version>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>

Thanks.

Alejandro

On Sat, Sep 10, 2011 at 10:52 PM, CHANG Lei <ch...@gmail.com> wrote:

> First mvn install, then you will pass the compilation
>
> 在 2011 9 10 02:15,"Shawna Qian" <sh...@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
>

Re: missing artifiacts in the repository for hadoop-hdfs 0.23..0-SNAPSHOT

Posted by Alejandro Abdelnur <tu...@cloudera.com>.
Shawna,

The hadoop-hdfs TEST JAR shares the same group/name as the hadoop-hdfs JAR,
it has a different 'type'. Following is how you should include it in your
POM:

    <dependency>
      <groupId>org.apache.hadoop</groupId>
      <artifactId>hadoop-hdfs</artifactId>
      <version>0.23.0-SNAPSHOT</version>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>

Thanks.

Alejandro

On Sat, Sep 10, 2011 at 10:52 PM, CHANG Lei <ch...@gmail.com> wrote:

> First mvn install, then you will pass the compilation
>
> 在 2011 9 10 02:15,"Shawna Qian" <sh...@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
>

Re: missing artifiacts in the repository for hadoop-hdfs 0.23..0-SNAPSHOT

Posted by CHANG Lei <ch...@gmail.com>.
First mvn install, then you will pass the compilation

在 2011 9 10 02:15,"Shawna Qian" <sh...@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

Re: missing artifiacts in the repository for hadoop-hdfs 0.23..0-SNAPSHOT

Posted by CHANG Lei <ch...@gmail.com>.
First mvn install, then you will pass the compilation

在 2011 9 10 02:15,"Shawna Qian" <sh...@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