手动编译 org.eclipse.jgit-5.1.17 报错处理

 

1、下载源码

2、mvn clean package

报错

WalkEncryption.java:  DatatypeConverter The import javax.xml.bind cannot be resolved

3、处理方案

增加依赖

<dependencies>
        <dependency>
            <groupId>javax.xml.bind</groupId>
            <artifactId>jaxb-api</artifactId>
            <version>2.3.0</version>
        </dependency>
        <dependency>
            <groupId>com.sun.xml.bind</groupId>
            <artifactId>jaxb-impl</artifactId>
            <version>2.3.0</version>
        </dependency>
        <dependency>
            <groupId>com.sun.xml.bind</groupId>
            <artifactId>jaxb-core</artifactId>
            <version>2.3.0</version>
        </dependency>
        <dependency>
            <groupId>javax.activation</groupId>
            <artifactId>activation</artifactId>
            <version>1.1.1</version>
        </dependency>
    </dependencies>

4、参考连接

https://blog.csdn.net/weixin_44290191/article/details/117446429

posted @ 2023-07-21 16:52  鹰翱  阅读(97)  评论(0编辑  收藏  举报