You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Raymond Feng <en...@gmail.com> on 2007/01/25 20:16:59 UTC

Top-down build fails in container.javascript

Hi,

In the trunk, the kernel modules are versioned as 1.0-incubator-SNAPSHOT 
while other modules (such as container.javascript) reference the 
0.1-pre-spec-SNAPSHOT version of the kernel.

The maven seems to be confused by the mixed versions in the tree. Now I'm 
seeing inconsistent results:

1) If I run mvn directly under container.javascript module, it succeeds.
2) If I run mvn at the root of tree (<tuscany>/java), then it fails for the 
container.javascript module.

By turning on the debug for the top-down build (please see the classpath 
below), I found mvn tried to match some artifacts to modules in the same 
tree. As a result, it picks the 1.0-incubator-SNAPSHOT version of the kernal 
without honoring the one set in the pom.xml.

Thanks,
Raymond

[INFO] [compiler:testCompile]
[DEBUG] Using compiler 'javac'.
[DEBUG] Source directories: 
[C:\Tuscany\java\sca\services\containers\container.javascript\src\test\java]
[DEBUG] Classpath: 
[C:\Tuscany\java\sca\services\containers\container.javascript\target\classes
C:\Tuscany\java\sca\services\containers\container.javascript\target\test-classes
C:\Documents and 
Settings\Administrator\.m2\repository\org\osoa\sca-api-r0.95\1.0-incubator-SNAPSHOT\sca-api-r0.95-1.0-incubator-SNAPSHOT.jar
C:\Documents and 
Settings\Administrator\.m2\repository\org\apache\ws\commons\schema\XmlSchema\1.2\XmlSchema-1.2.jar
C:\Documents and 
Settings\Administrator\.m2\repository\org\apache\ws\commons\axiom\axiom-api\1.2.2\axiom-api-1.2.2.jar
C:\Documents and 
Settings\Administrator\.m2\repository\commons-logging\commons-logging\1.1\commons-logging-1.1.jar
C:\Tuscany\java\sca\kernel\host-api\target\tuscany-host-api-1.0-incubator-SNAPSHOT.jar
C:\Tuscany\java\sca\services\idl\wsdl\target\wsdl-1.0-incubator-SNAPSHOT.jar
C:\Documents and 
Settings\Administrator\.m2\repository\org\easymock\easymockclassextension\2.2\easymockclassextension-2.2.jar
C:\Tuscany\java\sca\kernel\core\target\core-1.0-incubator-SNAPSHOT.jar
C:\Tuscany\java\sca\test\target\test-1.0-incubator-SNAPSHOT.jar
C:\Documents and 
Settings\Administrator\.m2\repository\org\easymock\easymock\2.2\easymock-2.2.jar
C:\Documents and 
Settings\Administrator\.m2\repository\xerces\xercesImpl\2.6.2\xercesImpl-2.6.2.jar
C:\Tuscany\java\sca\kernel\spi\target\tuscany-spi-1.0-incubator-SNAPSHOT.jar
C:\Documents and 
Settings\Administrator\.m2\repository\javax\servlet\servlet-api\2.3\servlet-api-2.3.jar
C:\Documents and 
Settings\Administrator\.m2\repository\xml-apis\xml-apis\1.3.03\xml-apis-1.3.03.jar
C:\Documents and 
Settings\Administrator\.m2\repository\woodstox\wstx-asl\3.0.1\wstx-asl-3.0.1.jar
C:\Tuscany\java\sca\kernel\api\target\tuscany-api-1.0-incubator-SNAPSHOT.jar
C:\Documents and 
Settings\Administrator\.m2\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar
C:\Documents and 
Settings\Administrator\.m2\repository\rhino\js\1.6R2\js-1.6R2.jar
C:\Documents and 
Settings\Administrator\.m2\repository\jaxen\jaxen\1.1-beta-9\jaxen-1.1-beta-9.jar
C:\Documents and 
Settings\Administrator\.m2\repository\org\apache\ws\commons\axiom\axiom-impl\1.2.2\axiom-impl-1.2.2.jar
C:\Documents and 
Settings\Administrator\.m2\repository\javax\activation\activation\1.1\activation-1.1.jar
C:\Documents and 
Settings\Administrator\.m2\repository\log4j\log4j\1.2.12\log4j-1.2.12.jar
C:\Documents and 
Settings\Administrator\.m2\repository\javax\mail\mail\1.4\mail-1.4.jar
C:\Documents and 
Settings\Administrator\.m2\repository\avalon-framework\avalon-framework\4.1.3\avalon-framework-4.1.3.jar
C:\Documents and 
Settings\Administrator\.m2\repository\logkit\logkit\1.0.1\logkit-1.0.1.jar
C:\Documents and 
Settings\Administrator\.m2\repository\xmlbeans\xbean\2.1.0\xbean-2.1.0.jar
C:\Documents and 
Settings\Administrator\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
C:\Documents and 
Settings\Administrator\.m2\repository\wsdl4j\wsdl4j\1.6.2\wsdl4j-1.6.2.jar
C:\Documents and 
Settings\Administrator\.m2\repository\org\apache\tuscany\commonj-api_r1.1\1.0-incubator-SNAPSHOT\commonj-api_r1.1-1.0-incubator-SNAPSHOT.jar
C:\Documents and 
Settings\Administrator\.m2\repository\cglib\cglib-nodep\2.1_3\cglib-nodep-2.1_3.jar]
[DEBUG] Output directory: 
C:\Tuscany\java\sca\services\containers\container.javascript\target\test-classes 


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: Top-down build fails in container.javascript

Posted by Jim Marino <jm...@myromatours.com>.
Given that extensions are likely to require different versions of  
kernel and other libraries, I'm wondering what the value of a top- 
down build will provide.  For example, is someone likely to be  
working across all of the extensions and kernel (this probably won't  
even be possible given the different versions)?

One thing that is valuable is the ability to know the current state  
of the entire tree. Perhaps we could do this by setting up a  
continuous integration server that can periodically run integration  
tests for the various "build units", e.g. kernel and extensions?  
Maybe we could work with the Parabuilder people to enable this?

Jim

On Jan 25, 2007, at 11:16 AM, Raymond Feng wrote:

> Hi,
>
> In the trunk, the kernel modules are versioned as 1.0-incubator- 
> SNAPSHOT while other modules (such as container.javascript)  
> reference the 0.1-pre-spec-SNAPSHOT version of the kernel.
>
> The maven seems to be confused by the mixed versions in the tree.  
> Now I'm seeing inconsistent results:
>
> 1) If I run mvn directly under container.javascript module, it  
> succeeds.
> 2) If I run mvn at the root of tree (<tuscany>/java), then it fails  
> for the container.javascript module.
>
> By turning on the debug for the top-down build (please see the  
> classpath below), I found mvn tried to match some artifacts to  
> modules in the same tree. As a result, it picks the 1.0-incubator- 
> SNAPSHOT version of the kernal without honoring the one set in the  
> pom.xml.
>
> Thanks,
> Raymond
>
> [INFO] [compiler:testCompile]
> [DEBUG] Using compiler 'javac'.
> [DEBUG] Source directories: [C:\Tuscany\java\sca\services\containers 
> \container.javascript\src\test\java]
> [DEBUG] Classpath: [C:\Tuscany\java\sca\services\containers 
> \container.javascript\target\classes
> C:\Tuscany\java\sca\services\containers\container.javascript\target 
> \test-classes
> C:\Documents and Settings\Administrator\.m2\repository\org\osoa\sca- 
> api-r0.95\1.0-incubator-SNAPSHOT\sca-api-r0.95-1.0-incubator- 
> SNAPSHOT.jar
> C:\Documents and Settings\Administrator\.m2\repository\org\apache\ws 
> \commons\schema\XmlSchema\1.2\XmlSchema-1.2.jar
> C:\Documents and Settings\Administrator\.m2\repository\org\apache\ws 
> \commons\axiom\axiom-api\1.2.2\axiom-api-1.2.2.jar
> C:\Documents and Settings\Administrator\.m2\repository\commons- 
> logging\commons-logging\1.1\commons-logging-1.1.jar
> C:\Tuscany\java\sca\kernel\host-api\target\tuscany-host-api-1.0- 
> incubator-SNAPSHOT.jar
> C:\Tuscany\java\sca\services\idl\wsdl\target\wsdl-1.0-incubator- 
> SNAPSHOT.jar
> C:\Documents and Settings\Administrator\.m2\repository\org\easymock 
> \easymockclassextension\2.2\easymockclassextension-2.2.jar
> C:\Tuscany\java\sca\kernel\core\target\core-1.0-incubator-SNAPSHOT.jar
> C:\Tuscany\java\sca\test\target\test-1.0-incubator-SNAPSHOT.jar
> C:\Documents and Settings\Administrator\.m2\repository\org\easymock 
> \easymock\2.2\easymock-2.2.jar
> C:\Documents and Settings\Administrator\.m2\repository\xerces 
> \xercesImpl\2.6.2\xercesImpl-2.6.2.jar
> C:\Tuscany\java\sca\kernel\spi\target\tuscany-spi-1.0-incubator- 
> SNAPSHOT.jar
> C:\Documents and Settings\Administrator\.m2\repository\javax\servlet 
> \servlet-api\2.3\servlet-api-2.3.jar
> C:\Documents and Settings\Administrator\.m2\repository\xml-apis\xml- 
> apis\1.3.03\xml-apis-1.3.03.jar
> C:\Documents and Settings\Administrator\.m2\repository\woodstox 
> \wstx-asl\3.0.1\wstx-asl-3.0.1.jar
> C:\Tuscany\java\sca\kernel\api\target\tuscany-api-1.0-incubator- 
> SNAPSHOT.jar
> C:\Documents and Settings\Administrator\.m2\repository\stax\stax-api 
> \1.0.1\stax-api-1.0.1.jar
> C:\Documents and Settings\Administrator\.m2\repository\rhino\js 
> \1.6R2\js-1.6R2.jar
> C:\Documents and Settings\Administrator\.m2\repository\jaxen\jaxen 
> \1.1-beta-9\jaxen-1.1-beta-9.jar
> C:\Documents and Settings\Administrator\.m2\repository\org\apache\ws 
> \commons\axiom\axiom-impl\1.2.2\axiom-impl-1.2.2.jar
> C:\Documents and Settings\Administrator\.m2\repository\javax 
> \activation\activation\1.1\activation-1.1.jar
> C:\Documents and Settings\Administrator\.m2\repository\log4j\log4j 
> \1.2.12\log4j-1.2.12.jar
> C:\Documents and Settings\Administrator\.m2\repository\javax\mail 
> \mail\1.4\mail-1.4.jar
> C:\Documents and Settings\Administrator\.m2\repository\avalon- 
> framework\avalon-framework\4.1.3\avalon-framework-4.1.3.jar
> C:\Documents and Settings\Administrator\.m2\repository\logkit\logkit 
> \1.0.1\logkit-1.0.1.jar
> C:\Documents and Settings\Administrator\.m2\repository\xmlbeans 
> \xbean\2.1.0\xbean-2.1.0.jar
> C:\Documents and Settings\Administrator\.m2\repository\junit\junit 
> \3.8.1\junit-3.8.1.jar
> C:\Documents and Settings\Administrator\.m2\repository\wsdl4j\wsdl4j 
> \1.6.2\wsdl4j-1.6.2.jar
> C:\Documents and Settings\Administrator\.m2\repository\org\apache 
> \tuscany\commonj-api_r1.1\1.0-incubator-SNAPSHOT\commonj- 
> api_r1.1-1.0-incubator-SNAPSHOT.jar
> C:\Documents and Settings\Administrator\.m2\repository\cglib\cglib- 
> nodep\2.1_3\cglib-nodep-2.1_3.jar]
> [DEBUG] Output directory: C:\Tuscany\java\sca\services\containers 
> \container.javascript\target\test-classes
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org