pt2matsim库:
GitHub - matsim-org/pt2matsim: Package to create a multi-modal MATSim network and schedule from public transit data (GTFS or HAFAS) and an OSM map of the area.Package to create a multi-modal MATSim network and schedule from public transit data (GTFS or HAFAS) and an OSM map of the area. - GitHub - matsim-org/pt2matsim: Package to create a multi-modal MATSim network and schedule from public transit data (GTFS or HAFAS) and an OSM map of the area.
https://github.com/matsim-org/pt2matsim
问题一
1.背景
打算用 pt2matsim 生成路公交信息,根据readme提示在自己的项目pom.xml添加了如下信息:
<repositories>
<repository>
<id>pt2matsim</id>
<url>https://repo.matsim.org/repository/matsim/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.matsim</groupId>
<artifactId>pt2matsim</artifactId>
<version>23.4</version>
</dependency>
</dependencies>
2.报错
报错信息:Could not find artifact org.matsim:pt2matsim:pom:23.4 in osgeo
3.解决办法
回头查看GitHub介绍的发布版本,发现没有23.4,降低版本至22.3后(如下图),问题解决。
pt2matsim版本发布网站:https://repo.matsim.org/service/rest/repository/browse/matsim/org/matsim/pt2matsim/
<dependencies>
<dependency>
<groupId>org.matsim</groupId>
<artifactId>pt2matsim</artifactId>
<version>22.3</version>
</dependency>
</dependencies>
问题二
1.报错
报错信息:Exception in thread “main“ java.lang.NoClassDefFoundError