Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/374.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Maven中的Gephi依赖项缺少工件0.9-快照_Java_Eclipse_Maven_Dependencies_Gephi - Fatal编程技术网

Java Maven中的Gephi依赖项缺少工件0.9-快照

Java Maven中的Gephi依赖项缺少工件0.9-快照,java,eclipse,maven,dependencies,gephi,Java,Eclipse,Maven,Dependencies,Gephi,我试图在POM.xml文件(在Eclipse中)中添加Gephi的依赖项。以下是POM文件: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.x

我试图在POM.xml文件(在Eclipse中)中添加Gephi的依赖项。以下是POM文件:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>ch.unifr</groupId>
<artifactId>facebook</artifactId>
<version>1.0</version>
<packaging>war</packaging>
<name>Facebook Example</name>
<repositories>
<repository>
 <id>gephi-snapshots</id>
<name>Gephi Snapshots</name>
<url>http://nexus.gephi.org/nexus/content/repositories/snapshots/</url>
</repository>
     <repository>
        <id>gephi-releases</id>
        <name>Gephi Releases</name>
        <url>http://nexus.gephi.org/nexus/content/repositories/releases/</url>
     </repository>
</repositories>
<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <gephi.maven.requiredVersion>3.0.4</gephi.maven.requiredVersion>
    <netbeans.run.params.ide/>
    <netbeans.run.params>${netbeans.run.params.ide}</netbeans.run.params>
<!-- Netbeans Platfrom version -->
    <netbeans.version>RELEASE721</netbeans.version>

    <!-- Gephi version -->
    <gephi.version>0.9-SNAPSHOT</gephi.version>

    <!-- Java compilation settings -->
    <gephi.javac.source>1.6</gephi.javac.source>
    <gephi.javac.target>1.6</gephi.javac.target>
    <gephi.javac.xlint>-Xlint:all</gephi.javac.xlint>
    <gephi.javac.debug>true</gephi.javac.debug>
    <gephi.javac.optimize>true</gephi.javac.optimize>
    <gephi.javac.showDeprecation>true</gephi.javac.showDeprecation>
    <gephi.javac.showWarnings>true</gephi.javac.showWarnings>
    <gephi.javac.fork>true</gephi.javac.fork>
<!-- Testing settings -->
    <gephi.junit.version>4.7</gephi.junit.version>
    <gephi.test.maxMemory>768M</gephi.test.maxMemory>
    <gephi.test.reportsDirectory>${project.build.directory}/surefire-reports/plain</gephi.test.reportsDirectory>
    <gephi.test.failureIgnore>${testFailureIgnore}</gephi.test.failureIgnore>
<!-- Repository URLs -->
    <gephi.release.repository.id>gephi-nexus</gephi.release.repository.id>
    <gephi.snapshot.repository.id>gephi-nexus</gephi.snapshot.repository.id>
   <gephi.release.repository.url>http://nexus.gephi.org/nexus/content/repositories/releases</gephi.release.repository.url>
    <gephi.snapshot.repository.url>http://nexus.gephi.org/nexus/content/repositories/snapshots</gephi.snapshot.repository.url>

    <!-- SCM -->
    <gephi.scm>git</gephi.scm>
 <!--==== Plugin Versions ==================================================================================-->

    <gephi.maven-assembly-plugin.version>2.4</gephi.maven-assembly-plugin.version>

    <gephi.maven-clean-plugin.version>2.5</gephi.maven-clean-plugin.version>

    <gephi.maven-compiler-plugin.version>3.0</gephi.maven-compiler-plugin.version>

    <gephi.maven-dependency-plugin.version>2.6</gephi.maven-dependency-plugin.version>

    <gephi.maven-deploy-plugin.version>2.7</gephi.maven-deploy-plugin.version>

    <gephi.maven-gpg-plugin.version>1.4</gephi.maven-gpg-plugin.version>

    <gephi.maven-install-plugin.version>2.4</gephi.maven-install-plugin.version>

    <gephi.maven-jar-plugin.version>2.4</gephi.maven-jar-plugin.version>

    <gephi.maven-jarsigner-plugin.version>1.2</gephi.maven-jarsigner-plugin.version>

    <gephi.maven-javadoc-plugin.version>2.9</gephi.maven-javadoc-plugin.version>

    <gephi.maven-license-plugin.version>1.9.0</gephi.maven-license-plugin.version>

    <gephi.maven-release-plugin.version>2.3.2</gephi.maven-release-plugin.version>

    <gephi.maven-resources-plugin.version>2.6</gephi.maven-resources-plugin.version>

    <gephi.maven-source-plugin.version>2.2.1</gephi.maven-source-plugin.version>

    <gephi.maven-surefire-plugin.version>2.13</gephi.maven-surefire-plugin.version>

    <gephi.build-helper-maven-plugin.version>1.7</gephi.build-helper-maven-plugin.version>

    <gephi.wagon-maven-plugin.version>1.0-beta-4</gephi.wagon-maven-plugin.version>
</properties>
<dependencies>
<dependency>
  <groupId>com.restfb</groupId>
  <artifactId>restfb</artifactId>
  <version>1.6.12</version>
</dependency>
<dependency>
  <groupId>com.google.code.facebookapi</groupId>
  <artifactId>facebook-java-api</artifactId>
  <version>3.0.2</version>
</dependency>
<dependency>
    <groupId>org.apache.logging.log4j</groupId>
    <artifactId>log4j-api</artifactId>
    <version>2.0-beta9</version>
</dependency>
<dependency>
    <groupId>org.apache.logging.log4j</groupId>
    <artifactId>log4j-core</artifactId>
    <version>2.0-beta9</version>
</dependency>
<dependency>
    <groupId>org.openrdf.sesame</groupId>
    <artifactId>sesame-model</artifactId>
    <version>2.7.7</version>
</dependency>

<dependency>
     <groupId>org.gephi</groupId>
     <artifactId>gephi-toolkit</artifactId>
     <version>0.9-SNAPSHOT</version>
<dependency>
</project>
有人能帮我解决这个问题吗?我不知道为什么POM不接受Gephi依赖项,但是我已经添加了一些其他依赖项,比如openrdf和restfb。我还添加了Gephi存储库,如POM文件所示。非常感谢你的帮助

查看,您似乎还需要将其存储库添加到POM中:

   <project>
   ...
      <repositories>
         <repository>
            <id>gephi-snapshots</id>
            <name>Gephi Snapshots</name>
            <url>http://nexus.gephi.org/nexus/content/repositories/snapshots/</url>
         </repository>
         <repository>
            <id>gephi-releases</id>
            <name>Gephi Releases</name>
            <url>http://nexus.gephi.org/nexus/content/repositories/releases/</url>
         </repository>
         ...
      </repositories>
   ...
   </project>

...
gephi快照
Gephi快照
http://nexus.gephi.org/nexus/content/repositories/snapshots/
gephi释放
Gephi释放
http://nexus.gephi.org/nexus/content/repositories/releases/
...
...

我已经添加了这段代码。它会显示一条很长的错误消息。这是它的一部分:在这一行找到了多个注释:-缺少工件org.netbeans.api:org netbeans模块查询:jar:RELEASE721-缺少工件commons编解码器:commons编解码器:jar:1.6-缺少工件org.apache.xmlgraphics:batik util:jar:1.7-缺少工件gnu.trove:trove:jar:2.1.0-缺少工件javax.activation:activation:jar:1.1您可以更新您的问题并包括您的整个POM,这样我们就可以看一看了?另外,如果您使用-X标志运行mvn,您将获得调试输出,它将告诉您正在检查哪些存储库,等等。我已经添加了整个pom文件。知道吗?你的POM看起来几乎正确。(我猜不匹配和丢失的只是一个输入错误。)我用该POM创建了一个空项目,并更正了输入错误,所有依赖项都被成功删除了。。。。
   <project>
   ...
      <repositories>
         <repository>
            <id>gephi-snapshots</id>
            <name>Gephi Snapshots</name>
            <url>http://nexus.gephi.org/nexus/content/repositories/snapshots/</url>
         </repository>
         <repository>
            <id>gephi-releases</id>
            <name>Gephi Releases</name>
            <url>http://nexus.gephi.org/nexus/content/repositories/releases/</url>
         </repository>
         ...
      </repositories>
   ...
   </project>