2014-01-14 26 views
0

我嘗試探索如何將neo4j與django項目集成,並在依賴於neo4django的django項目中啓動管理頁面。但似乎它需要neo4j服務器中的GremlinPlugin擴展。爲Neo4j服務器構建GremlinPlugin時出錯

使用this documentation我嘗試爲GremlinPlugin構建jar文件。

但已經在第一步,我有沒有執照頭錯誤:

[email protected]:~/Downloads/gremlin-plugin$ mvn -e clean package 
[INFO] Error stacktraces are turned on. 
[INFO] Scanning for projects... 
[INFO]                   
[INFO] ------------------------------------------------------------------------ 
[INFO] Building neo4j-gremlin-plugin 2.0-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ neo4j-gremlin-plugin --- 
[INFO] 
[INFO] --- license-maven-plugin:3:check (check-licenses) @ neo4j-gremlin-plugin --- 
[INFO] Checking licenses... 
[INFO] Missing header in: /home/alx/Downloads/gremlin-plugin/src/site/site.xml 
[INFO] [INFO] Missing header in: /home/alx/Downloads/gremlin-plugin/src/test/java/org/neo4j/server/webadmin/rest/GremlinConsoleServiceTest.java 
[INFO] Missing header in: /home/alx/Downloads/gremlin-plugin/src/test/java/org/neo4j/server/webadmin/rest/ConfigureEnabledManagementConsolesGremlinTest.java 
[INFO] Missing header in: /home/alx/Downloads/gremlin-plugin/src/main/assembly/docs-assembly.xml 
[INFO] Missing header in: /home/alx/Downloads/gremlin-plugin/src/main/assembly/server-plugin.xml 
[INFO] Missing header in: /home/alx/Downloads/gremlin-plugin/src/main/java/org/neo4j/server/rest/repr/GremlinObjectToRepresentationConverter.java 
[INFO] Missing header in: /home/alx/Downloads/gremlin-plugin/src/main/java/org/neo4j/server/rest/repr/GremlinTableRepresentation.java 
[INFO] Missing header in: /home/alx/Downloads/gremlin-plugin/src/main/java/org/neo4j/server/rest/repr/GremlinMapRepresentation.java 
[INFO] Missing header in: /home/alx/Downloads/gremlin-plugin/src/main/java/org/neo4j/server/plugin/gremlin/GremlinPlugin.java 
[INFO] Missing header in: /home/alx/Downloads/gremlin-plugin/src/main/java/org/neo4j/server/plugin/gremlin/CountingEngineReplacementDecision.java 
[INFO] Missing header in: /home/alx/Downloads/gremlin-plugin/src/main/java/org/neo4j/server/plugin/gremlin/EngineReplacementDecision.java 
Missing header in: /home/alx/Downloads/gremlin-plugin/src/test/java/org/neo4j/server/plugin/gremlin/GremlinPluginTest.java 
[INFO] Missing header in: /home/alx/Downloads/gremlin-plugin/src/main/java/org/neo4j/server/plugin/gremlin/ScriptCountingEngineReplacementDecision.java 
[INFO] Missing header in: /home/alx/Downloads/gremlin-plugin/src/main/java/org/neo4j/server/webadmin/console/Neo4jGroovyImports.java 
[INFO] Missing header in: /home/alx/Downloads/gremlin-plugin/src/main/java/org/neo4j/server/webadmin/console/GremlinSessionCreator.java 
[INFO] [INFO] [INFO] Missing header in: /home/alx/Downloads/gremlin-plugin/src/test/resources/graphml.xml 
[INFO] Missing header in: /home/alx/Downloads/gremlin-plugin/src/test/java/org/neo4j/server/webadmin/console/GremlinSessionTest.java 
Missing header in: /home/alx/Downloads/gremlin-plugin/src/main/java/org/neo4j/server/webadmin/console/GremlinWebConsole.java 
[INFO] Missing header in: /home/alx/Downloads/gremlin-plugin/src/main/java/org/neo4j/server/webadmin/console/GremlinResultHook.java 
[INFO] Missing header in: /home/alx/Downloads/gremlin-plugin/src/main/java/org/neo4j/server/webadmin/console/GremlinSession.java 
Missing header in: /home/alx/Downloads/gremlin-plugin/src/test/java/org/neo4j/server/plugin/gremlin/GremlinPluginFunctionalTest.java 
[INFO] Missing header in: /home/alx/Downloads/gremlin-plugin/src/data/graphml1.xml 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 1.864s 
[INFO] Finished at: Tue Jan 14 21:58:25 MSK 2014 
[INFO] Final Memory: 13M/302M 
[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] 
org.apache.maven.lifecycle.LifecycleExecutionException: 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 
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) 
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) 
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) 
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) 
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) 
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) 
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) 
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) 
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) 
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) 
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) 
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:606) 
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) 
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) 
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) 
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) 
Caused by: org.apache.maven.plugin.MojoExecutionException: Some files do not have the expected license header 
    at com.google.code.mojo.license.LicenseCheckMojo.execute(LicenseCheckMojo.java:64) 
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) 
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) 
    ... 19 more 
[ERROR] 
[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 

我用的是3.0.4版本的maven:

[email protected]:~/Downloads/gremlin-plugin$ mvn -v 
Apache Maven 3.0.4 
Maven home: /usr/share/maven 
Java version: 1.7.0_25, vendor: Oracle Corporation 
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre 
Default locale: en_US, platform encoding: UTF-8 
OS name: "linux", version: "3.8.0-35-generic", arch: "amd64", family: "unix" 

是否有人有想法是什麼原因導致這個問題,我該如何解決它?

+0

你什麼時候從存儲庫中取出來的?再試一次。 –

+0

邁克爾,似乎我從大師拉已不是最新鮮的一個(我一直困擾與一天前的問題)。但是你最後一次提交(-s)是神奇的!謝謝! 我應該刪除問題還是將其標記爲已解決? – user2570027

+0

將其標記爲已解決。 –

回答