关于本体自动构建goldminner的bug心得

5次阅读

共计 1338 个字符,预计需要花费 4 分钟才能阅读完成。

一. 项目地址
https://github.com/dfleischha…
该项目的 fork 量只有 2,能不用的尽量别用,太费劲了。
二.marven 踩坑
1.Could not resolve dependencies for project de.uni-mannheim.informatik.dws.goldminer:1.1-Snpshot,failure to find net.sourceforge.owlapi:owlapi:jar:3.2.4 in https://breda.informatik.uni-… was cached in the local repository,resolution will not be reattemped until the update interval of lski has elspsed or updated are forced

解决办法:这个问题在于在 pom.xml 中给的仓库 https://breda.informatik.uni-…,而且 3.2.4 包根本没有,我这里的解决办法是修改 pom.xml 文件,将 owlapi 改为 owlapi-api, 版本改为 3.2.5,具体如下, 同时增加一个 owlapi-apibinding 的 depency,否则在后面会报错。
<dependency>

<groupId>net.sourceforge.owlapi</groupId>
<artifactId>owlapi-api</artifactId>
<version>3.2.5-SNAPSHOT</version>

</dependency>

<dependency>

        <groupId>net.sourceforge.owlapi</groupId>
        <artifactId>owlapi-apibinding</artifactId>
        <version>3.2.5-SNAPSHOT</version>
    </dependency>

总结:类似于问题 1 的解决办法网上会有很多,但基本都是 clean、install,实话告诉你,基本没什么用,maven 在执行 pom 时会去仓库 down 相应的包,如果仓库里都没有,install 是完全没用的。

2.unable to find javadoc command
该问题解决方式如下:
<properties>

    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <javadocExecutable>C:\Program        Files\Java\jdk1.8.0_201\bin\javadoc.exe</javadocExecutable>

</properties>

3.javadoc 的 Failed to execute goal org.apache.maven.plugins,
这个解决来自 https://blog.csdn.net/m1043/a…,需要注意的是在 maven3 以上的版本,additionalparam 需要替换成 additionalJOption。

4.jre 与 jdk 的 error:解决办法是在 pom 里加和 setting.xml 里加 java 变量,这个网上很多,就不赘述。

正文完
 0