jung2(java 图形框架)的 Maven 存储库 url 是什么?

发布于 2024-09-26 03:42:47 字数 1416 浏览 1 评论 0原文

我正在寻找一个分发 jung2 包的 Maven 存储库。不幸的是我找不到有关其位置的任何信息。

更新: 我已经包含了中央存储库 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: Missing artifact net.sf.jung:jung2:jar:2.0.1:compile。我在 Mac osX 上使用 Maven 3.0-SNAPSHOT。

Update2: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>

I am looking for a maven repository that distributes jung2 packages. Unfortunetely I can not find any information on its location.

Update:
I have included the cental repository 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>

But I still get an error: 10/4/10 1:31:57 PM CEST: Missing artifact net.sf.jung:jung2:jar:2.0.1:compile. I use Maven 3.0-SNAPSHOT on Mac osX.

Update2: Declaration of Jung2 dependency:

  <dependency>
                <groupId>net.sf.jung</groupId>
                <artifactId>jung2</artifactId>
                <version>2.0.1</version>
                <type>pom</type>                 
        </dependency>

After adding pom, there is no error message. Unfortunetely maven does not retrieve jars of jung2 modules.

[Solved] I have added also a dependency to jung-graph-impl and I can now use jung2 in my project:

   <dependency>
        <groupId>net.sf.jung</groupId>
            <artifactId>jung-graph-impl</artifactId>
            <version>2.0.1</version>
</dependency>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

岁月静好 2024-10-03 03:42:47

repo1 上:

<dependency>
    <groupId>net.sf.jung</groupId>
    <artifactId>jung2</artifactId>
    <version>2.0.1</version>
</dependency>

资源:

  • < a href="http://mvnrepository.com/artifact/net.sf.jung/jung2" rel="nofollow noreferrer">mvnrepository.com - Jung 2

On repo1 :

<dependency>
    <groupId>net.sf.jung</groupId>
    <artifactId>jung2</artifactId>
    <version>2.0.1</version>
</dependency>

Resources :

桜花祭 2024-10-03 03:42:47

您需要将其添加到 pom.xml 中。这与 Maven Central 一起工作。无需指定存储库。但您仍然可以直接在 pom.xml 中使用 http://maven.apache.org

    <dependency>
        <groupId>net.sf.jung</groupId>
        <artifactId>jung2</artifactId>
        <version>2.0.1</version>
        <type>pom</type>
    </dependency>
    <dependency>
        <groupId>net.sf.jung</groupId>
        <artifactId>jung-graph-impl</artifactId>
        <version>2.0.1</version>
    </dependency>

You need to add this to the pom.xml. This work with maven central. No need to specify repository. But you can still use <url>http://maven.apache.org</url> directly in your pom.xml.

    <dependency>
        <groupId>net.sf.jung</groupId>
        <artifactId>jung2</artifactId>
        <version>2.0.1</version>
        <type>pom</type>
    </dependency>
    <dependency>
        <groupId>net.sf.jung</groupId>
        <artifactId>jung-graph-impl</artifactId>
        <version>2.0.1</version>
    </dependency>
相权↑美人 2024-10-03 03:42:47

jung2(Java 图形框架)的 Maven 存储库 URL 是什么?

答案:中央存储库及其镜像

但一般来说,您会遇到依赖项问题。

要使您的项目可使用 Jung2 库构建,请将特定模块(不是 jung2)添加到您的 pom.xml 中。

示例:

    <dependency>
        <groupId>net.sf.jung</groupId>
        <artifactId>jung-graph-impl</artifactId>
        <version>2.0.1</version>
    </dependency>
    <dependency>
        <groupId>net.sf.jung</groupId>
        <artifactId>jung-algorithms</artifactId>
        <version>2.0.1</version>
    </dependency>

查看模块列表 http://mvnrepository.com/artifact/net.sf.jung


添加以下内容:

<dependency>
    <groupId>net.sf.jung</groupId>
    <artifactId>jung2</artifactId>
    <version>2.0.1</version>
    <type>pom</type>
</dependency>

不会按照人们预期的方式工作。

原因是 pom.xml 中的配置文件内的 jung2 工件的模块声明:

<profiles>
    <profile>
        <id>all</id>
        <activation>
            <property>
                <name>all</name>
            </property>
        </activation>
        <modules>
            <module>jung-api</module>
            <module>jung-graph-impl</module>
            <module>jung-algorithms</module>
            <module>jung-io</module>
            <module>jung-visualization</module>
            <module>jung-samples</module>
            <module>jung-jai</module>
            <module>jung-jai-samples</module>
            <module>jung-3d</module>
            <module>jung-3d-demos</module>
    .............
</profiles>

What is a maven repository url for jung2 (java graph framework)?

Answer: The Central Repository and its mirrors

But generally, you experiencied issue with dependencies.

To make your project buildable with Jung2 library, add specific modules (not jung2) to your pom.xml.

Example:

    <dependency>
        <groupId>net.sf.jung</groupId>
        <artifactId>jung-graph-impl</artifactId>
        <version>2.0.1</version>
    </dependency>
    <dependency>
        <groupId>net.sf.jung</groupId>
        <artifactId>jung-algorithms</artifactId>
        <version>2.0.1</version>
    </dependency>

See the list of the modules http://mvnrepository.com/artifact/net.sf.jung


Adding the following:

<dependency>
    <groupId>net.sf.jung</groupId>
    <artifactId>jung2</artifactId>
    <version>2.0.1</version>
    <type>pom</type>
</dependency>

will not work in the way one could expect.

The reason is declaration of modules inside of profiles in pom.xml for jung2 artifact:

<profiles>
    <profile>
        <id>all</id>
        <activation>
            <property>
                <name>all</name>
            </property>
        </activation>
        <modules>
            <module>jung-api</module>
            <module>jung-graph-impl</module>
            <module>jung-algorithms</module>
            <module>jung-io</module>
            <module>jung-visualization</module>
            <module>jung-samples</module>
            <module>jung-jai</module>
            <module>jung-jai-samples</module>
            <module>jung-3d</module>
            <module>jung-3d-demos</module>
    .............
</profiles>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文