On Wed, Apr 23, 2008 at 8:18 AM, Marian, Radu
<[EMAIL PROTECTED]> wrote:
> Raymond,
>
>  Well I am almost there... To make it work I had to add the following
>  line my mvn.bat file:
>
>  set MAVEN_OPTS=-Xms512m -Xmx1024m -XX:MaxPermSize=256m
>
>  Full mvn.bat context for reference:
>
>  @REM Start MAVEN2
>  :runm2
>  set MAVEN_OPTS=-Xms512m -Xmx1024m -XX:MaxPermSize=256m
>  %MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath %CLASSWORLDS_JAR%
>  "-Dclassworlds.conf=%M2_HOME%\bin\m2.conf" "-Dmaven.home=%M2_HOME%"
>  org.codehaus.classworlds.Launcher %MAVEN_CMD_LINE_ARGS%
>  if ERRORLEVEL 1 goto error
>  goto end
>
>  I believe the above info should help other ursers to build tuscany sca
>  for the first time.  Can I contribute to the developer user guide wiki?
>

Thanks, I'll update the developer guide with the info you are proposing.

>  The other question I have is why are all testcases are executed despite
>  your recommendaiton - -Dmaven.test.skip=true?  They take a lot of
>  time...
>

How do you tell if tests are being executed ?
Regular maven command should give you some output like :

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.tuscany.sca.policy.PolicyFactoryTestCase
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.03 sec

Results :

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

When using the -Dmaven.test.skip=true, you should not see any output like this.
All this said, the build takes a little while to complete even without
the tests (4 mins in my machine).


>  Once I build the whole sca for the first time - what mvn commands should
>  I use?
>

What do you want to do next ?
mvn -Peclipse eclipse:eclipse would generate the eclipse project files
for you, and then you could add the projects to eclipse for further
investigation, debuging, development.

>
>  Thanks,
>  Radu Marian
>  CRM Services Architecture Team
>  Bank of America, Charlotte NC
>  (980) 387-6233
>  [EMAIL PROTECTED]
>
>
> -----Original Message-----
>  From: Raymond Feng [mailto:[EMAIL PROTECTED]
>
> Sent: Tuesday, April 22, 2008 1:32 PM
>  To: Marian, Radu
>  Cc: [email protected]
>  Subject: Re: svn checkout problem
>
>  Hi,
>
>
>
> We should have published the SNAPSHOT versions more frequently. Anyway,
>  can you try to build the "modules" folder first and then "tutorial"? The
>  other option is to build the whole tree under "sca" using "mvn clean
>  install -fn -Dmaven.test.skip=true".
>
>  Thanks,
>  Raymond
>
>
>  From: Marian, Radu
>  Sent: Tuesday, April 22, 2008 10:19 AM
>  To: Raymond Feng
>  Subject: RE: svn checkout problem
>
>
>  Thanks Raymond,
>
>  That helped a bit.  Here is my next tutorial build error:
>  [INFO]
>  ------------------------------------------------------------------------
>  [ERROR] BUILD ERROR
>  [INFO]
>  ------------------------------------------------------------------------
>  [INFO] Failed to resolve artifact.
>
>  Missing:
>  ----------
>  1)
>  org.apache.tuscany.sca:tuscany-workspace-admin:jar:2.0-incubating-SNAPSH
>  OT
>
>   Try downloading the file manually from the project website.
>
>   Then, install it using the command:
>       mvn install:install-file -DgroupId=org.apache.tuscany.sca
>  -DartifactId=tuscany-workspace-admin
>   -Dversion=2.0-incubating-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
>   Alternatively, if you host your own repository you can deploy the file
>  there:
>       mvn deploy:deploy-file -DgroupId=org.apache.tuscany.sca
>  -DartifactId=tuscany-workspace-admin - Dversion=2.0-incubating-SNAPSHOT
>  -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id ]
>
>   Path to dependency:
>         1)
>  org.apache.tuscany.sca:tutorial-domain:jar:2.0-incubating-SNAPSHOT
>         2)
>  org.apache.tuscany.sca:tuscany-workspace-admin:jar:2.0-incubating-SNAPSH
>  OT
>
>  ----------
>  1 required artifact is missing.
>
>  for artifact:
>   org.apache.tuscany.sca:tutorial-domain:jar:2.0-incubating-SNAPSHOT
>
>  from the specified remote repositories:
>   repo1.maven.org (http://repo1.maven.org/maven2),
>   apache.incubator
>  (http://people.apache.org/repo/m2-incubating-repository),
>   apache.ws.zone (http://ws.zones.apache.org/repository2),
>   apache.snapshots
>  (http://people.apache.org/repo/m2-snapshot-repository)
>
>  Any idea?
>
>  Thanks,
>  Radu Marian
>  CRM Services Architecture Team
>  Bank of America, Charlotte NC
>  (980) 387-6233
>  [EMAIL PROTECTED]
>
>
>
>
>  ------------------------------------------------------------------------
>  --------
>  From: Raymond Feng [mailto:[EMAIL PROTECTED]
>  Sent: Tuesday, April 22, 2008 12:54 PM
>  To: Marian, Radu
>  Subject: Re: svn checkout problem
>
>
>  I think you need to build the tools folder first.
>
>  Thanks,
>  Raymond
>
>
>  From: Marian, Radu
>  Sent: Tuesday, April 22, 2008 9:34 AM
>  To: Raymond Feng
>  Subject: RE: svn checkout problem
>
>
>  Raymond,
>
>  Thanks for your reply.  I did fix the svn by updating the web proxy
>  info.
>
>  In order to use NodeLuncher - I thought I need to build the tutorial -
>  please let me know if I am wrong.  I am getting the following error when
>  building tutorial:
>
>   Downloading:
>  http://people.apache.org/repo/m2-snapshot-repository/org/apache/tuscany/
>  sca/tuscany-mav
>
>  en-ant-generator/2.0-incubating-SNAPSHOT/tuscany-maven-ant-generator-2.0
>  -incubating-SNAPSHOT.pom
>   Downloading:
>  http://snapshots.repository.codehaus.org/org/apache/tuscany/sca/tuscany-
>  maven-ant-gener
>
>  ator/2.0-incubating-SNAPSHOT/tuscany-maven-ant-generator-2.0-incubating-
>  SNAPSHOT.pom
>   Downloading:
>  http://people.apache.org/repo/m2-incubating-repository/org/apache/tuscan
>  y/sca/tuscany-m
>
>  aven-ant-generator/2.0-incubating-SNAPSHOT/tuscany-maven-ant-generator-2
>  .0-incubating-SNAPSHOT.pom
>   Downloading:
>  http://people.apache.org/repo/m2-snapshot-repository/org/apache/tuscany/
>  sca/tuscany-mav
>
>  en-ant-generator/2.0-incubating-SNAPSHOT/tuscany-maven-ant-generator-2.0
>  -incubating-SNAPSHOT.pom
>   [INFO]
>  ------------------------------------------------------------------------
>   [ERROR] BUILD ERROR
>   [INFO]
>  ------------------------------------------------------------------------
>   [INFO] Failed to resolve artifact.
>
>   GroupId: org.apache.tuscany.sca
>   ArtifactId: tuscany-maven-ant-generator
>   Version: 2.0-incubating-SNAPSHOT
>
>   Reason: Unable to download the artifact from any repository
>
>
>  org.apache.tuscany.sca:tuscany-maven-ant-generator:pom:2.0-incubating-SN
>  APSHOT
>
>   from the specified remote repositories:
>     repo1.maven.org (http://repo1.maven.org/maven2),
>     apache.incubator
>  (http://people.apache.org/repo/m2-incubating-repository),
>     apache.ws.zone (http://ws.zones.apache.org/repository2),
>     apache.snapshots
>  (http://people.apache.org/repo/m2-snapshot-repository),
>     codehaus-snapshot (http://snapshots.repository.codehaus.org)
>  Any idea where can I get the above dependency?
>
>  Thanks,
>  Radu Marian
>  CRM Services Architecture Team
>  Bank of America, Charlotte NC
>  (980) 387-6233
>  [EMAIL PROTECTED]
>
>
>
>
>  ------------------------------------------------------------------------
>  --------
>  From: Raymond Feng [mailto:[EMAIL PROTECTED]
>  Sent: Tuesday, April 22, 2008 11:49 AM
>  To: Marian, Radu
>  Subject: Re: svn checkout problem
>
>
>  Hi,
>
>  Is this a firewall-related issue? You could try to ping svn.apache.org
>  or open a browser window and point to
>  http://svn.apache.org/repos/asf/incubator/tuscany/java/sca. You should
>  be able to see the svn repo.
>
>  Thanks,
>  Raymond
>
>  From: Marian, Radu
>  Sent: Tuesday, April 22, 2008 6:57 AM
>  To: [EMAIL PROTECTED]
>  Subject: svn checkout problem
>
>
>  Raymond,
>
>  I am sorry to bug you with such a simple question.  While trying to get
>  latest using svn - i am getting the following error:
>
>  C:\apache-tuscany\svn>svn checkout
>  http://svn.apache.org/repos/asf/incubator/tuscany/java/sca
>  svn: PROPFIND request failed on '/repos/asf/incubator/tuscany/java/sca'
>  svn: PROPFIND of '/repos/asf/incubator/tuscany/java/sca': Could not
>  resolve hostname `svn.apache.org
>  ': No such host is known.   (http://svn.apache.org)
>
>  Can you please help,
>
>  Thanks,
>  Radu Marian
>  CRM Services Architecture Team
>  Bank of America, Charlotte NC
>  (980) 387-6233
>  [EMAIL PROTECTED]
>



-- 
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Reply via email to