You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by ant elder <an...@gmail.com> on 2010/12/31 10:38:27 UTC

Re: Dependencies changed to provided scope, was: Re: svn commit: r1033523 - in /tuscany/sca-java-2.x/trunk: features/web20/ modules/binding-rest-runtime/ modules/contribution-osgi/ modules/extensibility-equinox/ modules/implementation-osgi/ modules/i

These used to be included in web20 so it all worked ok but in r1042740
you removed the model modules, the commit message doesn't explain why.
If they're added back it should all be fine again.

   ...ant

On Wed, Dec 29, 2010 at 8:13 AM, Luciano Resende <lu...@gmail.com> wrote:
> Why some dependencies were changed to provided scope ? This is causing
> issues, particularly when a application is dependent on a "feature"
> (e.g web 2.0 feature), particularly when a runtime module (e.g
> binding-rest-runtime) has the model dependency marked with scope
> provided (e.g binding-rest). In this case, the model module does not
> get included in the web application, thus causing errors parsing the
> composite.
>
> SEVERE: org.oasisopen.sca.ServiceRuntimeException: [Contribution:
> file:/Users/lresende/opt/apache-tomcat-6.0.18/webapps/tuscany-registry-introspector/,
> Artifact: WEB-INF/web.composite] - Element
> {http://tuscany.apache.org/xmlns/sca/1.1}binding.rest cannot be
> processed. ([row,col,system-id]:
> [28,4,"file:/Users/lresende/opt/apache-tomcat-6.0.18/webapps/tuscany-registry-introspector/WEB-INF/web.composite"])
> java.lang.IllegalStateException:
> org.oasisopen.sca.ServiceRuntimeException: [Contribution:
> file:/Users/lresende/opt/apache-tomcat-6.0.18/webapps/tuscany-registry-introspector/,
> Artifact: WEB-INF/web.composite] - Element
> {http://tuscany.apache.org/xmlns/sca/1.1}binding.rest cannot be
> processed. ([row,col,system-id]:
> [28,4,"file:/Users/lresende/opt/apache-tomcat-6.0.18/webapps/tuscany-registry-introspector/WEB-INF/web.composite"])
>        at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:169)
>        at org.apache.tuscany.sca.host.webapp.WebAppHelper.createAndStartNode(WebAppHelper.java:272)
>        at org.apache.tuscany.sca.host.webapp.WebAppHelper.init(WebAppHelper.java:226)
>        at org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.init(TuscanyServletFilter.java:63)
>        at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
>        at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
>        at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
>        at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
>        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)
>        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
>        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
>        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
>        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
>        at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)
>        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
>        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>        at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
>        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
>        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
>        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
>        at java.lang.Thread.run(Thread.java:680)
> Caused by: org.oasisopen.sca.ServiceRuntimeException: [Contribution:
> file:/Users/lresende/opt/apache-tomcat-6.0.18/webapps/tuscany-registry-introspector/,
> Artifact: WEB-INF/web.composite] - Element
> {http://tuscany.apache.org/xmlns/sca/1.1}binding.rest cannot be
> processed. ([row,col,system-id]:
> [28,4,"file:/Users/lresende/opt/apache-tomcat-6.0.18/webapps/tuscany-registry-introspector/WEB-INF/web.composite"])
>        at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.analyzeProblems(NodeFactoryImpl.java:208)
>        at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.loadContributions(NodeFactoryImpl.java:389)
>        at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:122)
>        ... 22 more
>
>
> On Wed, Nov 10, 2010 at 7:36 AM,  <an...@apache.org> wrote:
>> Author: antelder
>> Date: Wed Nov 10 15:36:30 2010
>> New Revision: 1033523
>>
>> URL: http://svn.apache.org/viewvc?rev=1033523&view=rev
>> Log:
>> Update more things for base + extensions approach
>>
>> Modified:
>>    tuscany/sca-java-2.x/trunk/features/web20/pom.xml
>>    tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/pom.xml
>>    tuscany/sca-java-2.x/trunk/modules/contribution-osgi/pom.xml
>>    tuscany/sca-java-2.x/trunk/modules/extensibility-equinox/pom.xml
>>    tuscany/sca-java-2.x/trunk/modules/implementation-osgi/pom.xml
>>    tuscany/sca-java-2.x/trunk/modules/interface-java-jaxrs/pom.xml
>>    tuscany/sca-java-2.x/trunk/modules/node-impl-osgi/pom.xml
>>    tuscany/sca-java-2.x/trunk/modules/node-launcher-equinox/pom.xml
>>    tuscany/sca-java-2.x/trunk/samples/applications/store/pom.xml
>>    tuscany/sca-java-2.x/trunk/samples/extending-tuscany/implementation-sample/pom.xml
>>    tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-contribution/pom.xml
>>    tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/pom.xml
>>    tuscany/sca-java-2.x/trunk/samples/running-tuscany/embedded-jse/pom.xml
>>    tuscany/sca-java-2.x/trunk/samples/running-tuscany/maven-junit/calculator-contribution/pom.xml
>>
>> Modified: tuscany/sca-java-2.x/trunk/features/web20/pom.xml
>> URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/features/web20/pom.xml?rev=1033523&r1=1033522&r2=1033523&view=diff
>> ==============================================================================
>> --- tuscany/sca-java-2.x/trunk/features/web20/pom.xml (original)
>> +++ tuscany/sca-java-2.x/trunk/features/web20/pom.xml Wed Nov 10 15:36:30 2010
>> @@ -87,6 +87,11 @@
>>
>>         <dependency>
>>             <groupId>org.apache.tuscany.sca</groupId>
>> +            <artifactId>tuscany-binding-http</artifactId>
>> +            <version>2.0-SNAPSHOT</version>
>> +        </dependency>
>> +        <dependency>
>> +            <groupId>org.apache.tuscany.sca</groupId>
>>             <artifactId>tuscany-binding-http-runtime</artifactId>
>>             <version>2.0-SNAPSHOT</version>
>>         </dependency>
>>
>> Modified: tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/pom.xml
>> URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/pom.xml?rev=1033523&r1=1033522&r2=1033523&view=diff
>> ==============================================================================
>> --- tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/pom.xml (original)
>> +++ tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/pom.xml Wed Nov 10 15:36:30 2010
>> @@ -34,42 +34,49 @@
>>             <groupId>org.apache.tuscany.sca</groupId>
>>             <artifactId>tuscany-binding-rest</artifactId>
>>             <version>2.0-SNAPSHOT</version>
>> +            <scope>provided</scope>
>>         </dependency>
>>
>>         <dependency>
>>             <groupId>org.apache.tuscany.sca</groupId>
>>             <artifactId>tuscany-data-api</artifactId>
>>             <version>2.0-SNAPSHOT</version>
>> +            <scope>provided</scope>
>>         </dependency>
>>
>>         <dependency>
>>             <groupId>org.apache.tuscany.sca</groupId>
>>             <artifactId>tuscany-common-http</artifactId>
>>             <version>2.0-SNAPSHOT</version>
>> +            <scope>provided</scope>
>>         </dependency>
>>
>>         <dependency>
>>             <groupId>org.apache.tuscany.sca</groupId>
>>             <artifactId>tuscany-core-spi</artifactId>
>>             <version>2.0-SNAPSHOT</version>
>> +            <scope>provided</scope>
>>         </dependency>
>>
>>         <dependency>
>>             <groupId>org.apache.tuscany.sca</groupId>
>>             <artifactId>tuscany-core</artifactId>
>>             <version>2.0-SNAPSHOT</version>
>> +            <scope>provided</scope>
>>         </dependency>
>>
>>         <dependency>
>>             <groupId>org.apache.tuscany.sca</groupId>
>>             <artifactId>tuscany-databinding</artifactId>
>>             <version>2.0-SNAPSHOT</version>
>> +            <scope>provided</scope>
>>         </dependency>
>>
>>         <dependency>
>>             <groupId>org.apache.tuscany.sca</groupId>
>>             <artifactId>tuscany-databinding-jaxb</artifactId>
>>             <version>2.0-SNAPSHOT</version>
>> +            <scope>provided</scope>
>>         </dependency>
>>
>>         <dependency>
>> @@ -82,6 +89,7 @@
>>             <groupId>org.apache.tuscany.sca</groupId>
>>             <artifactId>tuscany-host-http</artifactId>
>>             <version>2.0-SNAPSHOT</version>
>> +            <scope>provided</scope>
>>         </dependency>
>>
>>         <dependency>
>>
>> Modified: tuscany/sca-java-2.x/trunk/modules/contribution-osgi/pom.xml
>> URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/contribution-osgi/pom.xml?rev=1033523&r1=1033522&r2=1033523&view=diff
>> ==============================================================================
>> --- tuscany/sca-java-2.x/trunk/modules/contribution-osgi/pom.xml (original)
>> +++ tuscany/sca-java-2.x/trunk/modules/contribution-osgi/pom.xml Wed Nov 10 15:36:30 2010
>> @@ -31,41 +31,19 @@
>>     <dependencies>
>>         <dependency>
>>             <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-contribution</artifactId>
>> +            <artifactId>tuscany-core-runtime-pom</artifactId>
>> +            <type>pom</type>
>>             <version>2.0-SNAPSHOT</version>
>> +            <scope>provided</scope>
>>         </dependency>
>>
>>         <dependency>
>> -            <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-core-spi</artifactId>
>> -            <version>2.0-SNAPSHOT</version>
>> -        </dependency>
>> -
>> -        <dependency>
>> -            <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-monitor</artifactId>
>> -            <version>2.0-SNAPSHOT</version>
>> -        </dependency>
>> -
>> -        <dependency>
>>             <groupId>org.eclipse</groupId>
>>             <artifactId>osgi</artifactId>
>>             <version>3.5.0-v20090520</version>
>>             <scope>compile</scope>
>>         </dependency>
>>
>> -        <dependency>
>> -            <groupId>org.codehaus.woodstox</groupId>
>> -            <artifactId>wstx-asl</artifactId>
>> -            <version>3.2.6</version>
>> -            <scope>runtime</scope>
>> -            <exclusions>
>> -                <exclusion>
>> -                    <groupId>stax</groupId>
>> -                    <artifactId>stax-api</artifactId>
>> -                </exclusion>
>> -            </exclusions>
>> -        </dependency>
>>     </dependencies>
>>
>>
>>
>> Modified: tuscany/sca-java-2.x/trunk/modules/extensibility-equinox/pom.xml
>> URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/extensibility-equinox/pom.xml?rev=1033523&r1=1033522&r2=1033523&view=diff
>> ==============================================================================
>> --- tuscany/sca-java-2.x/trunk/modules/extensibility-equinox/pom.xml (original)
>> +++ tuscany/sca-java-2.x/trunk/modules/extensibility-equinox/pom.xml Wed Nov 10 15:36:30 2010
>> @@ -30,8 +30,10 @@
>>     <dependencies>
>>         <dependency>
>>             <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-extensibility</artifactId>
>> +            <artifactId>tuscany-core-runtime-pom</artifactId>
>> +            <type>pom</type>
>>             <version>2.0-SNAPSHOT</version>
>> +            <scope>provided</scope>
>>         </dependency>
>>
>>         <dependency>
>>
>> Modified: tuscany/sca-java-2.x/trunk/modules/implementation-osgi/pom.xml
>> URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/implementation-osgi/pom.xml?rev=1033523&r1=1033522&r2=1033523&view=diff
>> ==============================================================================
>> --- tuscany/sca-java-2.x/trunk/modules/implementation-osgi/pom.xml (original)
>> +++ tuscany/sca-java-2.x/trunk/modules/implementation-osgi/pom.xml Wed Nov 10 15:36:30 2010
>> @@ -43,21 +43,10 @@
>>
>>         <dependency>
>>             <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-core-spi</artifactId>
>> -            <version>2.0-SNAPSHOT</version>
>> -            <scope>test</scope>
>> -        </dependency>
>> -
>> -        <dependency>
>> -            <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-interface-java</artifactId>
>> -            <version>2.0-SNAPSHOT</version>
>> -        </dependency>
>> -
>> -        <dependency>
>> -            <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-assembly-xml</artifactId>
>> +            <artifactId>tuscany-core-runtime-pom</artifactId>
>> +            <type>pom</type>
>>             <version>2.0-SNAPSHOT</version>
>> +            <scope>provided</scope>
>>         </dependency>
>>
>>         <dependency>
>>
>> Modified: tuscany/sca-java-2.x/trunk/modules/interface-java-jaxrs/pom.xml
>> URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/interface-java-jaxrs/pom.xml?rev=1033523&r1=1033522&r2=1033523&view=diff
>> ==============================================================================
>> --- tuscany/sca-java-2.x/trunk/modules/interface-java-jaxrs/pom.xml (original)
>> +++ tuscany/sca-java-2.x/trunk/modules/interface-java-jaxrs/pom.xml Wed Nov 10 15:36:30 2010
>> @@ -37,17 +37,13 @@
>>
>>         <dependency>
>>             <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-core-spi</artifactId>
>> +            <artifactId>tuscany-core-runtime-pom</artifactId>
>> +            <type>pom</type>
>> +            <scope>provided</scope>
>>             <version>2.0-SNAPSHOT</version>
>>         </dependency>
>>
>>         <dependency>
>> -            <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-interface-java</artifactId>
>> -            <version>2.0-SNAPSHOT</version>
>> -        </dependency>
>> -
>> -        <dependency>
>>             <groupId>junit</groupId>
>>             <artifactId>junit</artifactId>
>>             <version>4.8.1</version>
>> @@ -58,7 +54,7 @@
>>                <artifactId>asm</artifactId>
>>                <version>3.1</version>
>>                <type>jar</type>
>> -               <scope>compile</scope>
>> +               <scope>provided</scope>
>>         </dependency>
>>     </dependencies>
>>  </project>
>>
>> Modified: tuscany/sca-java-2.x/trunk/modules/node-impl-osgi/pom.xml
>> URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/node-impl-osgi/pom.xml?rev=1033523&r1=1033522&r2=1033523&view=diff
>> ==============================================================================
>> --- tuscany/sca-java-2.x/trunk/modules/node-impl-osgi/pom.xml (original)
>> +++ tuscany/sca-java-2.x/trunk/modules/node-impl-osgi/pom.xml Wed Nov 10 15:36:30 2010
>> @@ -85,7 +85,15 @@
>>
>>         <dependency>
>>             <groupId>org.apache.tuscany.sca</groupId>
>> +            <artifactId>tuscany-core-runtime-pom</artifactId>
>> +            <type>pom</type>
>> +            <scope>provided</scope>
>> +            <version>2.0-SNAPSHOT</version>
>> +        </dependency>
>> +        <dependency>
>> +            <groupId>org.apache.tuscany.sca</groupId>
>>             <artifactId>tuscany-node-impl</artifactId>
>> +            <scope>provided</scope>
>>             <version>2.0-SNAPSHOT</version>
>>         </dependency>
>>
>>
>> Modified: tuscany/sca-java-2.x/trunk/modules/node-launcher-equinox/pom.xml
>> URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/node-launcher-equinox/pom.xml?rev=1033523&r1=1033522&r2=1033523&view=diff
>> ==============================================================================
>> --- tuscany/sca-java-2.x/trunk/modules/node-launcher-equinox/pom.xml (original)
>> +++ tuscany/sca-java-2.x/trunk/modules/node-launcher-equinox/pom.xml Wed Nov 10 15:36:30 2010
>> @@ -67,23 +67,19 @@
>>  -->
>>
>>         <dependency>
>> -            <groupId>commons-cli</groupId>
>> -            <artifactId>commons-cli</artifactId>
>> -            <version>1.2</version>
>> -        </dependency>
>> -
>> -        <dependency>
>>             <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-node-api</artifactId>
>> +            <artifactId>tuscany-base-runtime-pom</artifactId>
>> +            <type>pom</type>
>>             <version>2.0-SNAPSHOT</version>
>>             <scope>test</scope>
>>         </dependency>
>> +
>>         <dependency>
>> -            <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-node-impl</artifactId>
>> -            <version>2.0-SNAPSHOT</version>
>> -            <scope>test</scope>
>> +            <groupId>commons-cli</groupId>
>> +            <artifactId>commons-cli</artifactId>
>> +            <version>1.2</version>
>>         </dependency>
>> +
>>         <dependency>
>>             <groupId>org.apache.tuscany.sca</groupId>
>>             <artifactId>tuscany-extensibility-equinox</artifactId>
>> @@ -98,12 +94,6 @@
>>             <scope>test</scope>
>>         </dependency-->
>>
>> -        <dependency>
>> -            <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-implementation-java-runtime</artifactId>
>> -            <version>2.0-SNAPSHOT</version>
>> -            <scope>test</scope>
>> -        </dependency>
>>     </dependencies>
>>
>>     <build>
>>
>> Modified: tuscany/sca-java-2.x/trunk/samples/applications/store/pom.xml
>> URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/applications/store/pom.xml?rev=1033523&r1=1033522&r2=1033523&view=diff
>> ==============================================================================
>> --- tuscany/sca-java-2.x/trunk/samples/applications/store/pom.xml (original)
>> +++ tuscany/sca-java-2.x/trunk/samples/applications/store/pom.xml Wed Nov 10 15:36:30 2010
>> @@ -31,7 +31,7 @@
>>        <dependencies>
>>                <dependency>
>>                        <groupId>org.apache.tuscany.sca</groupId>
>> -                       <artifactId>tuscany-node-impl</artifactId>
>> +                       <artifactId>tuscany-base-runtime</artifactId>
>>                        <version>2.0-SNAPSHOT</version>
>>                </dependency>
>>
>> @@ -43,12 +43,54 @@
>>
>>         <dependency>
>>             <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-feature-web20</artifactId>
>> -            <type>pom</type>
>> +            <artifactId>tuscany-binding-atom-runtime</artifactId>
>>             <version>2.0-SNAPSHOT</version>
>>         </dependency>
>> +        <dependency>
>> +            <groupId>org.apache.tuscany.sca</groupId>
>> +            <artifactId>tuscany-binding-atom-js-dojo</artifactId>
>> +            <version>2.0-SNAPSHOT</version>
>> +        </dependency>
>> +        <dependency>
>> +            <groupId>org.apache.tuscany.sca</groupId>
>> +            <artifactId>tuscany-binding-http-runtime</artifactId>
>> +            <version>2.0-SNAPSHOT</version>
>> +        </dependency>
>> +        <dependency>
>> +            <groupId>org.apache.tuscany.sca</groupId>
>> +            <artifactId>tuscany-binding-jsonrpc-runtime</artifactId>
>> +            <version>2.0-SNAPSHOT</version>
>> +        </dependency>
>> +        <dependency>
>> +            <groupId>org.apache.tuscany.sca</groupId>
>> +            <artifactId>tuscany-binding-jsonrpc-js-dojo</artifactId>
>> +            <version>2.0-SNAPSHOT</version>
>> +        </dependency>
>> +        <dependency>
>> +            <groupId>org.apache.tuscany.sca</groupId>
>> +            <artifactId>tuscany-implementation-widget-runtime</artifactId>
>> +            <version>2.0-SNAPSHOT</version>
>> +        </dependency>
>> +        <dependency>
>> +            <groupId>org.apache.tuscany.sca</groupId>
>> +            <artifactId>tuscany-implementation-widget-runtime-dojo</artifactId>
>> +            <version>2.0-SNAPSHOT</version>
>> +        </dependency>
>> +
>> +        <dependency>
>> +            <groupId>org.apache.tuscany.sca</groupId>
>> +            <artifactId>tuscany-web-javascript-dojo</artifactId>
>> +            <version>2.0-SNAPSHOT</version>
>> +        </dependency>
>>
>>         <dependency>
>> +            <groupId>org.mortbay.jetty</groupId>
>> +            <artifactId>jetty</artifactId>
>> +            <version>6.1.19</version>
>> +            <scope>test</scope>
>> +        </dependency>
>> +
>> +        <dependency>
>>             <groupId>net.sourceforge.htmlunit</groupId>
>>             <artifactId>htmlunit</artifactId>
>>             <version>2.6</version>
>>
>> Modified: tuscany/sca-java-2.x/trunk/samples/extending-tuscany/implementation-sample/pom.xml
>> URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/extending-tuscany/implementation-sample/pom.xml?rev=1033523&r1=1033522&r2=1033523&view=diff
>> ==============================================================================
>> --- tuscany/sca-java-2.x/trunk/samples/extending-tuscany/implementation-sample/pom.xml (original)
>> +++ tuscany/sca-java-2.x/trunk/samples/extending-tuscany/implementation-sample/pom.xml Wed Nov 10 15:36:30 2010
>> @@ -32,38 +32,22 @@
>>     <dependencies>
>>         <dependency>
>>             <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-feature-api</artifactId>
>> -            <type>pom</type>
>> +            <artifactId>tuscany-base-runtime</artifactId>
>>             <version>2.0-SNAPSHOT</version>
>>         </dependency>
>>
>>         <dependency>
>>             <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-feature-core</artifactId>
>> -            <type>pom</type>
>> -            <version>2.0-SNAPSHOT</version>
>> -        </dependency>
>> -
>> -        <dependency>
>> -            <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-feature-webservice</artifactId>
>> -            <type>pom</type>
>> +            <artifactId>tuscany-binding-ws-runtime-axis2</artifactId>
>>             <version>2.0-SNAPSHOT</version>
>>         </dependency>
>>
>>         <dependency>
>> -            <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-feature-web20</artifactId>
>> -            <type>pom</type>
>> -            <version>2.0-SNAPSHOT</version>
>> +            <groupId>org.mortbay.jetty</groupId>
>> +            <artifactId>jetty</artifactId>
>> +            <version>6.1.19</version>
>>         </dependency>
>> -
>> -        <dependency>
>> -            <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-host-webapp</artifactId>
>> -            <version>2.0-SNAPSHOT</version>
>> -        </dependency>
>> -
>> +
>>         <dependency>
>>             <groupId>junit</groupId>
>>             <artifactId>junit</artifactId>
>>
>> Modified: tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-contribution/pom.xml
>> URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-contribution/pom.xml?rev=1033523&r1=1033522&r2=1033523&view=diff
>> ==============================================================================
>> --- tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-contribution/pom.xml (original)
>> +++ tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-contribution/pom.xml Wed Nov 10 15:36:30 2010
>> @@ -33,9 +33,8 @@
>>     <dependencies>
>>         <dependency>
>>             <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-base-runtime-pom</artifactId>
>> +            <artifactId>tuscany-base-runtime</artifactId>
>>             <version>2.0-SNAPSHOT</version>
>> -            <type>pom</type>
>>         </dependency>
>>         <dependency>
>>             <groupId>junit</groupId>
>>
>> Modified: tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/pom.xml
>> URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/pom.xml?rev=1033523&r1=1033522&r2=1033523&view=diff
>> ==============================================================================
>> --- tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/pom.xml (original)
>> +++ tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/pom.xml Wed Nov 10 15:36:30 2010
>> @@ -34,9 +34,8 @@
>>
>>         <dependency>
>>             <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-base-runtime-pom</artifactId>
>> +            <artifactId>tuscany-base-runtime</artifactId>
>>             <version>2.0-SNAPSHOT</version>
>> -            <type>pom</type>
>>         </dependency>
>>
>>         <dependency>
>>
>> Modified: tuscany/sca-java-2.x/trunk/samples/running-tuscany/embedded-jse/pom.xml
>> URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/running-tuscany/embedded-jse/pom.xml?rev=1033523&r1=1033522&r2=1033523&view=diff
>> ==============================================================================
>> --- tuscany/sca-java-2.x/trunk/samples/running-tuscany/embedded-jse/pom.xml (original)
>> +++ tuscany/sca-java-2.x/trunk/samples/running-tuscany/embedded-jse/pom.xml Wed Nov 10 15:36:30 2010
>> @@ -31,20 +31,12 @@
>>     <dependencies>
>>         <dependency>
>>             <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-base-runtime-pom</artifactId>
>> +            <artifactId>tuscany-base-runtime</artifactId>
>>             <version>2.0-SNAPSHOT</version>
>> -            <type>pom</type>
>>         </dependency>
>>
>>         <dependency>
>>             <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-osgi-runtime-pom</artifactId>
>> -            <version>2.0-SNAPSHOT</version>
>> -            <type>pom</type>
>> -        </dependency>
>> -
>> -        <dependency>
>> -            <groupId>org.apache.tuscany.sca</groupId>
>>             <artifactId>tuscany-binding-rmi-runtime</artifactId>
>>             <version>2.0-SNAPSHOT</version>
>>         </dependency>
>>
>> Modified: tuscany/sca-java-2.x/trunk/samples/running-tuscany/maven-junit/calculator-contribution/pom.xml
>> URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/running-tuscany/maven-junit/calculator-contribution/pom.xml?rev=1033523&r1=1033522&r2=1033523&view=diff
>> ==============================================================================
>> --- tuscany/sca-java-2.x/trunk/samples/running-tuscany/maven-junit/calculator-contribution/pom.xml (original)
>> +++ tuscany/sca-java-2.x/trunk/samples/running-tuscany/maven-junit/calculator-contribution/pom.xml Wed Nov 10 15:36:30 2010
>> @@ -31,8 +31,7 @@
>>     <dependencies>
>>         <dependency>
>>             <groupId>org.apache.tuscany.sca</groupId>
>> -            <artifactId>tuscany-base-runtime-pom</artifactId>
>> -            <type>pom</type>
>> +            <artifactId>tuscany-base-runtime</artifactId>
>>             <version>2.0-SNAPSHOT</version>
>>         </dependency>
>>
>>
>>
>>
>
>
>
> --
> Luciano Resende
> http://people.apache.org/~lresende
> http://twitter.com/lresende1975
> http://lresende.blogspot.com/
>

Re: Dependencies changed to provided scope, was: Re: svn commit: r1033523 - in /tuscany/sca-java-2.x/trunk: features/web20/ modules/binding-rest-runtime/ modules/contribution-osgi/ modules/extensibility-equinox/ modules/implementation-osgi/ modules/i

Posted by ant elder <an...@apache.org>.
On Sat, Jan 1, 2011 at 8:00 PM, Luciano Resende <lu...@gmail.com> wrote:
> On Fri, Dec 31, 2010 at 1:38 AM, ant elder <an...@gmail.com> wrote:
>> These used to be included in web20 so it all worked ok but in r1042740
>> you removed the model modules, the commit message doesn't explain why.
>> If they're added back it should all be fine again.
>>
>>   ...ant
>>
>
> To me, it's strange to rely on a external pom to satisfy a required
> dependency of a module. This way, no applications that have direct
> dependency on the module-xxx-runtime will work.
>
> BTW, are we by any chance mandating usage of the features ?
>

Not at all, and it works fine if you have a dependency on the base
plus the runtime module which is what we're recommending now a days.

   ...ant

Re: Dependencies changed to provided scope, was: Re: svn commit: r1033523 - in /tuscany/sca-java-2.x/trunk: features/web20/ modules/binding-rest-runtime/ modules/contribution-osgi/ modules/extensibility-equinox/ modules/implementation-osgi/ modules/i

Posted by Luciano Resende <lu...@gmail.com>.
On Fri, Dec 31, 2010 at 1:38 AM, ant elder <an...@gmail.com> wrote:
> These used to be included in web20 so it all worked ok but in r1042740
> you removed the model modules, the commit message doesn't explain why.
> If they're added back it should all be fine again.
>
>   ...ant
>

To me, it's strange to rely on a external pom to satisfy a required
dependency of a module. This way, no applications that have direct
dependency on the module-xxx-runtime will work.

BTW, are we by any chance mandating usage of the features ?

-- 
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/