Maven 向Neo4j服务器插件扩展添加Jung依赖项

Maven 向Neo4j服务器插件扩展添加Jung依赖项,maven,neo4j,pom.xml,jung,Maven,Neo4j,Pom.xml,Jung,嗨,我正在尝试使用Neo4j服务器插件。 我使用的pom.xml文件与- 我正在试验的服务器插件扩展是- 这很好,但随后我决定从GetAll.java调用Jung库。 因此,我只需在上面的pom.xml中添加以下行 <dependency> <groupId>net.sf.jung</groupId> <artifactId>jung-algorithms</artifactId> <version&g

嗨,我正在尝试使用Neo4j服务器插件。 我使用的pom.xml文件与-

我正在试验的服务器插件扩展是-

这很好,但随后我决定从GetAll.java调用Jung库。 因此,我只需在上面的pom.xml中添加以下行

<dependency>
    <groupId>net.sf.jung</groupId>
    <artifactId>jung-algorithms</artifactId>
    <version>2.0.1</version>
</dependency>
因此,这似乎是一个许可证检查问题。 因此,我继续在上面的pom.xml中,在它们的部分下添加了以下几行

<!-- http://jung.sourceforge.net/license.txt -->
                 <name>The BSD License</name>
                <url>http://jung.sourceforge.net/license.txt</url>
                <distribution>repo</distribution>

对pom.xml文件进行哪些更改以使其接受Jung依赖项有何见解?我是否需要更改关联的NOTICE.txt

您正在引用的
pom.xml
使用
org.neo4j.parent
作为父pom。这一个合并了所有包含工件的自动许可证检查。Neo4j使用此功能来确保许可证合规性


在你的插件项目中,你可能不需要这个,所以试着通过注释掉
标签来摆脱父pom。

谢谢。注释掉标记下的块使其工作。然而,在注释掉标记之后,我开始出现一些构建错误。我可以通过在pom.xml-org.apache.maven.plugins maven编译器插件3.11.71.7中添加以下行来解决这些问题
<!-- http://jung.sourceforge.net/license.txt -->
                 <name>The BSD License</name>
                <url>http://jung.sourceforge.net/license.txt</url>
                <distribution>repo</distribution>
[ERROR] Failed to execute goal org.neo4j.build.plugins:license-maven-plugin:3:check (check-licenses) on project neo4j-server-examples: Some files do not have the expected license header -> [Help 1])