sample spring data neo4j project downloaded from spring.io is throwing maven jar error - spring-data-neo4j

I have downloaded the spring data neo4j rest code from the following location
https://spring.io/guides/gs/accessing-neo4j-data-rest/
when I am running maven command to package I am getting following error.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gs-accessing-neo4j-data-rest 0.1.0
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/org/neo4j/neo4j-cypher-dsl/2.0.1/neo4j-cypher-dsl-2.0.1.pom
[WARNING] The POM for org.neo4j:neo4j-cypher-dsl:jar:2.0.1 is missing, no dependency information available
Downloading: https://repo.maven.apache.org/maven2/org/neo4j/neo4j-cypher-dsl/2.0.1/neo4j-cypher-dsl-2.0.1.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.861 s
[INFO] Finished at: 2015-08-04T03:53:47-04:00
[INFO] Final Memory: 14M/60M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project gs-accessing-neo4j-data-rest: Could not resolve dependencies for project org.springframework:gs-accessing-neo4j-data-rest:jar:0.1.0: Could not find artifact org.neo4j:neo4j-cypher-dsl:jar:2.0.1 in central (https://repo.maven.apache.org/maven2) -> [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/DependencyResolutionException
I don't know how to resolve this. can anybody help me with this.

Add the following section to main pom.xml so that Maven will be able to find and download missing artifact(s):
<repositories>
<repository>
<id>spring-releases</id>
<name>Spring Releases</name>
<url>https://repo.spring.io/libs-release</url>
</repository>
<repository>
<id>neo4j</id>
<name>Neo4j</name>
<url>http://m2.neo4j.org/</url>
</repository>
</repositories>

Related

Vaadin v23 -Pproduction BUILD FAILURE

I updated all architecture (Java17, Maven3, Spring 2.7/core5.3...) and Vaadin 23, but I can only run in development mode. I can no longer run -Pproduction. Build failure :
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33.260 s
[INFO] Finished at: 2022-08-31T11:35:42-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.vaadin:flow-maven-plugin:23.1.6:build-frontend (default) on project template-module-app: Could not execute build-frontend goal: Error occured during goal execution: Cannot invoke "java.lang.Class.isInterface()" because the return value of "org.reflections.Reflections.forClass(String, java.lang.ClassLoader[])" is nullPlease run Maven with the -e switch (or Gradle with the --stacktrace switch), to learn the full stack trace. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.vaadin:flow-maven-plugin:23.1.6:build-frontend (default) on project template-module-app: Could not execute build-frontend goal
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:375)
I've tried everything:
https://vaadin.com/docs/latest/tools/mpr/configuration/production-mode
https://vaadin.com/docs/latest/tools/ce/going-to-production
https://vaadin.com/docs/latest/production/troubleshooting
...

Kurento tutorial does not run

I am trying to run the Kurento "WebRTC Magic Mirror" tutorial from the Linux Mint terminal, but get these errors.
mvn compile exec:java -Dkms.url=ws://(MY aws ip):8888/kurento
Warning: JAVA_HOME environment variable is not set.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Kurento Java Tutorial - Magic Mirror 6.7.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java-version) # kurento-magic-mirror ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) # kurento-magic-mirror ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-bytecode-version) # kurento-magic-mirror ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-ban-duplicate-classes) # kurento-magic-mirror ---
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.BanDuplicateClasses failed with message:
Duplicate classes found:
Found in:
org.slf4j:jcl-over-slf4j:jar:1.7.21:compile
commons-logging:commons-logging:jar:1.1.3:compile
Duplicate classes:
org/apache/commons/logging/impl/SimpleLog$1.class
org/apache/commons/logging/LogConfigurationException.class
org/apache/commons/logging/Log.class
org/apache/commons/logging/impl/NoOpLog.class
org/apache/commons/logging/impl/SimpleLog.class
org/apache/commons/logging/LogFactory.class
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-ban-circular-dependencies) # kurento-magic-mirror ---
[INFO]
[INFO] --- buildnumber-maven-plugin:1.4:create-timestamp (get-build-timestamp) # kurento-magic-mirror ---
[INFO]
[INFO] --- buildnumber-maven-plugin:1.4:create (get-scm-revision) # kurento-magic-mirror ---
[INFO] Executing: /bin/sh -c cd '/home/jonado/kurento-tutorial-java/kurento-magic-mirror' && 'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: /home/jonado/kurento-tutorial-java/kurento-magic-mirror
[INFO] Storing buildNumber: a54263bde3275fc6e49db51be17268040df4e53d at timestamp: 1530780937453
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref
[INFO] Executing: /bin/sh -c cd '/home/jonado/kurento-tutorial-java/kurento-magic-mirror' && 'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: /home/jonado/kurento-tutorial-java/kurento-magic-mirror
[INFO] Storing buildScmBranch: UNKNOWN
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) # kurento-magic-mirror ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 14 resources
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) # kurento-magic-mirror ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to /home/jonado/kurento-tutorial-java/kurento-magic-mirror/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.688 s
[INFO] Finished at: 2018-07-05T11:55:37+03:00
[INFO] Final Memory: 29M/599M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project kurento-magic-mirror: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] -> [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/MojoFailureException
I have installed Kurento Media server on AWS as written in the documentation (part 4.1): https://media.readthedocs.org/pdf/doc-kurento/stable/doc-kurento.pdf , and after that just followed the instructions to run the tutorial.
The first warning message says:
JAVA_HOME environment variable is not set.
As Media Server is located on AWS, isn't it suppose to be already installed? If not, how can I install it?
Also, I wanted to configure STUN server, however I don't know where to find WebRtcEndpoint.conf.ini file, as Kurento Media Server is located on AWS. So, where is it possible to find WebRtcEndpoint.conf.ini file?
And the main question: what should I change/install/update in order to successfully run the tutorial?
You need to install the Java JDK to run any of the Java demos on your computer. The Java demo is separate from the Kurento Media Server, it uses the Java Kurento Client libraries to send/receive messages from the Kurento Media Server.
And in regards to WebRtcEndpoint.conf.ini, that is located on the AWS server where you deployed Kurento Media Server. You will need to edit the file (/etc/kurento/modules/kurento/WebRtcEndpoint.conf.ini) and restart Kurento for the changes to take effect. Related Kurento Config docs

mule-Failed to execute goal org.apache.cxf:cxf-codegen-plugin:2.5.9:wsdl2java (default) on project : javax/xml/ws/Action

I'm following http://www.mulesoft.org/documentation... to create a connector to a SOAP Service via CXF Client Example. When I add the required maven dependency code in ,pom file and clean and run it(on mule studio)...I'm getting the following error :
Failed to execute goal org.apache.cxf:cxf-codegen-plugin:2.5.9:wsdl2java (default) on project sunsetriseconnector: javax/xml/ws/Action
The full stack trace looks like this :
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Sunset Sunrise Service 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> studio-maven-plugin:3.4.2:studio (default-cli) # sunsetriseconnector >>>
[INFO]
[INFO] --- mule-devkit-maven-plugin:3.4.0:attach-test-resources (default-attach-test-resources) # sunsetriseconnector ---
[INFO] Attaching test resource D:\MuleExamples\sunsetrise\src\main\app
[INFO]
[INFO] --- maven-enforcer-plugin:1.0-alpha-4:enforce (enforce-maven-version) # sunsetriseconnector ---
[INFO]
[INFO] --- mule-devkit-maven-plugin:3.4.0:generate-sources (default-generate-sources) # sunsetriseconnector ---
[INFO] Source directory: D:\MuleExamples\sunsetrise\target\generated-sources\mule added
[INFO] Resource directory: D:\MuleExamples\sunsetrise\target\generated-sources\mule added
[INFO] Sorting generator executing based on their dependencies...
[INFO] Searching for classes annotated with #Connector
[INFO] Validating sunsetriseConnector class
[INFO] Validating Multi-module consistency
[INFO] Adding registry bootstrap entry for org.tutorial.sunsetrise.agents.DefaultSplashScreenAgent as DefaultSplashScreenAgent
[INFO] Generating message processor as org.tutorial.sunsetrise.processors.MyProcessorMessageProcessor for method myProcessor in sunsetriseConnector
[INFO] Generating config element definition parser as org.tutorial.sunsetrise.config.sunsetriseConnectorConfigDefinitionParser for class sunsetriseConnector
[INFO] Generating bean definition parser as org.tutorial.sunsetrise.config.MyProcessorDefinitionParser for message processor org.tutorial.sunsetrise.processors.MyProcessorMessageProcessor
[INFO] Validating example for method: myProcessor
log4j:WARN No appenders could be found for logger (org.springframework.beans.factory.xml.PluggableSchemaResolver).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[INFO]
[INFO] --- cxf-codegen-plugin:2.5.9:wsdl2java (default) # sunsetriseconnector ---
May 2, 2014 12:18:13 PM org.apache.cxf.xjc.bg.BooleanGetterPlugin run
INFO: Running boolean getter plugin.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.464s
[INFO] Finished at: Fri May 02 12:18:13 IST 2014
[INFO] Final Memory: 33M/62M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:2.5.9:wsdl2java (default) on project sunsetriseconnector: javax/xml/ws/Action -> [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
I'm pretty new in mule and also in Apache cxf. Please help me.
Thanks.
I got the fix by adding jaxws-api-2.2.1.jar inside C:\Program Files (x86)\Java\jdk1.6.0_02\jre\lib\endorsed folder.
If you're using MuleStudio, which is built on Eclipse, you should import the JAR into your build path. See This SO answer
If you're using Mule ESB Standalone, you should drop the JAR into the MULE_HOME/apps/yourapp/lib directory if you need it on a per-app basis, or in the /MULE_HOME/lib/user
See the class loader documentation

Error while building GremlinPlugin for Neo4j Server

I try to explore how neo4j could be integrated with django project and launch admin page in my django project with dependence on neo4django. But seems it requires GremlinPlugin extension in neo4j server.
Using this documentation I try to build jar file for GremlinPlugin.
But already on the first step I have error with absent license header:
alx#x1:~/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
I use maven of version 3.0.4:
alx#x1:~/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"
Does anybody has ideas what causes this problem and how can i fix it?
The final solution was in pulling source code of the last commit (this one at the moment of writing). Thanks to Michael Hunger for rapid response!

Uable to build WSO2 API Mngt 4.0.7

When i am trying to build wso2 api mgnt i got this error: Please help me
mvn clean install
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15:22.482s
[INFO] Finished at: Wed Apr 24 15:02:05 IST 2013
[INFO] Final Memory: 19M/490M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.5:p2-profile-gen
(3-p2-profile-generation) on project am-p2-profile: P2 publisher return code was 13 -> [
First you have to build orbit then kernal and after that the platform. Have you done that order. If you get the same error can you paste full error log.
Thanks !