开发者

google salve - maven

I tried to install google salve http://code.google.com/p/salve/ by adding following state开发者_运维技巧ments in the project's pom file: However, when running mvn dependency:resolve it states "unable to find resource "salve:salve:jar:2.0" in repository salve

What's wrong?

  <dependency>
              <groupId>salve</groupId>
              <artifactId>salve</artifactId>
              <version>2.0</version>
          </dependency>

  <repository>
              <id>salve</id>
              <name>Google Maven Repository</name>
              <url>http://salve.googlecode.com/svn/maven2/</url>
  </repository>


The salve artifact you're mentioning is a pom (and indeed, there is no salve:salve:jar:2.0). If this is really the dependency you want to declare, you need to specify the type:

<project>
  ...
  <repositories>
    <repository>
      <id>salve</id>
      <name>Google Maven Repository</name>
      <url>http://salve.googlecode.com/svn/maven2/</url>
    </repository>
  </repositories>
  <dependencies>
    <dependency>
      <groupId>salve</groupId>
      <artifactId>salve</artifactId>
      <version>2.0</version>
      <type>pom</type>
    </dependency>
    ...
  </dependencies>
</project>

Honestly, I doubt you want the pom but I can't tell you which artifact you need.

Update: I guess you would have figured this out yourself but for salve-depend-guice, use the following dependency:

    <dependency>
      <groupId>salve</groupId>
      <artifactId>salve-depend-guice</artifactId>
      <version>2.0</version>
    </dependency>

The dependencies of the above artifact will be downloaded transitively by Maven.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜