GateIn Cookbook question on Chapter 1 Getting Started - building from source
jpadula35 Nov 24, 2012 1:04 PMHi,
I've tried a few times to build the source as described in Chapter 1 Getting Started but get an error. I'm not sure if SVN downloaded the source correctly.
In order to follow along in the book, I have installed SVN 1.6.17 and Maven 3.0.4.
I downloaded 3.2 source with SVN.
I tried to build with mavan, using the command specified in the book.
I have a couple of problems:
1) Should I see a subfolder called "Applications/Apache Tomcat" ? I don't have anything like that in the source structure
2) I am unable to successfully complete build, I get the following error, when I type the maven clean install ... command that you have in the book
from the packaging folder.
(At the very root folder, there is no pom.xml, so I tried to run command from packaging folder)
C:\gatein-portal-3.2.0\packaging>mvn clean install -DskipTests -Dpkg-tomcat -Dexo.projects.directory.dependencies=/Appli
cations/Apache Tomcat -Dexo.projects.app.tomcat.version=apache.tomcat-6.0.32
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.exoplatform.portal:exo.portal.packag
ing:pom:3.2.0-GA
[WARNING] Detected profiles.xml alongside org.exoplatform.portal:exo.portal.packaging:3.2.0-GA, this file is no longer s
upported and was ignored, please use the settings.xml instead
[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 GateIn Portal Packaging 3.2.0-GA
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.470s
[INFO] Finished at: Fri Nov 23 20:30:13 EST 2012
[INFO] Final Memory: 3M/247M
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "Tomcat". You must specify a valid lifecycle phase or a goal in the format <plugin-prefi
x>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate,
initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generat
e-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classe
s, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deplo
y, pre-site, site, post-site, site-deploy, pre-clean, clean, post-clean. -> [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/LifecyclePhaseNotFoundException
C:\gatein-portal-3.2.0\packaging>
(I also tried just maven clean install, but that didn't work either.)
Thanks for any help.
-- Joe