【发布时间】:2022-01-22 21:24:01
【问题描述】:
我在使用 RDF4J 时遇到了问题,因为我收到“org.eclipse.rdf4j.rio.UnsupportedRDFormatException: 没有识别 RDF 格式对象 Turtle”错误。 在https://stackoverflow.com/a/40920378/17731560 和https://stackoverflow.com/a/23364261/17731560 之后,我重新配置了我的Maven pom.xml 文件,如下所示:
<!-- Set a compiler level -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<!-- Copy project dependency -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.5.1</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<!-- exclude junit, we need runtime and system dependency only -->
<outputDirectory>${project.build.directory}/libs/</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
这样我的问题就解决了吗?在此先感谢,我是 Maven 新手
【问题讨论】:
-
我也有同样的问题。对解决方案感兴趣