neo4j-contrib / gremlin-plugin

A Plugin for the Neo4j server add Tinkerpop-related functionality
Other
55 stars 23 forks source link

mvn clean package fails due to lack of expected license header 2017 #41

Open dcupif opened 7 years ago

dcupif commented 7 years ago

Hi,

mvn clean package fails giving an error due to licensing. This issue seems quite similar to issue #35.

Here is the output of the command:

[INFO] Checking licenses... [INFO] Missing header in: /home/djc3/gremlin-plugin/src/test/java/org/neo4j/server/webadmin/rest/GremlinConsoleServiceTest.java [INFO] Missing header in: /home/djc3/gremlin-plugin/src/test/java/org/neo4j/server/webadmin/console/GremlinSessionTest.java [INFO] Missing header in: /home/djc3/gremlin-plugin/src/test/java/org/neo4j/server/plugin/gremlin/GremlinPluginTest.java [INFO] Missing header in: /home/djc3/gremlin-plugin/src/test/java/org/neo4j/server/webadmin/rest/ConfigureEnabledManagementConsolesGremlinTest.java [INFO] Missing header in: /home/djc3/gremlin-plugin/src/site/site.xml [INFO] Missing header in: /home/djc3/gremlin-plugin/src/test/resources/graphml.xml [INFO] Missing header in: /home/djc3/gremlin-plugin/src/test/java/org/neo4j/server/plugin/gremlin/GremlinPluginFunctionalTest.java [INFO] Missing header in: /home/djc3/gremlin-plugin/src/main/assembly/docs-assembly.xml [INFO] Missing header in: /home/djc3/gremlin-plugin/src/main/assembly/server-plugin.xml [INFO] Missing header in: /home/djc3/gremlin-plugin/src/main/java/org/neo4j/server/webadmin/console/Neo4jGroovyImports.java [INFO] Missing header in: /home/djc3/gremlin-plugin/src/main/java/org/neo4j/server/webadmin/console/GremlinWebConsole.java [INFO] Missing header in: /home/djc3/gremlin-plugin/src/main/java/org/neo4j/server/webadmin/console/GremlinSession.java [INFO] Missing header in: /home/djc3/gremlin-plugin/src/main/java/org/neo4j/server/webadmin/console/GremlinSessionCreator.java [INFO] Missing header in: /home/djc3/gremlin-plugin/src/main/java/org/neo4j/server/webadmin/console/GremlinResultHook.java [INFO] Missing header in: /home/djc3/gremlin-plugin/src/main/java/org/neo4j/server/plugin/gremlin/GremlinPlugin.java [INFO] Missing header in: /home/djc3/gremlin-plugin/src/main/java/org/neo4j/server/plugin/gremlin/ScriptCountingEngineReplacementDecision.java [INFO] Missing header in: /home/djc3/gremlin-plugin/src/main/java/org/neo4j/server/plugin/gremlin/EngineReplacementDecision.java [INFO] Missing header in: /home/djc3/gremlin-plugin/src/main/java/org/neo4j/server/plugin/gremlin/CountingEngineReplacementDecision.java [INFO] Missing header in: /home/djc3/gremlin-plugin/src/main/java/org/neo4j/server/rest/repr/GremlinTableRepresentation.java [INFO] Missing header in: /home/djc3/gremlin-plugin/src/data/graphml1.xml [INFO] Missing header in: /home/djc3/gremlin-plugin/src/main/java/org/neo4j/server/rest/repr/GremlinObjectToRepresentationConverter.java [INFO] Missing header in: /home/djc3/gremlin-plugin/src/main/java/org/neo4j/server/rest/repr/GremlinMapRepresentation.java [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 57.778s [INFO] Finished at: Tue Jan 17 18:08:25 EST 2017 [INFO] Final Memory: 14M/148M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.neo4j.build.plugins:license-maven-plugin:3:check (check-licenses) on project neo4j-gremlin-plugin: Some files do not have the expected license header -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

dtzWill commented 7 years ago

What a joke reason to fail the build!

Anyway, I ran into this issue and fixed it locally with a quick-and-dirty:

$ find . -type f -print0 |xargs -0 sed -i 's,2016,2017,'

EDIT: I'm still trying to make sense of this mess, but it appears this project has been merged into tinkerpop/gremlin? See: https://github.com/apache/tinkerpop/tree/fc7f909a154b8c9e264580a0f73a3f0d0fb431a9/neo4j-gremlin . Anyway, hope this helps GLHF.

gsingh93 commented 7 years ago

FYI, I installed with the command mvn clean package -Dlicense.skip=true.

Alfusainey commented 7 years ago

i ran into this same problem today and the hint by @gsingh93 solves the problem for me. Thank you!