-
Notifications
You must be signed in to change notification settings - Fork 179
faq 109777753
by Milos Balac on 2017-06-04 10:52:30
Hi Everyone,
As always after a version update I have problems building a release on Windows. As of now I do the following in the root directory:
mvn clean
mvn install -DskipTests
and what I get is the following message:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.1:jar (attach-javadocs) on project matsim: MavenReportException: Error while creating archive: artifact not found - Failure to find org.matsim:matsim-tutorial:jar:0.10.0-SNAPSHOT in http://download.osgeo.org/webdav/geotools was cached in the local repository, resolution will not be reattempted until the update interval of osgeo has elapsed or updates are forced
[ERROR] [ERROR] Try downloading the file manually from the project website.
[ERROR] [ERROR] Then, install it using the command: [ERROR] mvn install:install-file -DgroupId=org.matsim -DartifactId=matsim-tutorial -Dversion=0.10.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file [ERROR] [ERROR] Alternatively, if you host your own repository you can deploy the file there: [ERROR] mvn deploy:deploy-file -DgroupId=org.matsim -DartifactId=matsim-tutorial -Dversion=0.10.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR] [ERROR] [ERROR] org.matsim:matsim-tutorial:jar:0.10.0-SNAPSHOT
[ERROR] [ERROR] from the specified remote repositories: [ERROR] osgeo (http://download.osgeo.org/webdav/geotools, releases=true, snapshots=true), [ERROR] matsim (http://dl.bintray.com/matsim/matsim, releases=true, snapshots=true), [ERROR] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
Any idea how to solve this?
Thanks, Milos
by Sebastian Hörl on 2017-06-04 12:28:43
My general procedure (to build a playground) is:
cd /matsim
mvn install -Prelease -DskipTests=true -pl playground:ivtExt -am
cd /matsim/playgrounds/ivtExt
mvn -Prelease -DskipTests=True
It also does not seem to work anymore when I try with HEAD. Somehow it tries to download the snapshot release of matism-tutorial, but does not find it.
The quick fix is to uncomment the following in matsim/pom.xml:
<additionalDependencies>
<additionalDependency>
<groupId>org.matsim</groupId>
<artifactId>matsim-tutorial</artifactId>
<version>0.10.0-SNAPSHOT</version>
</additionalDependency>
</additionalDependencies>
I didn't test yet, but I assume this has been set up this way so that MATSim does not depend on the tutorial package (then there would be a cyclic reference)... but this way, when building the core Maven expects the matsim-tutorial package to be somewhere before it actually has been build (because it is not in the chain of dependencies ...)
by Michael Zilske on 2017-06-23 06:09:48
This should all be resolved by now. Would be grateful if you could try and confirm.
You are viewing an archive of the previous MATSim Q&A site. The real site is now at https://matsim.org/faq