-
Notifications
You must be signed in to change notification settings - Fork 179
faq 109220317
by Ecaterina McCormick on 2017-05-03 11:26:44
HI Matsim community,
I have downloaded the latest code from the github repository and pursued to build the protobuf module in order to generate the required classes.
The following errors shows up:
[ERROR] Failed to execute goal on project protobuf: Could not resolve dependencies for project org.matsim.contrib:protobuf:jar:0.9.0-SNAPSHOT: Could not find artifact org.matsim:matsim:jar:tests:0.9.0-SNAPSHOT in geotools (http://download.osgeo.org/webdav/geotools) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project protobuf: Could not resolve dependencies for project org.matsim.contrib:protobuf:jar:0.9.0-SNAPSHOT: Could not find artifact org.matsim:matsim:jar:tests:0.9.0-SNAPSHOT in geotools (http://download.osgeo.org/webdav/geotools)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:221)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:245)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199)
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:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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.matsim.contrib:protobuf:jar:0.9.0-SNAPSHOT: Could not find artifact org.matsim:matsim:jar:tests:0.9.0-SNAPSHOT in geotools (http://download.osgeo.org/webdav/geotools)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:211)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
... 23 more
Caused by: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact org.matsim:matsim:jar:tests:0.9.0-SNAPSHOT in geotools (http://download.osgeo.org/webdav/geotools)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:205)
... 24 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact org.matsim:matsim:jar:tests:0.9.0-SNAPSHOT in geotools (http://download.osgeo.org/webdav/geotools)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
... 25 more
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.matsim:matsim:jar:tests:0.9.0-SNAPSHOT in geotools (http://download.osgeo.org/webdav/geotools)
at io.takari.aether.connector.AetherRepositoryConnector$2.wrap(AetherRepositoryConnector.java:893)
at io.takari.aether.connector.AetherRepositoryConnector$2.wrap(AetherRepositoryConnector.java:1)
at io.takari.aether.connector.AetherRepositoryConnector$GetTask.flush(AetherRepositoryConnector.java:673)
at io.takari.aether.connector.AetherRepositoryConnector.get(AetherRepositoryConnector.java:310)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
... 27 more
Do you have any ideas as to what is causing this?
Thank you,Ecaterina
by Kai Nagel on 2017-05-09 20:37:40
Dear Ecatarina, David,
Is it really necessary that you build the full project based on a code snapshot? This is nearly impossible to support, and it is also not meant to be supported. For alternatives see http://matsim.org/downloads . I would strongly recommend to start from the matsim example project. This attaches to the 0.8.1 release, which should already be good for many things. If you really need newer features, you can change the entries in the pom.xml to the 0.9.0-SNAPSHOT version as commented out in the pom.xml .
Otherwise, could you please explain why you need to build the code yourself? We have invested a lot of time and effort into providing hooks so that building the code yourself should not be necessary any more, and we would like to learn where maybe we have failed or not gone far enough.
Thanks and best wishes Kai
You are viewing an archive of the previous MATSim Q&A site. The real site is now at https://matsim.org/faq