Page 1 of 1

OpenKM 4.0 build on eclipse galileo

PostPosted:Mon May 03, 2010 4:56 am
by si_sol
Hello All,
This is my first post to this forum. I'm trying to build openkm 4.0 from source, and have mixed result. Building from command line (console / terminal), resulted in succesfull build (at least the log said BUILD SUCCESSFULL), but I failed to build it under eclipse galileo. Here is my compile log :
Code: Select all
bash-3.2$ mvn install -o -Dmaven.test.failure.ignore=true
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenKM Web Application
si_sol[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [buildnumber:create {execution: default}]
[INFO] Verifying there are no local modifications ...
[INFO] Executing: /bin/sh -c cd /Users/si_sol/Documents/works/openkm && svn --non-interactive status
[INFO] Working directory: /Users/si_sol/Documents/works/openkm
[INFO] Executing: /bin/sh -c cd /Users/si_sol/Documents/works/openkm && svn --non-interactive update /Users/si_sol/Documents/works/openkm
[INFO] Working directory: /Users/si_sol/Documents/works/openkm
[INFO] Got a revision during update: 1605
[INFO] No files needed updating.
[INFO] Executing: /bin/sh -c cd /Users/si_sol/Documents/works/openkm && svn --non-interactive info
[INFO] Working directory: /Users/si_sol/Documents/works/openkm
[INFO] Storing buildNumber: 1605 at timestamp: 1272860678858
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 16 resources
Downloading: http://repository.jboss.org/maven2/entagged/audioformats/audioformats/0.15/audioformats-0.15.pom
[INFO] Unable to find resource 'entagged.audioformats:audioformats:pom:0.15' in repository jboss.org (http://repository.jboss.org/maven2)
Downloading: http://repository.jboss.com/maven2/entagged/audioformats/audioformats/0.15/audioformats-0.15.pom
[INFO] Unable to find resource 'entagged.audioformats:audioformats:pom:0.15' in repository jboss.com (http://repository.jboss.com/maven2)
Downloading: http://repo1.maven.org/maven2/entagged/audioformats/audioformats/0.15/audioformats-0.15.pom
[INFO] Unable to find resource 'entagged.audioformats:audioformats:pom:0.15' in repository central (http://repo1.maven.org/maven2)
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [gwt:compile {execution: default}]
[INFO] using GWT jars from project dependencies : 1.5.3
[INFO] Unpack native libraries required to run GWT
[INFO] auto discovered modules [es.git.openkm.backend.Main, es.git.openkm.frontend.Main]
[INFO] establishing classpath list (scope = compile)
[INFO] es.git.openkm.backend.Main is up to date. GWT compilation skipped
[INFO] establishing classpath list (scope = compile)
[INFO] es.git.openkm.frontend.Main is up to date. GWT compilation skipped
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/si_sol/Documents/works/openkm/src/test/resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: /Users/si_sol/Documents/works/openkm/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] [war:war {execution: default-war}]
[INFO] Packaging webapp
[INFO] Assembling webapp[openkm] in [/Users/si_sol/Documents/works/openkm/target/OpenKM]
[INFO] Dependency[Dependency {groupId=org.slf4j, artifactId=slf4j-log4j12, version=1.5.3, type=jar}] has changed (was Dependency {groupId=org.slf4j, artifactId=slf4j-log4j12, version=1.5.3, type=jar}).
[INFO] Dependency[Dependency {groupId=org.apache.jackrabbit, artifactId=jackrabbit-core, version=1.4.11, type=jar}] has changed (was Dependency {groupId=org.apache.jackrabbit, artifactId=jackrabbit-core, version=1.4.11, type=jar}).
[INFO] Dependency[Dependency {groupId=jasperreports, artifactId=jasperreports, version=3.5.3, type=jar}] has changed (was Dependency {groupId=jasperreports, artifactId=jasperreports, version=3.5.3, type=jar}).
[INFO] Dependency[Dependency {groupId=org.apache.poi, artifactId=poi, version=3.5-FINAL, type=jar}] has changed (was Dependency {groupId=org.apache.poi, artifactId=poi, version=3.5-FINAL, type=jar}).
[INFO] Dependency[Dependency {groupId=org.apache.poi, artifactId=poi-scratchpad, version=3.5-FINAL, type=jar}] has changed (was Dependency {groupId=org.apache.poi, artifactId=poi-scratchpad, version=3.5-FINAL, type=jar}).
[INFO] Processing war project
[INFO] Copying webapp resources[/Users/si_sol/Documents/works/openkm/src/main/webapp]
[INFO] Webapp assembled in [1987 msecs]
[INFO] Building war: /Users/si_sol/Documents/works/openkm/target/OpenKM.war
[INFO] Packaging classes
[INFO] Building jar: /Users/si_sol/Documents/works/openkm/target/OpenKM-classes.jar
[INFO] [gwt:test {execution: default}]
[INFO] using GWT jars from project dependencies : 1.5.3
[INFO] Unpack native libraries required to run GWT
[INFO] [install:install {execution: default-install}]
[INFO] Installing /Users/si_sol/Documents/works/openkm/target/OpenKM.war to /Users/si_sol/.m2/repository/org/monkiki/openkm/openkm/4.0/openkm-4.0.war
[INFO] Installing /Users/si_sol/Documents/works/openkm/target/OpenKM-classes.jar to /Users/si_sol/.m2/repository/org/monkiki/openkm/openkm/4.0/openkm-4.0-classes.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 30 seconds
[INFO] Finished at: Mon May 03 11:26:06 WIT 2010
[INFO] Final Memory: 31M/79M
[INFO] ------------------------------------------------------------------------
[INFO] 
NOTE: Maven is executing in offline mode. Any artifacts not already in your local
repository will be inaccessible.

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenKM Web Application
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [buildnumber:create {execution: default}]
[INFO] Verifying there are no local modifications ...
[INFO] Executing: /bin/sh -c cd /Users/si_sol/Documents/works/openkm && svn --non-interactive status
[INFO] Working directory: /Users/si_sol/Documents/works/openkm
[INFO] maven is executed in offline mode, Updating project files from SCM: skipped.
[INFO] Executing: /bin/sh -c cd /Users/si_sol/Documents/works/openkm && svn --non-interactive info
[INFO] Working directory: /Users/si_sol/Documents/works/openkm
[INFO] Storing buildNumber: 1605 at timestamp: 1272866686880
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 16 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [gwt:compile {execution: default}]
[INFO] using GWT jars from project dependencies : 1.5.3
[INFO] Unpack native libraries required to run GWT
[INFO] auto discovered modules [es.git.openkm.backend.Main, es.git.openkm.frontend.Main]
[INFO] establishing classpath list (scope = compile)
[INFO] es.git.openkm.backend.Main is up to date. GWT compilation skipped
[INFO] establishing classpath list (scope = compile)
[INFO] es.git.openkm.frontend.Main is up to date. GWT compilation skipped
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/si_sol/Documents/works/openkm/src/test/resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: /Users/si_sol/Documents/works/openkm/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] [war:war {execution: default-war}]
[INFO] Packaging webapp
[INFO] Assembling webapp[openkm] in [/Users/si_sol/Documents/works/openkm/target/OpenKM]
[INFO] Dependency[Dependency {groupId=org.slf4j, artifactId=slf4j-log4j12, version=1.5.3, type=jar}] has changed (was Dependency {groupId=org.slf4j, artifactId=slf4j-log4j12, version=1.5.3, type=jar}).
[INFO] Dependency[Dependency {groupId=org.apache.jackrabbit, artifactId=jackrabbit-core, version=1.4.11, type=jar}] has changed (was Dependency {groupId=org.apache.jackrabbit, artifactId=jackrabbit-core, version=1.4.11, type=jar}).
[INFO] Dependency[Dependency {groupId=jasperreports, artifactId=jasperreports, version=3.5.3, type=jar}] has changed (was Dependency {groupId=jasperreports, artifactId=jasperreports, version=3.5.3, type=jar}).
[INFO] Dependency[Dependency {groupId=org.apache.poi, artifactId=poi, version=3.5-FINAL, type=jar}] has changed (was Dependency {groupId=org.apache.poi, artifactId=poi, version=3.5-FINAL, type=jar}).
[INFO] Dependency[Dependency {groupId=org.apache.poi, artifactId=poi-scratchpad, version=3.5-FINAL, type=jar}] has changed (was Dependency {groupId=org.apache.poi, artifactId=poi-scratchpad, version=3.5-FINAL, type=jar}).
[INFO] Processing war project
[INFO] Copying webapp resources[/Users/si_sol/Documents/works/openkm/src/main/webapp]
[INFO] Webapp assembled in [863 msecs]
[INFO] Building war: /Users/si_sol/Documents/works/openkm/target/OpenKM.war
[INFO] Packaging classes
[INFO] Building jar: /Users/si_sol/Documents/works/openkm/target/OpenKM-classes.jar
[INFO] [gwt:test {execution: default}]
[INFO] using GWT jars from project dependencies : 1.5.3
[INFO] Unpack native libraries required to run GWT
[INFO] [install:install {execution: default-install}]
[INFO] Installing /Users/si_sol/Documents/works/openkm/target/OpenKM.war to /Users/si_sol/.m2/repository/org/monkiki/openkm/openkm/4.0/openkm-4.0.war
[INFO] Installing /Users/si_sol/Documents/works/openkm/target/OpenKM-classes.jar to /Users/si_sol/.m2/repository/org/monkiki/openkm/openkm/4.0/openkm-4.0-classes.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22 seconds
[INFO] Finished at: Mon May 03 13:05:06 WIT 2010
[INFO] Final Memory: 31M/79M
[INFO] ------------------------------------------------------------------------
Is there any additional step in building openkm in eclipse galileo ?
Thanks in advance for your help

Re: OpenKM 4.0 build on eclipse galileo

PostPosted:Mon May 03, 2010 9:44 am
by jllort
Seems all has been done well in /target folder it'll appears some OpenKM.war

I recommend chekcout from svn the version 4.1 now it's yet stable and solves some bugs from 4.1 ( 4.1 version it's not a development version as 5.0. changes are only in way to solve some bugs ... for it reason I suggest downloading 4.1 )

If you want to make any change, etc.. in source code, contact with us first .. because we could be done in 5.0 or we can include in next releases.

Re: OpenKM 4.0 build on eclipse galileo

PostPosted:Tue May 04, 2010 1:37 am
by si_sol
What is new feature in version in 4.1 ?.
I'm just trying to add document retention policy, so I tried to build it from source.
I also want some digital signature capability, but I think it's easier to use OpenOffice integration for this purpose (The only limitation, it only applies to all document format supported by OpenOffice)

Re: OpenKM 4.0 build on eclipse galileo

PostPosted:Tue May 04, 2010 4:09 am
by si_sol
I've checked out the 4.1 branches, but compilation is unsuccessfull (from command line or from eclipse). It's java memory error / heap error.

Re: OpenKM 4.0 build on eclipse galileo

PostPosted:Tue May 04, 2010 7:18 am
by jllort
Contact with us using web site contact form

Digital signature it's interesting, and are several ways to make it ... we could put it by default in next OpenKM release.

You must checkout 4.1 version from eclipse as you're doing with 4.0 ( it's similar uri changing 4.0 to 4.1)
https://openkm.svn.sourceforge.net/svnr ... 4.1/openkm

Re: OpenKM 4.0 build on eclipse galileo

PostPosted:Tue May 04, 2010 8:11 am
by si_sol
I've done exactly like that and the checkout is successfull (code are downloaded to my local disk).
The compilation that failed with java memory error (when I invoke : mvn compile from terminal)

Re: OpenKM 4.0 build on eclipse galileo

PostPosted:Tue May 04, 2010 8:36 am
by si_sol
Sorry, my bad. Memory error (heap error) is not caused by the compile process.
After restarting my computer, I successfully compile openkm 4.1 (from command line)
Building from eclipse galileo resulting in the same error message as in 4.0 :? :(
Code: Select all
5/4/10 3:14:22 PM WIT: Build errors for openkm-4.1; org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.codehaus.mojo:buildnumber-maven-plugin:1.0-beta-3:create': Mojo execution failed.
I've manually install (from terminal) the jar file in ext-lib (entagged-audioformats.jar), but the problem persist.
What should I do to solve this problem ?

Re: OpenKM 4.0 build on eclipse galileo

PostPosted:Tue May 04, 2010 8:35 pm
by jllort
if you've got some memory problem with maven put in your .bashrc file tis entry line to upagrade maven memory, it has effects with eclipse "MAVEN_OPTS=-Xmx512m" , tell me if it solves the problem

Sometimes appears some error, but really is going right. Make a clean from eclipse and then a package ... it's created OpenKM.war ?

Re: OpenKM 4.0 build on eclipse galileo

PostPosted:Wed May 05, 2010 12:38 am
by si_sol
I'll add those environment variable (MAVEN_OPTS=-Xmx512m)

Yes, the build created OpenKM.war file and it work (I modify the language, compile, and then copy the OpenKM.war file to jboss_home/server/default/deploy and the web appearance is changed to my language :D ).

Re: OpenKM 4.0 build on eclipse galileo

PostPosted:Wed May 05, 2010 10:43 am
by jllort
OK, that's good. Some errors or warning that sometimes could appear are not relevant.

Re: OpenKM 4.0 build on eclipse galileo

PostPosted:Tue May 11, 2010 7:36 am
by si_sol
Finally, 100% solved. :D
It turn out that the entagged-audioformats-0.15.jar file in ext-lib folder must be registered from eclipse IDE. Eclipse keep complaining that some artifact are missing, even after I manually register those file to the repository from the command line :
Code: Select all
mvn install:install-file -DgroupId=entagged.audioformats -DartifactId=audioformats -Dversion=0.15 -Dpackaging=jar -Dfile=entagged-audioformats-0.15.jar
Importing those artifact from eclipse IDE solved the problem (I'm using eclipse galileo, maven plugin version 0.10.0.20100209-0800).