pt2matsim 使用踩坑系列

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

2.解决

参考链接:java.lang.NoClassDefFoundError: org/apache/log4j/Logger_noclassdeffounderror:org/apache/logging/log4j_℉an的博客-CSDN博客

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值