Luciano,

Thanks for your help.  Yes I did see the following: 
-------------------------------------------------------
 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

The command I used to run was:
mvn clean install -fn -Dmanven.test.skip=true

BTW - I am getting an error when running: 

C:\apache-tuscany\svn>mvn -Peclipse eclipse:eclipse
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: unknown

Reason: Could not find the model file
'C:\apache-tuscany\svn\tools\eclipse'. for project unknown


[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Could not find the
model file 'C:\apache-tuscany
vn\tools\eclipse'. for project unknown
        at
org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
        at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.ProjectBuildingException: Could not
find the model file 'C:\ap
he-tuscany\svn\tools\eclipse'. for project unknown
        at
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMav
enProjectBuilde
java:1557)
        at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileI
nternal(Default
venProjectBuilder.java:504)
        at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenPr
ojectBuilder.ja
:198)
        at
org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
        at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
        at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:534)
        at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:534)
        at
org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
        ... 11 more
Caused by: java.io.FileNotFoundException:
C:\apache-tuscany\svn\tools\eclipse (The system cannot f
d the file specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at
hidden.org.codehaus.plexus.util.xml.XmlReader.<init>(XmlReader.java:123)
        at
hidden.org.codehaus.plexus.util.xml.XmlStreamReader.<init>(XmlStreamRead
er.java:67)
        at
hidden.org.codehaus.plexus.util.ReaderFactory.newXmlReader(ReaderFactory
.java:113)
        at
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMav
enProjectBuilde
java:1552)
        ... 18 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 8 seconds
[INFO] Finished at: Wed Apr 23 11:44:21 EDT 2008
[INFO] Final Memory: 6M/508M
[INFO]
------------------------------------------------------------------------

Radu Marian
CRM Services Architecture Team
Bank of America, Charlotte NC
(980) 387-6233
[EMAIL PROTECTED]

-----Original Message-----
From: Luciano Resende [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 23, 2008 11:36 AM
To: [email protected]
Subject: Re: svn checkout problem

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-SNAP
> SH
>  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-SNAP
> SH
>  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/tuscan
> y/
>  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/tuscan
> y-
>  maven-ant-gener
>
>  
> ator/2.0-incubating-SNAPSHOT/tuscany-maven-ant-generator-2.0-incubatin
> g-
>  SNAPSHOT.pom
>   Downloading:
>  
> http://people.apache.org/repo/m2-incubating-repository/org/apache/tusc
> an
>  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/tuscan
> y/
>  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