I'm trying to build Neo4J , I have downloaded the source from github: neo4j-master.zip
containing the source,
when i build this I hit upon following errors. tried to find out in google but
couldn't relavant details, I'm new to this product and i'm sure I have missed something
related to .git can any one help me if identifing this problem . Thanks in adavance.
Messages from Maven:
[INFO] Neo4j ............................................. SUCCESS [8.300s]
[INFO] Licensing configuration ........................... SUCCESS [3.338s]
[INFO] Neo4j - Graph Database Kernel ..................... FAILURE [2.371s]
.
.
.
.
[ERROR] Failed to execute goal pl.project13.maven:git-commit-id-plugin:2.1.4:rev
ision (generate-git-hash) on project neo4j-kernel: .git directory could not be f
ound! Please specify a valid [dotGitDirectory] in your pom.xml -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
I'm using mvn clean install command for initiating the build.
Regards,
Aslam.
Related
I am following this link to start amazon KCL, Kinesis Client Library, because I need to use nodeJ.
I following steps here:
https://github.com/awslabs/amazon-kinesis-client
But when I run mvn clean install -Dgpg.skip=true, I got error as below:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.3:jar (attach-javadocs) on project amazon-kinesis-client: MavenReportException: Error while generating Javadoc:
[ERROR] Exit code: 1 - error: error reading /Users/frankhe/.m2/repository/com/google/guava/guava/26.0-jre/guava-26.0-jre.jar; invalid LOC header (bad signature)
[ERROR]
[ERROR] Command line was: /Library/Java/JavaVirtualMachines/jdk1.8.0_192.jdk/Contents/Home/jre/../bin/javadoc #options #packages
[ERROR]
[ERROR] Refer to the generated Javadoc files in '/Users/frankhe/projects/aws/kinesis/amazon-kinesis-client/amazon-kinesis-client/target/apidocs' dir.
[ERROR]
what's wrong there? Is aws kcl is still working?
It seems that jar is corrupted. Remove the jar and try again.
I'm trying to use Apache Flink with AWS kinesis. The document says that I have to build the connector on my own.
Therefore, I build the connector and added the jar file for my project and also, I put the dependency on my pom.xml file.
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-connector-kinesis_2.11</artifactId>
<version>1.6.1</version>
</dependency>
However, when I tried to build using mvn clean package I got an error message like this
[INFO] -----------------------< kkaldk:flink-kinesis >-----------------------
[INFO] Building Flink Quickstart Job 0.1
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for org.apache.flink:flink-connector-kinesis_2.11:jar:1.6-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.458 s
[INFO] Finished at: 2018-12-19T17:45:43+09:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project flink-kinesis: Could not resolve dependencies for project kkaldk:flink-kinesis:jar:0.1: Failure to find org.apache.flink:flink-connector-kinesis_2.11:jar:1.6-SNAPSHOT in https://repository.apache.org/content/repositories/snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of apache.snapshots has elapsed or updates are forced ->
[Help 1]
[ERROR]
Could you help me to fix this?
---------added----------
This is what I've done (which is wrong procedure)
started project following this document
build connector from flink master source (which is 1.8-snapshot)
add dependency with 1.6.1 version.
This is what I've done for solution.
I downloaded 1.6.1 release from here.
unzip the file (the archive will be unzip in .../flink-release-1.6.1/
built it by mvn clean install -Pinclude-kinesis -DskipTests
Then I have flink-connector-kinesis_2.11 version 1.6.1 in my local maven repository
(for me, path was like this): ~/.m2/repository/org/apache/flink/flink-connector-kinesis_2.11
After then, I could use this connector at any project by adding dependency with this code. (I don't have to add the jar file anymore.)
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-connector-kinesis_2.11</artifactId>
<version>1.6.1</version>
</dependency>
I download code from github, and try to run "mvn compile" from platform, then I got following error:
D:\wso2\platform-master>mvn compile
Listening for transport dt_socket at address: 8000
[INFO] Scanning for projects...
[ERROR] The build could not read 4 projects -> [Help 1]
[ERROR]
[ERROR] The project org.wso2.carbon:carbon-dependents:4.2.0-SNAPSHOT (D:\wso2\platform-master\dependencies\pom.xml) has 1 error
[ERROR] Child module D:\wso2\platform-master\dependencies\commons\charon\2.0.0-SNAPSHOT of D:\wso2\platform-master\dependencies\pom.xml does not e
xist
[ERROR]
[ERROR] The project org.wso2.carbon:carbon-components:4.2.0-SNAPSHOT (D:\wso2\platform-master\components\pom.xml) has 1 error
[ERROR] Child module D:\wso2\platform-master\components\jaggery of D:\wso2\platform-master\components\pom.xml does not exist
[ERROR]
[ERROR] The project org.wso2.carbon:carbon-features:4.2.0-SNAPSHOT (D:\wso2\platform-master\features\pom.xml) has 1 error
[ERROR] Child module D:\wso2\platform-master\features\jaggery\features of D:\wso2\platform-master\features\pom.xml does not exist
[ERROR]
[ERROR] The project org.wso2.carbon:carbon-products:4.2.0-SNAPSHOT (D:\wso2\platform-master\products\pom.xml) has 1 error
[ERROR] Child module D:\wso2\platform-master\products\integration\security-verifier of D:\wso2\platform-master\products\pom.xml does not exist
[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/ProjectBuildingException
When you say, you downloaded code from GitHub, I guess you cloned https://github.com/wso2/platform
WSO2 currently uses SVN as the main source repository and therefore I recommend you to use the SVN repository. Following has the current WSO2 Carbon code.
https://svn.wso2.org/repos/wso2/carbon/
Before checking out the code, please make sure you understand how the SVN repository is structured.
There are many resources on the web about building WSO2 Carbon from source. Please search on the web. Here is my answer given to a similar question about building from source.
FYI: WSO2 just released Carbon 4.2.0 and therefore we currently use the 4.2.0 branches.
https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0
https://svn.wso2.org/repos/wso2/carbon/orbit/branches/4.2.0
https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.2.0
I have checked out the platform 4.0.3 tag, and have hit an issue with the SecVerifier when running mvn eclipse:eclipse.
I've cleaned the maven cache for SecVerifier:
rm -rf %USERPROFILE%\.m2\repository\org\wso2\carbon\SecVerifier
rm -rf %USERPROFILE%\.m2\repository\org\wso2\carbon\integration
Then tried mvn eclipse:clean eclipse:eclipse:
C:\wso2\src\wso2carbon_platform_tags_403>mvn eclipse:clean eclipse:eclipse
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.wso2.carbon:SecVerifier:4.0.0 (C:\wso2\src\wso2carbon_platform_tags_403\products\integration\security-verifier\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Failure to find org.wso2.carbon:integration:pom:4.0.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM # line 22, column 13 -> [Help 2]
I found this JIRA: link, and applied the fix. Similar error:
[ERROR] The project org.wso2.carbon:SecVerifier:4.0.0 ... has 1 error
...
[ERROR] Non-resolvable parent POM: Could not find artifact
org.wso2.carbon:integration:pom:4.0.0 in central (http://repo.maven.apache.org/maven2) and
'parent.relativePath' points at wrong local POM # line 22, column 13 -> [Help 2]
Any ideas?
According to the error log maven cannot find the parent pom.xml file since it is unavailable on the given location. You can check your checkout code and figure out the actual location and set the relative path correctly.
This need to be work correctly but due to some changes done by users sometimes builds can be break.
Hope this might help you.
Thanks.
Can any one please let me know the steps to setup the code base in eclipse.I wish to debug few components features. Please let me know the package or structure how i can find the source code of a specific component or mediator ?
Thanks in advance.
Landing into below error when trying to build Enrich code
C:\Enrich_Workspace>mvn clean install
[INFO] Scanning for projects...
Downloading: http://repo.maven.apache.org/maven2/org/wso2/carbon/mediators/3.2.0/mediators-3.2.0.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.wso2.carbon:enrich-mediator:3.2.0 (C:\Enrich_Workspace\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact org.wso2.carbon:mediators:pom:3.2.0 in central (http://repo.maven.apache.org/maven2
) and 'parent.relativePath' points at wrong local POM # line 22, column 13 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Check out the source code from here using SVN https://svn.wso2.org/repos/wso2/branches/carbon/3.2.0/components/mediators/enrich/ .
Build the source using Maven 2. Then import the project to Eclipse.