Gephi 0.9-Snapshot : Failure to build GraphAPI [SOLVED]

Problems with getting it running
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
DevNewb
Posts:2
Joined:26 Mar 2014 00:03
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Gephi 0.9-Snapshot : Failure to build GraphAPI [SOLVED]

Post by DevNewb » 26 Mar 2014 00:21

Greetings All,

Please forgive me, I'm relatively new to Gephi, Maven, & pretty much everything blessed and normal here. That being said, I seem to be having difficulties building the Gephi Source.

After enabling Maven Debugging, here's the trace of the error:

Code: Select all

[ERROR] Failed to execute goal on project graph-api: Could not resolve dependencies for project org.gephi:graph-api:nbm:0.9-SNAPSHOT: Failure to find org.gephi:graphstore-impl:jar:0.1-SNAPSHOT in http://nexus.gephi.org/nexus/content/repositories/snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of gephi-snapshots has elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project graph-api: Could not resolve dependencies for project org.gephi:graph-api:nbm:0.9-SNAPSHOT: Failure to find org.gephi:graphstore-impl:jar:0.1-SNAPSHOT in http://nexus.gephi.org/nexus/content/repositories/snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of gephi-snapshots has elapsed or updates are forced
	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:220)
	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
	at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.gephi:graph-api:nbm:0.9-SNAPSHOT: Failure to find org.gephi:graphstore-impl:jar:0.1-SNAPSHOT in http://nexus.gephi.org/nexus/content/repositories/snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of gephi-snapshots has elapsed or updates are forced
	at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:198)
	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
	... 22 more
Caused by: org.eclipse.aether.resolution.DependencyResolutionException: Failure to find org.gephi:graphstore-impl:jar:0.1-SNAPSHOT in http://nexus.gephi.org/nexus/content/repositories/snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of gephi-snapshots has elapsed or updates are forced
	at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
	at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:192)
	... 23 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Failure to find org.gephi:graphstore-impl:jar:0.1-SNAPSHOT in http://nexus.gephi.org/nexus/content/repositories/snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of gephi-snapshots has elapsed or updates are forced
	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459)
	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
	at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
	... 24 more
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Failure to find org.gephi:graphstore-impl:jar:0.1-SNAPSHOT in http://nexus.gephi.org/nexus/content/repositories/snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of gephi-snapshots has elapsed or updates are forced
	at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:232)
	at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:206)
	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads(DefaultArtifactResolver.java:599)
	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:518)
	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:436)
	... 26 more
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :graph-api
The full log is attached. Wondering if it's something on my end. Thanks for the help!
Attachments
maven_log.txt
Full Build Log
(516.17KiB)Downloaded 152 times
Last edited by DevNewb on 26 Mar 2014 04:06, edited 1 time in total.

DevNewb
Posts:2
Joined:26 Mar 2014 00:03
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Gephi 0.9-Snapshot : Failure to build GraphAPI

Post by DevNewb » 26 Mar 2014 04:04

Looks like the pom for GraphAPI needed to be altered. Specifically, there was no graphstore-impl in the nexus, but there was graphstore. Thus the altered graph-api POM is as follows...

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<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>
    <parent>
        <artifactId>gephi-parent</artifactId>
        <groupId>org.gephi</groupId>
        <version>0.9-SNAPSHOT</version>
        <relativePath>../..</relativePath>
    </parent>

    <groupId>org.gephi</groupId>
    <artifactId>graph-api</artifactId>
    <version>0.9-SNAPSHOT</version>
    <packaging>nbm</packaging>

    <name>GraphAPI</name>

    <!-- Additional repository for picking up graph-store (built separately) -->
    <repositories>
        <repository>
            <id>gephi-snapshots</id>
            <name>Gephi 3rd Party</name>
            <url>http://nexus.gephi.org/nexus/content/repositories/snapshots/</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>project-api</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>graphstore-api</artifactId>
            <version>0.1-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>graphstore</artifactId>
            <version>0.1-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>org.netbeans.api</groupId>
            <artifactId>org-openide-util-lookup</artifactId>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>nbm-maven-plugin</artifactId>
                <configuration>
                    <publicPackages>
                        <publicPackage>org.gephi.graph.spi</publicPackage>
                        <publicPackage>org.gephi.graph.api</publicPackage>
                        <publicPackage>org.gephi.attribute.api</publicPackage>
                        <publicPackage>org.gephi.attribute.spi</publicPackage>
                        <publicPackage>org.gephi.attribute.time</publicPackage>
                    </publicPackages>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
Seems to work well enough for now. There are a few other problems to be resolved, but they are not related to GraphAPI.

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable