Hi,

I'm not promoting something against the modular build :-), but for my own convenience, I use the following script to build the current trunk from source:

---------------------------------------------------------------
setlocal
set TUSCANY_HOME=%cd%
pushd %TUSCANY_HOME%
svn update
cd  %TUSCANY_HOME%\pom\parent
call mvn clean install
cd %TUSCANY_HOME%\buildtools
call mvn clean install
cd  %TUSCANY_HOME%\spec\sca-api-r1.0
call mvn clean install -Peclipse eclipse:eclipse
cd %TUSCANY_HOME%\sca\kernel
call mvn clean install -Peclipse eclipse:eclipse
cd %TUSCANY_HOME%\sca\runtime
call mvn clean install -Peclipse eclipse:eclipse
cd %TUSCANY_HOME%\sca\core-samples
call mvn clean install -Peclipse eclipse:eclipse
cd %TUSCANY_HOME%\sca\integration-test
call mvn clean install -Peclipse eclipse:eclipse
popd
endlocal
---------------------------------------------------------------

SDO can be built by its own. You can run "mvn clean install" under folder "spec\sdo-api" and then "sdo".

BTW, with the SNAPSHOT versions of the individual modules published to maven, it should be possible to build them independently.

Thanks,
Raymond

----- Original Message ----- From: "Snehit Prabhu" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, February 26, 2007 9:49 PM
Subject: Trouble building the Tuscany Trunk


Hi,
I am trying to setup the Tuscany Trunk Distribution on my machine for a
while now, with little success. Any help on the matter would be appreciated.
I should mention that the complete M2 distribution has been downloaded,
built and used quite easily. I'm using the same svn, maven, java5
environment for the trunk. Im working on a WinXP system.
I am trying to setup the Trunk environment, while M2 is already present on
the system. I assume there should be no trouble with the 2 sharing the same
local Maven repository.

I followed the instructions on this page :
http://incubator.apache.org/tuscany/building_source.html


Step 1 : *svn co http://svn.apache.org/repos/asf/incubator/tuscany/java/ .
* Works just fine. The complete following folder structure is setup:

Directory of E:\TuscanyTrunk

26/02/2007  16:06    <DIR>          .
26/02/2007  16:06    <DIR>          ..
26/02/2007  16:03               686 BUILDING.txt
26/02/2007  16:03             7,722 GettingStarted.htm
26/02/2007  16:03            75,767 LICENSE.txt
26/02/2007  16:03               873 NOTICE
26/02/2007  16:03             2,833 pom.xml
26/02/2007  16:03               974 README.txt
16/02/2007  11:05               764 setenv.bat
26/02/2007  16:06    <DIR>          testing
26/02/2007  16:08    <DIR>          spec
26/02/2007  16:08    <DIR>          sdo
26/02/2007  16:08    <DIR>          sca
26/02/2007  16:15    <DIR>          samples
26/02/2007  16:15    <DIR>          sampleapps
26/02/2007  16:16    <DIR>          pom
26/02/2007  16:16    <DIR>          javadoc
26/02/2007  16:16    <DIR>          etc
26/02/2007  16:16    <DIR>          distribution
26/02/2007  16:16    <DIR>          das
26/02/2007  16:16    <DIR>          cts
26/02/2007  16:16    <DIR>          buildtools
27/02/2007  11:01                 0 contents.txt
              8 File(s)         89,619 bytes
             15 Dir(s)  50,448,465,920 bytes free



Step 2 : run "mvn" at the root directory (in my case E:\TuscanyTrunk), as
intructed in the Building.txt file. This step fails - throwing the following
output.
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building Tuscany Project
[INFO]    task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing E:\TuscanyTrunk\pom.xml to C:\Documents and
Settings\Administrator\.m2\repository\org\apache\tuscany\tuscany-project\1.0-incubator-SNAPSHOT\tuscany-
project-1.0-incubator-SNAPSHOT.pom
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Feb 27 11:06:56 IST 2007
[INFO] Final Memory: 4M/19M
[INFO]
------------------------------------------------------------------------

This happens in a second. No target directories formed anywhere. Nothing
builds.

Step 3 : I tried building individual components. Running "mvn" at
E:\TuscanyTrunk\sdo runs fine - all dependencies are resolved, downloaded
and the build runs successfully. Running "mvn" at E:\TuscanyTrunk\sca,
however, does not work. Here is the output :
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] You must specify at least one goal. Try 'install'
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Tue Feb 27 11:10:27 IST 2007
[INFO] Final Memory: 1M/4M
[INFO]
------------------------------------------------------------------------

So, I run an "mvn install". Here is the output :
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building Apache Tuscany SCA Implementation Project
[INFO]    task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing E:\TuscanyTrunk\sca\pom.xml to C:\Documents and
Settings\Administrator\.m2\repository\org\apache\tuscany\sca\1.0-incubating-SNAPSHOT\sca-
1.0-incubating-SNAPSHOT.pom
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Feb 27 11:11:46 IST 2007
[INFO] Final Memory: 4M/21M
[INFO]
------------------------------------------------------------------------

Once again, nothing happens. Inspite of the BUILD SUCCESSFUL message, there
is no build on my machine. No target directories, etc.

Is anyone else facing the same problem? I need to build just SCA for now and
take a look at some of the code. Please let me know whether I am doing
something wrong, whether I should change my POM's, or whether the build is
currently broken.
thanks
Snehit



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to