我正在寻找一个Maven仓库,该仓库分发jung2包。不幸的是,我找不到任何关于它位置的信息。
更新: 我已经将中央仓库repo1包含进去了。
<repository>
<id>central</id>
<name>Maven Repository Switchboard</name>
<layout>default</layout>
<url>http://repo1.maven.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
但我仍然得到一个错误: 10/4/10 1:31:57 PM CEST: 缺失构件 net.sf.jung:jung2:jar:2.0.1:compile。我在Mac osX上使用Maven 3.0-SNAPSHOT。
更新2:Jung2依赖的声明:
<dependency>
<groupId>net.sf.jung</groupId>
<artifactId>jung2</artifactId>
<version>2.0.1</version>
<type>pom</type>
</dependency>
添加pom后,没有错误信息。不幸的是,Maven没有获取jung2模块的jar包。
[已解决]我还添加了对jung-graph-impl的依赖,现在我可以在我的项目中使用jung2:
<dependency>
<groupId>net.sf.jung</groupId>
<artifactId>jung-graph-impl</artifactId>
<version>2.0.1</version>
</dependency>
<type>pom</type>
添加到依赖项中,它不是一个jar;) - Colin Hebert<type>pom</type>
,则没有错误,但也没有效果。 - Dims