简体   繁体   中英

Gephi dependency in Maven Missing artifact 0.9- SNAPSHOT

I am trying to add the dependency of Gephi in POM.xml file (in Eclipse). Here is the POM file:

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

As you may notice, the dependency is for Gephi. This is part of the error message as below:

Multiple annotations found at this line:
- Missing artifact org.netbeans.api:org-netbeans-modules-queries:jar:RELEASE721
- Missing artifact commons-codec:commons-codec:jar:1.6
- Missing artifact org.apache.xmlgraphics:batik-util:jar:1.7
- Missing artifact gnu.trove:trove:jar:2.1.0
- Missing artifact javax.activation:activation:jar:1.1
- Missing artifact org.netbeans.api:org-openide-modules:jar:RELEASE721

Could anyone help me how to solve this problem? I do not know why POM does not accept the Gephi dependency however I have already added some other dependencies such as openrdf and restfb. I also added the Gephi repository as shown in the POM file. Your help is very much appreciated.

Looking at the documentation page , it looks like you'll need to add their repository to your POM, as well:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM