Mail Archive Home | exoplatform List | December 2007 Index
[exoplatform] Building sources of eXo 22816
- Subject: [exoplatform] Building sources of eXo 22816
- From: Cédric TRAN-XUAN <cedric.tran-xuan@xxxxxxxx>
- Date: Wed, 19 Dec 2007 13:41:43 +0100
- Delivered-to: exoplatform@ow2.org
Hi all,
I have just met two troubles when trying to compile eXo r22816 and found
out the reasons. So that's just my two cents about building the sources
with Windows OS, jdk 1.5 and maven 2.0.7.
1) When trying the command, exobuild --product=ecm --build, I had got
the maven following trace:
[INFO]
----------------------------------------------------------------------------
[INFO] Building eXo Mock Objects framework
[INFO] task-segment: [clean, install]
[INFO]
----------------------------------------------------------------------------
[INFO] [clean:clean]
...
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 17 source files to
c:\exo\r22816\eXoProjects\tools\trunk\framework\junit\target\classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
c:\exo\r22816\eXoProjects\tools\trunk\framework\junit\src\main\java\org\exoplatform\test\mocks\portlet\MockPortletRequest.java:[19,7]
org.exoplatform.test.mocks.portlet.MockPortletRequest is not abstract
and does not override abstract method getWindowId() in
javax.portlet.PortletRequest
c:\exo\r22816\eXoProjects\tools\trunk\framework\junit\src\main\java\org\exoplatform\test\mocks\portlet\MockPortletSession.java:[21,7]
org.exoplatform.test.mocks.portlet.MockPortletSession is not abstract
and does not override abstract method getMap(int) in
javax.portlet.PortletSession
c:\exo\r22816\eXoProjects\tools\trunk\framework\junit\src\main\java\org\exoplatform\test\mocks\portlet\MockPortletResponse.java:[17,7]
org.exoplatform.test.mocks.portlet.MockPortletResponse is not abstract
and does not override abstract method createResourceURL() in
javax.portlet.PortletResponse
c:\exo\r22816\eXoProjects\tools\trunk\framework\junit\src\main\java\org\exoplatform\test\mocks\portlet\MockActionResponse.java:[26,7]
org.exoplatform.test.mocks.portlet.MockActionResponse is not abstract
and does not override abstract method createResourceURL() in
javax.portlet.PortletResponse
c:\exo\r22816\eXoProjects\tools\trunk\framework\junit\src\main\java\org\exoplatform\test\mocks\portlet\MockActionRequest.java:[16,7]
org.exoplatform.test.mocks.portlet.MockActionRequest is not abstract and
does not override abstract method getWindowId() in
javax.portlet.PortletRequest
c:\exo\r22816\eXoProjects\tools\trunk\framework\junit\src\main\java\org\exoplatform\test\mocks\portlet\MockRenderResponse.java:[25,7]
org.exoplatform.test.mocks.portlet.MockRenderResponse is not abstract
and does not override abstract method
setNextPossiblePortletModes(java.util.Collection) in
javax.portlet.RenderResponse
c:\exo\r22816\eXoProjects\tools\trunk\framework\junit\src\main\java\org\exoplatform\test\mocks\portlet\MockRenderRequest.java:[16,7]
org.exoplatform.test.mocks.portlet.MockRenderRequest is not abstract and
does not override abstract method getWindowId() in
javax.portlet.PortletRequest
_______________________________________________________________________
To fix this, I removed the javax\portlet\portlet-api\portlet-api-2.0.jar
I had in my repository and let maven download it from the eXo repositories.
2) The second trouble is when trying to deploy: exobuild --product=ecm
--deploy.
[INFO] Patch the server tomcat with project
exo.portal.server.tomcat.patch 2.0
[EXTRACT] To c:\exo\r22816/exo-working/exo-tomcat
Script threw exception: Sourced file:
c:\exo\r22816\eXoProjects\tools\trunk\build\src\main\script\eXo\eXo.bsh
: Method Invocation this.interpreter.eval : at Line: 73 : in file:
/bsh/commands/eval.bsh : this .interpreter .eval ( expression , this
.caller .namespace )
Called from method: eval : at Line: 48 : in file:
c:\exo\r22816\eXoProjects\tools\trunk\build\src\main\script\eXo\eXo.bsh
: eval ( command + "(cmdargs)" )
Target exception: Sourced file: inline evaluation of:
``exobuild(cmdargs);'' : TargetError : at Line: 68 : in file:
/eXo/projects/Project.bsh : throw new Exception ( "Error while
extracting the project : " + relativePath ) ;
Called from method: extractTo : at Line: 54 : in file:
/eXo/projects/eXoProduct.bsh : project .extractTo ( repos , server
.patchDir , "META-INF/maven.*" )
Target exception: java.lang.Exception: Error while extracting the
project :
org/exoplatform/portal/exo.portal.server.tomcat.patch/2.0/exo.portal.server.tomcat.patch-2.0.jar
_______________________________________________________________________
That came from the fact that the build result gives a
org\exoplatform\portal\exo.portal.server.tomcat.patch\trunk\exo.portal.server.tomcat.patch-trunk.jar
package and not a 2.0. As workaround, I try to use
the javascript scripts instead the beanshell ones by editing exobuild.bat:
@echo off
rem exobsh exobuild %*
js exobuild %*
and all works fine them. Thus, there must be a tiny bug in one beanshell
script.
I hope this helps if ever someone's got the same trouble.
Cédric.
- [exoplatform] Building sources of eXo 22816,
Cédric TRAN-XUAN
Powered by MHonArc.
Copyright © 2006-2007, OW2 Consortium | contact | webmaster.