Unable to Install Entando 5 from maven artifact - failed-installation

I try to install Entando as describe in the documentation http://docs.entando.com/#installation using the maven archetype
mvn archetype:generate -Dfilter=entando-archetype-webapp-generic
the option to install version 5 is never shown.
mvn archetype:generate -Dfilter=entando-archetype-webapp-generic
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) > generate-sources # standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) < generate-sources # standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) # standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: remote -> org.entando.entando:entando-archetype-webapp-generic (Generic web app Archetype for Entando: an agile, modern and user-centric open source web app like platform.)
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 1
Choose org.entando.entando:entando-archetype-webapp-generic version:
1: 4.3.2
2: 4.3.3
Choose a number: 2:

The maven central archetype catalog is only updated on Sundays. Since this release was on a Tuesday it won't show up until the following Sunday which was June 4th. It should be a choice now
Alternatively you can add this XML to your archetype-catalog.xml in your .m2/repository directory.
<archetype>
<groupId>org.entando.entando</groupId>
<artifactId>entando-archetype-bundle-content</artifactId>
<version>5.0.0</version>
<description>Content Type Bundle Archetype for Entando.</description>
</archetype>
<archetype>
<groupId>org.entando.entando</groupId>
<artifactId>entando-archetype-bundle-theme-generic</artifactId>
<version>5.0.0</version>
<description>Theme (Page Model) Bundle Archetype for Entando.</description>
</archetype>
<archetype>
<groupId>org.entando.entando</groupId>
<artifactId>entando-archetype-bundle-widget-generic</artifactId>
<version>5.0.0</version>
<description>Widget Bundle Archetype for Entando.</description>
</archetype>
<archetype>
<groupId>org.entando.entando</groupId>
<artifactId>entando-archetype-plugin-generic</artifactId>
<version>5.0.0</version>
<description>Plugin Archetype for Entando: an agile, modern and user-centric open source web app like platform.</description>
</archetype>
<archetype>
<groupId>org.entando.entando</groupId>
<artifactId>entando-archetype-entando-sample</artifactId>
<version>5.0.0</version>
<description>Entando sample web app Archetype: an agile, modern and user-centric open source web app like platform.</description>
</archetype>
<archetype>
<groupId>org.entando.entando</groupId>
<artifactId>entando-archetype-webapp-generic</artifactId>
<version>5.0.0</version>
<description>Generic web app Archetype for Entando: an agile, modern and user-centric open source web app like platform.</description>
</archetype>
<archetype>
<groupId>org.entando.entando</groupId>
<artifactId>entando-archetype-web-app-BPM</artifactId>
<version>5.0.0</version>
<description>RedHat BPM web application Archetype for Entando: an agile, modern and user-centric open source web app like.</description>
</archetype>

Related

How to configure AWS SAM on Eclipse and Window 10

I am using STS 4 (https://spring.io/tools) and added Eclipse AWS toolkit (https://marketplace.eclipse.org/content/aws-toolkit-eclipse) .
After restart STS we can see everything is good.
Now i have installed AWS SAM CLI local
And configured path where we have sam.exe
I have Java 8 and Python 2.7 and 3.6 and docker installed in my local.
Now created AWS Java serverless project maven install and try to run sam local
https://aws.amazon.com/blogs/developer/aws-toolkit-for-eclipse-locally-debug-your-lambda-functions-and-api-gateway/
Update :
When i am try to run SAM-CLI its working and returning response.
Template.yaml
AWSTemplateFormatVersion : '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: AWS Lambda Sample Project
Resources:
Products:
Type: AWS::Serverless::Function
Properties:
Handler: com.example.handler.LambdaHandler
CodeUri: ./target/lambda-project-1.0-SNAPSHOT.jar
Runtime: java8
Timeout: 300
Environment:
Variables:
ENVIRONMENT: "test"
Events:
ListProducts:
Type: Api
Properties:
Path: /lambda
Method: post
And run configuration
**Maven build :**
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< com.example:lambda-project >---------------------
[INFO] Building lambda-project 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # lambda-project ---
[INFO] Deleting C:\Users\vaqua\Documents\code\AWS-Lambda-Example-master\AWS-Lambda-Example-master\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # lambda-project ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) # lambda-project ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 6 source files to C:\Users\vaqua\Documents\code\AWS-Lambda-Example-master\AWS-Lambda-Example-master\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # lambda-project ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) # lambda-project ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 1 source file to C:\Users\vaqua\Documents\code\AWS-Lambda-Example-master\AWS-Lambda-Example-master\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) # lambda-project ---
[INFO] Surefire report directory: C:\Users\vaqua\Documents\code\AWS-Lambda-Example-master\AWS-Lambda-Example-master\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.example.handler.LambdaHandlerTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.291 sec
Results :
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) # lambda-project ---
[INFO] Building jar: C:\Users\vaqua\Documents\code\AWS-Lambda-Example-master\AWS-Lambda-Example-master\target\lambda-project-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-shade-plugin:3.1.0:shade (default) # lambda-project ---
[INFO] Including com.amazonaws:aws-lambda-java-events:jar:2.0.2 in the shaded jar.
[INFO] Including joda-time:joda-time:jar:2.6 in the shaded jar.
[INFO] Including com.amazonaws:aws-lambda-java-core:jar:1.2.0 in the shaded jar.
[INFO] Including com.typesafe:config:jar:1.3.1 in the shaded jar.
[INFO] Including org.apache.logging.log4j:log4j-api:jar:2.5 in the shaded jar.
[INFO] Including org.apache.logging.log4j:log4j-core:jar:2.5 in the shaded jar.
[INFO] Including com.google.code.gson:gson:jar:2.8.2 in the shaded jar.
[INFO] Replacing original artifact with shaded artifact.
[INFO] Replacing C:\Users\vaqua\Documents\code\AWS-Lambda-Example-master\AWS-Lambda-Example-master\target\lambda-project-1.0-SNAPSHOT.jar with C:\Users\vaqua\Documents\code\AWS-Lambda-Example-master\AWS-Lambda-Example-master\target\lambda-project-1.0-SNAPSHOT-shaded.jar
[INFO] Dependency-reduced POM written at: C:\Users\vaqua\Documents\code\AWS-Lambda-Example-master\AWS-Lambda-Example-master\dependency-reduced-pom.xml
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.510 s
[INFO] Finished at: 2018-12-25T21:27:10-06:00
[INFO] ------------------------------------------------------------------------
Error logs:
Failed to launch SAM Local.
com.amazonaws.eclipse.core.exceptions.AwsActionException
Logs:
eclipse.buildId=4.0.2.201811300843-RELEASE
java.version=1.8.0_191
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.springframework.boot.ide.branding.sts4
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.springframework.boot.ide.branding.sts4
com.amazonaws.eclipse.lambda
Error
Tue Dec 25 21:21:52 CST 2018
Failed to launch SAM Local.
com.amazonaws.eclipse.core.exceptions.AwsActionException
at com.amazonaws.eclipse.lambda.launching.SamLocalDelegate.launch(SamLocalDelegate.java:159)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:862)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:720)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1029)
at org.eclipse.debug.internal.ui.DebugUIPlugin$2.run(DebugUIPlugin.java:1243)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.lang.NullPointerException
at com.amazonaws.eclipse.lambda.launching.SamLocalDelegate.launch(SamLocalDelegate.java:116)
... 5 more
eclipse.buildId=4.0.2.201811300843-RELEASE
java.version=1.8.0_191
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.springframework.boot.ide.branding.sts4
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.springframework.boot.ide.branding.sts4
org.eclipse.m2e.logback.appender
Warning
Tue Dec 25 21:21:47 CST 2018
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
I am wonder if anyone solved that issue ?
Had the same issue.
First you should open the command line and run
where sam
If you find that the path contains any spaces, for example, if it has 'Program Files' in its path then uninstall samcli and reinstall it. Make sure that its path does not contain any spaces, for example: C:\Amazon\SAMCLI. And when you're done installing samcli rerun the previous code in cmd and copy the path and paste in eclipse.
Secondly, you should follow Dimman's advice by creating a config file. You can do so by using awscli by running
aws configuration
This will create the file automatically. Save and restart and everything should be fine.
Good luck.
Had the same issue, made the following changes and was able to continue...
In your section "And run configuration", in the image.
Make sure that you have expanded the "Advanced" section and added the needed info,
AWS Configuration
SAM Local Configuration (this should be setup).
Also try adding doing the following.
In your folder
C:\Users\YOUR_USER.aws
You should see two files, credentials, and config.
I did not have the file config so I created it and added the following:
[default]
region=YOUR_REGION
I also added the following line under the [username] in the credentials file:
region=YOUR_REGION
I saved and restarted everything and got it to work.
Now I have some other issues. But they are specific to JSON parsing.

WSO2 API Manager 1.10.0

I want to grab source code for carbon-apimgt:
https://github.com/wso2/carbon-apimgt
Also the source code for product-apim:
https://github.com/wso2/product-apim
I don't want to grab the latest source code I just want to grab the v1.10.0 release for these two repos.
What I do to grab the versions and build is the following:
git clone https://github.com/wso2/carbon-apimgt.git
git checkout tags/v5.0.3
cd carbon-apimgt
mvn clean install
carbon v5.0.3 builds just fine (I am using Java 7)
I than do this for product-apim:
git clone https://github.com/wso2/product-apim.git
git checkout tags/v1.10.0
cd product-apim
mvn clean install
product-apim is failing the build on a unit test:
Tests run: 325, Failures: 2, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 API Manager - Aggregator Module .............. SUCCESS [0.640s]
[INFO] WSO2 API Manager - Styles Parent .................. SUCCESS [0.033s]
[INFO] WSO2 API Manager - Styles ......................... SUCCESS [1.835s]
[INFO] WSO2 Stratos API Manager - UI styles ............. SUCCESS [1.908s]
[INFO] WSO2 API Manager - Multi Tenant Dashboard ......... SUCCESS [0.709s]
[INFO] WSO2 Stratos API Manager - Dashboard UI .......... SUCCESS [0.770s]
[INFO] WSO2 AM - Login User Interface .................... SUCCESS [0.668s]
[INFO] WSO2 API Manager - Features Parent ................ SUCCESS [0.023s]
[INFO] WSO2 API Manager - Features Aggregator Module ..... SUCCESS [0.019s]
[INFO] WSO2 API Manager - Styles Features ................ SUCCESS [0.307s]
[INFO] WSO2 API Manager - Multi Tenant Dashboard Feature . SUCCESS [0.873s]
[INFO] WSO2 Stratos API Manager - Features Aggregator Module SUCCESS [0.018s]
[INFO] WSO2 Stratos API Manager - Style Features ........ SUCCESS [0.307s]
[INFO] WSO2 Stratos API Manager - Utils Features ........ SUCCESS [0.694s]
[INFO] WSO2 Stratos API Manager - Dashboard UI Features . SUCCESS [0.385s]
[INFO] WSO2 Stratos API Manager - Deployment Features ... SUCCESS [0.237s]
[INFO] WSO2 API Manager - P2 Profile Generation Parent ... SUCCESS [0.017s]
[INFO] WSO2 API Manager - P2 Profile Generation .......... SUCCESS [2:28.018s]
[INFO] WSO2 API Manager - DAS Carbon Application ......... SUCCESS [0.218s]
[INFO] WSO2 API Manager - Distribution Parent ............ SUCCESS [0.020s]
[INFO] WSO2 API Manager - Distribution ................... SUCCESS [1:06.090s]
[INFO] WSO2 API Manager - Integration Tests .............. SUCCESS [1.279s]
[INFO] WSO2 API Manager - Integration Test Common Module . SUCCESS [0.737s]
[INFO] WSO2 API Manager - Integration Admin Clients Module SUCCESS [3.246s]
[INFO] WSO2 API Manager - Integration Common Test Module . SUCCESS [2.020s]
[INFO] WSO2 API Manager - Test Artifacts Tests ........... SUCCESS [0.993s]
[INFO] WSO2 API Manager - RestFul Backend Module for Integration Tests SUCCESS [0.944s]
[INFO] WSO2 API Manager - ArtifactDeploymentMonitor WebApp SUCCESS [6.900s]
[INFO] WSO2 API Manager - Integration Extensions Module .. SUCCESS [1.698s]
[INFO] WSO2 API Manager - Integration UI Pages Module .... SUCCESS [0.714s]
[INFO] WSO2 API Manager - Integration New Test Module .... SUCCESS [0.748s]
[INFO] WSO2 API Manager - Based on product backend Test Module FAILURE [43:38.211s]
[INFO] WSO2 APIManager - Nested Feature Categories ....... SKIPPED
[INFO] API Gateway Manager 1.10.0 ........................ SKIPPED
[INFO] API Gateway Worker 1.10.0 ......................... SKIPPED
[INFO] API Key Manager 1.10.0 ............................ SKIPPED
[INFO] API Publisher 1.10.0 .............................. SKIPPED
[INFO] API Store 1.10.0 .................................. SKIPPED
Failed Tests:
APIM684GenerateApplicationKeyTestCase.generateApplicationKeyWithoutScope:222 Response Code Mismatched expected:<200> but was:<302>
Anyone have any clue as to why this is not working?
This test case is based on the backend "http://public.opencpu.org/ocpu/library". Looks like there's been some changes happened in the backend and due to that the test case is failing.
1. Test cases assets the response status code 200 for the GET http://public.opencpu.org/ocpu/library request. But first response is 302 redirection to "http://public.opencpu.org/ocpu/library/" (with the last "/")
2. Response data is checked if it contains "AcceptanceSampling" but it is not there now.
See:
https://github.com/wso2/product-apim/blob/v1.10.0/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/api/lifecycle/ChangeAPIEndPointURLTestCase.java#L137
As Lakmali mentioned in the comment you can ignore this failure or if you really need to see this passing I would suggest you to do two edits to the test case.
Change API2_END_POINT_URL with adding a "/":
http://public.opencpu.org/ocpu/library/
https://github.com/wso2/product-apim/blob/v1.10.0/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/api/lifecycle/ChangeAPIEndPointURLTestCase.java#L56
Change API2_RESPONSE_DATA with something available in the response. You can go to http://public.opencpu.org/ocpu/library/ in your browser and add a word that is already available. Eg: adehabitatHR
https://github.com/wso2/product-apim/blob/v1.10.0/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/api/lifecycle/ChangeAPIEndPointURLTestCase.java#L55
Re run the tests

JHipster Cloudfoundary throwing "Error uploading application" error

I am attempting to push my Jhipster app to cloud foundry using jhipster cloudfoundary command. Right at the end of the process it is throwing an error
Error uploading application.
GetFileAttributesEx C:\IBP\03_Product\modelDR\03_Product\01_Jhipster\modeldr006\target\*.war: The filename, directory name or volume label syntax is incorrect.
Google is suggesting things like GetFileAttributesEx doesnt like special characters. I cant think what I could be doing to cause a file name syntax error. I tried deleting the target*.war files and re-compiling but no help. I am on Windows 8.1 64, with all updates applied.
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\IBP\03_Product\modelDR\03_Product\01_Jhipster\modeldr006>yo jhipster:cloudfoundry
CloudFoundry configuration is starting
? Name to deploy as: modeldr006
? Which profile would you like to use? dev
? What is the name of your database service? cleardb
? What is the name of your database plan? spark
Creating Cloud Foundry deployment files
identical deploy\cloudfoundry\manifest.yml
Checking for an existing Cloud Foundry hosting environment...
Creating your Cloud Foundry hosting environment, this may take a couple minutes...
Creating the database
Creating service modeldr006 in org ModelDrivers / space development as greg.soulsby#ibpartners.co.uk...
OK
Building the application with the development profile
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for us.modeldrivers.us:modeldr006:war:0.0.1-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.springframework.hateoas:spring-hateoas:jar -> duplicate declaration of version (?) # line
318, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building modeldr006 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-versions) # modeldr006 ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # modeldr006 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 9 resources
[INFO] Copying 22 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # modeldr006 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 115 source files to C:\IBP\03_Product\modelDR\03_Product\01_Jhipster\modeldr006\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # modeldr006 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) # modeldr006 ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.15:test (default-test) # modeldr006 ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-war-plugin:2.4:war (default-war) # modeldr006 ---
[INFO] Packaging webapp
[INFO] Assembling webapp [modeldr006] in [C:\IBP\03_Product\modelDR\03_Product\01_Jhipster\modeldr006\target\modeldr006-0.0.1-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [C:\IBP\03_Product\modelDR\03_Product\01_Jhipster\modeldr006\src\main\webapp]
[INFO] Webapp assembled in [8576 msecs]
[INFO] Building war: C:\IBP\03_Product\modelDR\03_Product\01_Jhipster\modeldr006\target\modeldr006-0.0.1-SNAPSHOT.war
[INFO]
[INFO] --- spring-boot-maven-plugin:1.1.9.RELEASE:repackage (default) # modeldr006 ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 30.544 s
[INFO] Finished at: 2014-11-26T18:16:04+00:00
[INFO] Final Memory: 44M/391M
[INFO] ------------------------------------------------------------------------
Pushing the application to Cloud Foundry
Using manifest file ./deploy/cloudfoundry/manifest.yml
Creating app modeldr006 in org ModelDrivers / space development as greg.soulsby#ibpartners.co.uk...
OK
Using route modeldr006.cfapps.io
Binding modeldr006.cfapps.io to modeldr006...
OK
Uploading modeldr006...
FAILED
Error uploading application.
GetFileAttributesEx C:\IBP\03_Product\modelDR\03_Product\01_Jhipster\modeldr006\target\*.war: The filename, directory name or volume label syntax is incorrect.
× { [Error: Command failed: ] killed: false, code: 1, signal: null }

hue installation error on AWS EC2

Hello I am trying to install Hue on AWS EC2 instance.
Following below link.
https://github.com/cloudera/hue
While doing step make apps I am getting below error.
[WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message:
Detected JDK Version: 1.6.0-30 is not in the allowed range [1.7.0,1.7.1000].
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.717s
[INFO] Finished at: Sun Mar 09 13:18:59 EDT 2014
[INFO] Final Memory: 5M/25M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce (default) on project hue-parent: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [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 have java version
java -version
java version "1.7.0_25"
OpenJDK Runtime Environment (rhel-2.3.10.4.el6_4-x86_64)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
Additional information can be provided. Thanks for your help.
You can also remove the JDK 7 check by editing:
vim maven/pom.xml
And replacing the '7' by '6':
<javaVersion>1.7</javaVersion>
<sourceJavaVersion>1.7</sourceJavaVersion>
<targetJavaVersion>1.7</targetJavaVersion>
(obviously you should it might be better to make sure Java 7 is the default if you plan to use 7)
It looks like you have another Java version in your system too. Based on what your installation says:
Detected JDK Version: 1.6.0-30
Make sure your JAVA_HOME variable points to the home of your Java 1.7 installation.

Issue building wso2 carbon 4.1 from source

I have checked out the source using the instructions svn checkout http://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.1.0 wso2carbon from here: http://docs.wso2.org/wiki/display/Carbon410/Obtaining+the+Product
I have tried running mvn install using maven 2.2.1 (rdebian-8) - the install prerequisites state that version 2.1.0 or later version of maven is ok: http://docs.wso2.org/wiki/display/Carbon410/Installation+Prerequisites
I hit the errror:
Component descriptor role: 'com.jcraft.jsch.UIKeyboardInteractive', implementation:
'org.apache.maven.wagon.providers.ssh.jsch.interactive.PrompterUIKeyboardInteractive', role hint:
'default' has a hint, but there are other implementations that don't
Searching on google, it seems this is a problem with maven 2.2.1 - http://jira.codehaus.org/browse/WAGON-393
So I tried with mvn 3.0.5 and run into the following error:
Failed tests:
test3(org.apache.axis2.jaxws.utility.ClassUtilsTests)
test4(org.apache.axis2.jaxws.utility.ClassUtilsTests)
Tests run: 457, Failures: 2, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Axis2 - Parent ............................. SUCCESS [0.730s]
[INFO] Apache Axis2 - Resource bundle .................... SUCCESS [1.144s]
[INFO] Axiom Parent POM .................................. SUCCESS [0.590s]
[INFO] Axiom Test Utilities .............................. SUCCESS [2.559s]
[INFO] Axiom Jaxen Test Suite ............................ SUCCESS [1.380s]
[INFO] Axiom API ......................................... SUCCESS [18.402s]
[INFO] Axiom Implementation Test Suite ................... SUCCESS [2.008s]
[INFO] Axiom Impl ........................................ SUCCESS [13.743s]
[INFO] Apache Axis2 - Kernel ............................. SUCCESS [16.125s]
[INFO] Axiom DOM ......................................... SUCCESS [18.484s]
[INFO] Apache Axis2 - Data Binding ....................... SUCCESS [9.023s]
[INFO] Apache Axis2 - Transport - Local .................. SUCCESS [2.363s]
[INFO] Apache Axis2 - Transport - HTTP ................... SUCCESS [2.792s]
[INFO] Apache Axis2 - Code Generation .................... SUCCESS [10.721s]
[INFO] Apache Axis2 - ADB Codegen ........................ SUCCESS [30.639s]
[INFO] Apache Axis2 - Addressing ......................... SUCCESS [4.468s]
[INFO] Apache Axis2 - Java2WSDL .......................... SUCCESS [6.632s]
[INFO] Apache Axis2 - tool - Repository Maven Plugin ..... SUCCESS [1.410s]
[INFO] Apache Axis2 - Fast Infoset ....................... SUCCESS [13.221s]
[INFO] Apache Axis2 - Clustering ......................... SUCCESS [1:10.258s]
[INFO] Apache Axis2 - Scripting .......................... SUCCESS [2.957s]
[INFO] Apache Axis2 - JAXB-RI Data Binding ............... SUCCESS [10.221s]
[INFO] Apache Axis2 - SAAJ ............................... SUCCESS [17.412s]
[INFO] Apache Axis2 - Metadata ........................... SUCCESS [22.842s]
[INFO] Apache Axis2 - JAXWS .............................. FAILURE [1:12.654s]
EDIT: 31st May 2013
When I run mvn install -Dmaven.test.skip=true I get a little further, but run into a new error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project axis2-transport-testkit: Compilation failure: Compilation failure:
[ERROR] /home/snowch/repos_thirdparty/carbon_kernel_4.1.0/dependencies/transports/1.1.0-wso2v8/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/doclet/ResourceInfoDoclet.java:[27,22] error: package com.sun.javadoc does not exist
I'm guessing that somewhere in the source tree, someone has coded a dependency on the SUN JDK and I am running OpenJDK.