Need steps to setup WSO2 ESB code base in eclipse - wso2

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.

Related

aws KCL(Kinesis Client Library) library is throwing errors when building

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.

WSO2 pizzashack does not build (maven dependency)

I have downloaded the last version of WSO2 API manager and try to run the tutorial.
When trying to build the PizzaShack sample with maven, I get this error
Downloading: http://maven.wso2.org/nexus/content/groups/wso2-public/org/apache/httpcomponents/wso2/httpclient/4.1.1-wso2v1/httpclient-4.1.1-wso2v1.pom
[INFO] BUILD FAILURE
[ERROR] Failed to execute goal on project pizza-shack-web: Could not resolve dependencies for project com.pizzashack.client.web:pizza-shack-web:war:1.0.0:
Failed to collect dependencies at org.apache.httpcomponents.wso2:httpclient:jar:4.1.1-wso2v1:
Failed to read artifact descriptor for org.apache.httpcomponents.wso2:httpclient:jar:4.1.1-wso2v1: Could not transfer artifact org.apache.httpcomponents.wso2:httpclient:pom:4.1.1-wso2v1 from/to wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/): maven.wso2.org: Unknown host maven.wso2.org -> [Help 1]
Error says Unknown host maven.wso2.org
Make sure your computer has access to maven.wso2.org

how to build wso2 from platform directory

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

issue running mvn eclipse:eclipse on platform tag 4.0.3

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.

error while building neo4j source code

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.