Skip to content
This repository was archived by the owner on Jun 19, 2019. It is now read-only.

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

Open
dcupif opened this issue Jan 17, 2017 · 3 comments
Open

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

dcupif opened this issue Jan 17, 2017 · 3 comments

Comments

@dcupif
Copy link

dcupif commented Jan 17, 2017

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
Copy link

dtzWill commented Feb 24, 2017

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
Copy link

gsingh93 commented May 8, 2017

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

@Alfusainey
Copy link

Alfusainey commented Aug 17, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants