Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Can't package: missing headers #13

Open
presstube opened this issue Apr 25, 2014 · 6 comments
Open

Can't package: missing headers #13

presstube opened this issue Apr 25, 2014 · 6 comments

Comments

@presstube
Copy link

Hi, I'm trying to run mvn package after cloning and cding into the neo4js dir and am getting the following error. Any idea what I might be doing wrong?

Thanks!
James


➜ neo4js git:(master) mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Neo4j - JavaScript REST Client 0.9-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- license-maven-plugin:3:check (check-licenses) @ neo4js ---
[INFO] Checking licenses...
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/exceptions/init.js
[INFO] [INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/cachedFunction.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/cypher/ExecutionEngine.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/cypher/ResultRow.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/exceptions/StartNodeSameAsEndNodeException.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/GraphDatabase.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/GraphDatabaseManager.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/index/Index.js
Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/init.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/index/init.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/index/NodeIndex.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/index/RelationshipIndex.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/log.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/exceptions/InvalidDataException.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/Events.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/models/JMXBean.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/models/Node.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/models/Path.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/cypher/init.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/models/PropertyContainer.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/Promise.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/exceptions/HttpException.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/Service.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/services/init.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/services/BackupService.js
[INFO] [INFO] [INFO] [INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/proxy.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/services/ExportService.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/index/Indexes.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/services/ConfigService.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/models/init.js
Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/services/ConsoleService.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/setInterval.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/setTimeout.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/GraphDatabaseHeartbeat.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/test/javascript/neo4j/GraphDatabaseTestCase.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/test/javascript/neo4j/index/IndexesTestCase.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/services/MonitorService.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/models/Relationship.js
Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/cypher/QueryResult.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/services/ImportService.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/test/javascript/neo4j/models/RelationshipTestCase.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/test/javascript/neo4j/index/IndexTestCase.js
Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/exceptions/NotFoundException.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/test/javascript/neo4j/WebTestCase.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/test/javascript/neo4j/PromiseTestCase.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/services/JmxService.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/test/javascript/neo4j/models/PropertyContainerTestCase.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/test/javascript/neo4j/models/NodeTestCase.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/test/javascript/neo4j/MockWebProvider.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/test/javascript/neo4j/index/NodeIndexTestCase.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/Web.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/exceptions/ConnectionLostException.js
[INFO] Missing header in: /Users/jamespaterson/projects/neo4js/src/main/javascript/neo4j/services/LifecycleService.js
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.617s
[INFO] Finished at: Fri Apr 25 14:55:04 EDT 2014
[INFO] Final Memory: 8M/305M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.neo4j.build.plugins:license-maven-plugin:3:check (check-licenses) on project neo4js: 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

@presstube
Copy link
Author

After poking around and looking at @nawroth's last commit I realized that it was b/c the headers were out of date:

Copyright (c) 2010-2013 "Neo Technology,"

instead of:

Copyright (c) 2010-2014 "Neo Technology,"

I did a find & replace locally and now it builds fine.

On a related note, would you consider offering a pre-packaged version of this library on Bower or something similar to make it easier for people to jump in?

Thanks,
James

@simpsonjulian
Copy link
Contributor

Hi @presstube,

Of the 4 or so JS drivers for Neo4j, this one is probably the oldest and is not maintained. What's your interest in it?

There are others listed here:

Best

Julian

@presstube
Copy link
Author

Thanks for getting back to me @simpsonjulian, much appreciated.

All of the JS drivers on that list appear to be for node.

I am writing some prototypes that run in the browser and was looking for a client-side library to hold my hand while interacting with a neo4j db.

Am I barking up the wrong tree? Should I just be using the rest api straight-up?

James

@nawroth
Copy link
Contributor

nawroth commented Apr 30, 2014

@presstube Just interacting with this endpoint should get you a long way:
http://docs.neo4j.org/chunked/stable/rest-api-transactional.html

@MatthewHerbst
Copy link

+1 to this after trying to use https://github.com/sheymans/sparql-plugin/blob/upgrade2.1.5/pom.xml

Fixing the dates to 2015 fixed it.

@simeonackermann
Copy link

The license issue still exists.

Just updating the dates to 2016 fixed it: https://github.com/simeonackermann/sparql-plugin/tree/upgrade2.1.5

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

5 participants