Search code examples
mavenjung

Maven gives this project has disliked artifacts error when using Jung dependency


I have a Java project where I want to make some calls to a Jung library. I added the following lines to the pom.xml net.sf.jung jung-algorithms 2.0.1

However when I run "mvn package", I get the following error
[ERROR] Failed to execute goal licensing-maven-plugin:1. 7.5:check (enforce-licensing-oss) on project server-examples: This project has 3 disliked artifacts. -> [Help 1]

Any insights as to what may be going wrong ?


Solution

  • You have configured the licensing-maven-plugin to complain when you introduce a dependency with certain licenses. You, or whoever wrote your pom. If you read the configuration for that plugin it will tell you what licenses it is configured to like and dislike.