CMDBuild Forum

I can't compile cmdbuild from sources (jdk 1.7)

Dear all,

Is cmdbuild not fully compatible with JDK 1.7 ?

I tried below steps on Ubuntu 14 machine and also on Windows 7:

$ hg clone https://bitbucket.org/tecnoteca/cmdbuild cmdbuild-main

$ cd cmdbuild-main $ mvn clean install

But I encountered an error in compilation in both the machines. the detailed error is below:

[ERROR] COMPILATION ERROR : 

[INFO] -------------------------------------------------------------

[ERROR] ****/cmdbuild/cmdbuild-main/commons/src/main/java/org/cmdbuild/common/java/sql/DefaultDataSourceHelper.java:[127,55] error: <anonymous org.cmdbuild.common.java.sql.DefaultDataSourceHelper$2$1> is not abstract and does not override abstract method getParentLogger() in CommonDataSource

[INFO] 1 error

[INFO] -------------------------------------------------------------

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Compilation failure

****/cmdbuild/cmdbuild-main/commons/src/main/java/org/cmdbuild/common/java/sql/DefaultDataSourceHelper.java:[127,55] error: <anonymous org.cmdbuild.common.java.sql.DefaultDataSourceHelper$2$1> is not abstract and does not override abstract method getParentLogger() in CommonDataSource

I haven't yet tried compiling with JDK 1.6, but my requirement is to use only JDK 1.7, so my query is - Is cmdbuild not compatible with JDK 1.7 yet?
I have downloaded the latest (2.2.0) source code from bitbucket and below is the environment details:
 
OS - Windows 7 and Ubuntu 14.0
Java - 1.7.0_55
Maven - Apache Maven 2.2.1 (rdebian-14)
 
Please help me as I need to build this properly because afterwards I have to research cmdbuild for SSO compatibility with WSO2 Identity Server (IS).
 
Many Thanks

You can read the software requirements here http://www.cmdbuild.org/en/download and in the Technical Manual.

CMDBuild Team

Oh I see, I clearly missed that part. It does says JDK 1.6, and I was trying to make build using JDK 1.7. 
I think this is the issue.
 
Well, is there any plans to migrate to JDK 1.7 in near future? The reason I can't roll back to JDK 1.6 from 1.7 because of other software compatibilities.
 
Anyway, thanks for the reply Tecnoteca. Much appreciated!
 
Previously Tecnoteca wrote:

You can read the software requirements here http://www.cmdbuild.org/en/download and in the Technical Manual.

CMDBuild Team

 

Yes, we will migrate to JDK 1.7 in near future.
The CMDBuild base code is already compatible with Java 7.
W
e only need to adjust some parts of the
code that implements the interface with Shark (the workflow engine).
CMDBuild Team

 

 

Thanks Tecnoteca, however even after tried with JDK 1.6 (I un-installed jdk 1.7 completely), I am still getting compilation issues while resolving dependencies. As per the suggestion form the bitbucket page, I also installed all the additional libraries manually. 
 
The error below
[ERROR] Failed to execute goal on project cmdbuild-graph: Could not resolve dependencies for project org.cmdbuild:cmdbuild-graph:swf:1.0: Th
e following artifacts could not be resolved: com.adobe.flash.core:playerglobal:swc:1.0, com.adobe.flex.sdkcore:framework:swc:3.2.0.3958, com
.adobe.flex.sdkcore:flex:swc:3.2.0.3958, com.adobe.flex.sdkcore:rpc:swc:3.2.0.3958, com.adobe.flex.sdkcore:utilities:swc:3.2.0.3958, com.ado
be.flex.locales.en_US:framework_rb:swc:3.2.0.3958, com.adobe.flex.locales.en_US:rpc_rb:swc:3.2.0.3958: Failure to find com.adobe.flash.core:
playerglobal:swc:1.0 in http://repository.codehaus.org was cached in the local repository, resolution will not be reattempted until the upda
te interval of codehaus has elapsed or updates are forced -> [Help 1]
 
Can you please help?
 
Thanks
 
 
Previously Tecnoteca wrote:
Yes, we will migrate to JDK 1.7 in near future.
The CMDBuild base code is already compatible with Java 7.
W
e only need to adjust some parts of the
code that implements the interface with Shark (the workflow engine).
CMDBuild Team

 

 

 

Dear Nakul,
 
some artifacts cannot be resolved. Look here:
 
    https://bitbucket.org/tecnoteca/cmdbuild/wiki/Home
 
and download the additional libraries.
 
Best regards.
 
-- CMDBuild Team
 
Previously Nakul wrote:
Thanks Tecnoteca, however even after tried with JDK 1.6 (I un-installed jdk 1.7 completely), I am still getting compilation issues while resolving dependencies. As per the suggestion form the bitbucket page, I also installed all the additional libraries manually. 
 
The error below
[ERROR] Failed to execute goal on project cmdbuild-graph: Could not resolve dependencies for project org.cmdbuild:cmdbuild-graph:swf:1.0: Th
e following artifacts could not be resolved: com.adobe.flash.core:playerglobal:swc:1.0, com.adobe.flex.sdkcore:framework:swc:3.2.0.3958, com
.adobe.flex.sdkcore:flex:swc:3.2.0.3958, com.adobe.flex.sdkcore:rpc:swc:3.2.0.3958, com.adobe.flex.sdkcore:utilities:swc:3.2.0.3958, com.ado
be.flex.locales.en_US:framework_rb:swc:3.2.0.3958, com.adobe.flex.locales.en_US:rpc_rb:swc:3.2.0.3958: Failure to find com.adobe.flash.core:
playerglobal:swc:1.0 in http://repository.codehaus.org was cached in the local repository, resolution will not be reattempted until the upda
te interval of codehaus has elapsed or updates are forced -> [Help 1]
 
Can you please help?
 
Thanks
 
 
Previously Tecnoteca wrote:
Yes, we will migrate to JDK 1.7 in near future.
The CMDBuild base code is already compatible with Java 7.
W
e only need to adjust some parts of the
code that implements the interface with Shark (the workflow engine).
CMDBuild Team

 

 

 

 

Dear Tecnotreca, thanks for your response.
 
Believe me, I tried the same link - https://bitbucket.org/tecnoteca/cmdbuild/wiki/Home
Clicked on additional libraries from below line:
 
After clicking above I was presented the two links as shown :
Download repository 100.5 MB
cmdbuild-dependencies-2.0-SNAPSHOT-20120416.zip 14.9 MB

I have downloaded both the repository and snapshot file.
tecnoteca-cmdbuild-dependencies-a445f3ed0c92.zip  and cmdbuild-dependencies-2.0-SNAPSHOT-20120416.zip
 
Extracted both zip files, and ran install-artifacts.cmd which executed successfully.
 
Then I have downloaded the latest source code from both the main website at http://www.cmdbuild.org/en/download and from bitbucket  https://bitbucket.org/tecnoteca/cmdbuild/downloads
 
Files -- tecnoteca-cmdbuild-80ed070af308.zip and tecnoteca-cmdbuild-b6dacbf3ccd3.zip respectively.
 
And tried building with both the source code, of course one at a time, but every time I got the same error which I posted in my last reply.
 
Am I doing something fundamentally wrong here? Sorry I am really confused and bit helpless as I am not able to build basic code with maven.
 
Thanks,
 
Previously Tecnoteca wrote:
Dear Nakul,
 
some artifacts cannot be resolved. Look here:
 
 
and download the additional libraries.
 
Best regards.
 
-- CMDBuild Team
 
Previously Nakul wrote:
Thanks Tecnoteca, however even after tried with JDK 1.6 (I un-installed jdk 1.7 completely), I am still getting compilation issues while resolving dependencies. As per the suggestion form the bitbucket page, I also installed all the additional libraries manually. 
 
The error below
[ERROR] Failed to execute goal on project cmdbuild-graph: Could not resolve dependencies for project org.cmdbuild:cmdbuild-graph:swf:1.0: Th
e following artifacts could not be resolved: com.adobe.flash.core:playerglobal:swc:1.0, com.adobe.flex.sdkcore:framework:swc:3.2.0.3958, com
.adobe.flex.sdkcore:flex:swc:3.2.0.3958, com.adobe.flex.sdkcore:rpc:swc:3.2.0.3958, com.adobe.flex.sdkcore:utilities:swc:3.2.0.3958, com.ado
be.flex.locales.en_US:framework_rb:swc:3.2.0.3958, com.adobe.flex.locales.en_US:rpc_rb:swc:3.2.0.3958: Failure to find com.adobe.flash.core:
playerglobal:swc:1.0 in http://repository.codehaus.org was cached in the local repository, resolution will not be reattempted until the upda
te interval of codehaus has elapsed or updates are forced -> [Help 1]
 
Can you please help?
 
Thanks
 
 
Previously Tecnoteca wrote:
Yes, we will migrate to JDK 1.7 in near future.
The CMDBuild base code is already compatible with Java 7.
W
e only need to adjust some parts of the
code that implements the interface with Shark (the workflow engine).
CMDBuild Team

 

 

 

 

 

Which of the specified artifacts is really missing in your local Maven repository? "com.adobe.flash.core:playerglobal:swc:1.0" only, or all the others too?
 
Best regards.
 
-- CMDBuild Team
 
Previously Nakul wrote:
Dear Tecnotreca, thanks for your response.
 
Believe me, I tried the same link - https://bitbucket.org/tecnoteca/cmdbuild/wiki/Home
Clicked on additional libraries from below line:
 
After clicking above I was presented the two links as shown :
Download repository 100.5 MB
cmdbuild-dependencies-2.0-SNAPSHOT-20120416.zip 14.9 MB

I have downloaded both the repository and snapshot file.
tecnoteca-cmdbuild-dependencies-a445f3ed0c92.zip  and cmdbuild-dependencies-2.0-SNAPSHOT-20120416.zip
 
Extracted both zip files, and ran install-artifacts.cmd which executed successfully.
 
Then I have downloaded the latest source code from both the main website at http://www.cmdbuild.org/en/download and from bitbucket  https://bitbucket.org/tecnoteca/cmdbuild/downloads
 
Files -- tecnoteca-cmdbuild-80ed070af308.zip and tecnoteca-cmdbuild-b6dacbf3ccd3.zip respectively.
 
And tried building with both the source code, of course one at a time, but every time I got the same error which I posted in my last reply.
 
Am I doing something fundamentally wrong here? Sorry I am really confused and bit helpless as I am not able to build basic code with maven.
 
Thanks,
 
Previously Tecnoteca wrote:
Dear Nakul,
 
some artifacts cannot be resolved. Look here:
 
 
and download the additional libraries.
 
Best regards.
 
-- CMDBuild Team
 
Previously Nakul wrote:
Thanks Tecnoteca, however even after tried with JDK 1.6 (I un-installed jdk 1.7 completely), I am still getting compilation issues while resolving dependencies. As per the suggestion form the bitbucket page, I also installed all the additional libraries manually. 
 
The error below
[ERROR] Failed to execute goal on project cmdbuild-graph: Could not resolve dependencies for project org.cmdbuild:cmdbuild-graph:swf:1.0: Th
e following artifacts could not be resolved: com.adobe.flash.core:playerglobal:swc:1.0, com.adobe.flex.sdkcore:framework:swc:3.2.0.3958, com
.adobe.flex.sdkcore:flex:swc:3.2.0.3958, com.adobe.flex.sdkcore:rpc:swc:3.2.0.3958, com.adobe.flex.sdkcore:utilities:swc:3.2.0.3958, com.ado
be.flex.locales.en_US:framework_rb:swc:3.2.0.3958, com.adobe.flex.locales.en_US:rpc_rb:swc:3.2.0.3958: Failure to find com.adobe.flash.core:
playerglobal:swc:1.0 in http://repository.codehaus.org was cached in the local repository, resolution will not be reattempted until the upda
te interval of codehaus has elapsed or updates are forced -> [Help 1]
 
Can you please help?
 
Thanks
 
 
Previously Tecnoteca wrote:
Yes, we will migrate to JDK 1.7 in near future.
The CMDBuild base code is already compatible with Java 7.
W
e only need to adjust some parts of the
code that implements the interface with Shark (the workflow engine).
CMDBuild Team

 

 

 

 

 

 

I wonder why my reply was still not posted, I commented to your reply days back.
Anyway I have posted it as a new issue, lets see, hope someone form your team will respond to that.
 
Previously Tecnoteca wrote:
Which of the specified artifacts is really missing in your local Maven repository? "com.adobe.flash.core:playerglobal:swc:1.0" only, or all the others too?
 
Best regards.
 
-- CMDBuild Team
 
Previously Nakul wrote:
Dear Tecnotreca, thanks for your response.
 
Believe me, I tried the same link - https://bitbucket.org/tecnoteca/cmdbuild/wiki/Home
Clicked on additional libraries from below line:
 
After clicking above I was presented the two links as shown :
I have downloaded both the repository and snapshot file.
tecnoteca-cmdbuild-dependencies-a445f3ed0c92.zip  and cmdbuild-dependencies-2.0-SNAPSHOT-20120416.zip
 
Extracted both zip files, and ran install-artifacts.cmd which executed successfully.
 
Then I have downloaded the latest source code from both the main website at http://www.cmdbuild.org/en/download and from bitbucket  https://bitbucket.org/tecnoteca/cmdbuild/downloads
 
Files -- tecnoteca-cmdbuild-80ed070af308.zip and tecnoteca-cmdbuild-b6dacbf3ccd3.zip respectively.
 
And tried building with both the source code, of course one at a time, but every time I got the same error which I posted in my last reply.
 
Am I doing something fundamentally wrong here? Sorry I am really confused and bit helpless as I am not able to build basic code with maven.
 
Thanks,
 
Previously Tecnoteca wrote:
Dear Nakul,
 
some artifacts cannot be resolved. Look here:
 
 
and download the additional libraries.
 
Best regards.
 
-- CMDBuild Team
 
Previously Nakul wrote:
Thanks Tecnoteca, however even after tried with JDK 1.6 (I un-installed jdk 1.7 completely), I am still getting compilation issues while resolving dependencies. As per the suggestion form the bitbucket page, I also installed all the additional libraries manually. 
 
The error below
[ERROR] Failed to execute goal on project cmdbuild-graph: Could not resolve dependencies for project org.cmdbuild:cmdbuild-graph:swf:1.0: Th
e following artifacts could not be resolved: com.adobe.flash.core:playerglobal:swc:1.0, com.adobe.flex.sdkcore:framework:swc:3.2.0.3958, com
.adobe.flex.sdkcore:flex:swc:3.2.0.3958, com.adobe.flex.sdkcore:rpc:swc:3.2.0.3958, com.adobe.flex.sdkcore:utilities:swc:3.2.0.3958, com.ado
be.flex.locales.en_US:framework_rb:swc:3.2.0.3958, com.adobe.flex.locales.en_US:rpc_rb:swc:3.2.0.3958: Failure to find com.adobe.flash.core:
playerglobal:swc:1.0 in http://repository.codehaus.org was cached in the local repository, resolution will not be reattempted until the upda
te interval of codehaus has elapsed or updates are forced -> [Help 1]
 
Can you please help?
 
Thanks
 
 
Previously Tecnoteca wrote:
Yes, we will migrate to JDK 1.7 in near future.
The CMDBuild base code is already compatible with Java 7.
W
e only need to adjust some parts of the
code that implements the interface with Shark (the workflow engine).
CMDBuild Team

 

 

 

 

 

 

 

Previously Tecnoteca wrote:

Yes, we will migrate to JDK 1.7 in near future.
The CMDBuild base code is already compatible with Java 7.
W
e only need to adjust some parts of the
code that implements the interface with Shark (the workflow engine).
CMDBuild Team

 

Do you have schedule for this upgrade?

If I don't use shark/workflows, can I already use Java 7?

 

In version 2.4 (scheduled for early March) there will be the upgrade to Java 8.
In the meantime, we suggest that you continue to use Java 6 (the current version is certified with that version).
CMDBuild Team

Did you mean March 2016?

Previously Tecnoteca wrote:

In version 2.4 (scheduled for early March) there will be the upgrade to Java 8.
In the meantime, we suggest that you continue to use Java 6 (the current version is certified with that version).
CMDBuild Team

 

Version 2.4 will be released by the end of March.
CMDBuild Team

Previously Tecnoteca wrote:

Version 2.4 will be released by the end of March.
CMDBuild Team

 

Is this coming?