[ http://issues.apache.org/jira/browse/TUSCANY-727?page=comments#action_12435205 ] Meeraj Kunnumpurath commented on TUSCANY-727: ---------------------------------------------
This is a rough outline for the proposed mechanism for handling dependencies .... 1. Applications that use extensions should specify the extensions they use in the tuscany maven war plugin using the configuration/extensions/dependency(0..*) element. 2. The articat id, group id, version etc of the extension should be specified. 3. The war plugin will include the artifacts for the specified extensions in the WEB-INF/tuscany/exensions directory. 4. The application builder can optionally configure the WAR plugin to load all the dependencies for the extensions transitively into the WAR file using configuration/extensions/loadExtensionDependencies(0..1) element. 5. If this element is set to true the dependencies are loaded transitively into WEB-INF/tuscany/repository directory in a structure similar to a maven repo. 6. At runtime, if the composite contains a dependency element, the artifact resolver will resolve it and its dependencies transitively from WEB-INF/tuscany/repository directory. 7. If unable to do do, it will try the same using an injected local and set of remote directories. 8. If it still fails, it throws a runtime error. > Transitive Dependencies in Composites > ------------------------------------- > > Key: TUSCANY-727 > URL: http://issues.apache.org/jira/browse/TUSCANY-727 > Project: Tuscany > Issue Type: New Feature > Components: Java SCA Core > Affects Versions: Java-M2 > Reporter: Meeraj Kunnumpurath > Assigned To: Meeraj Kunnumpurath > Fix For: Java-M2 > > > Dependencies defined in composites need to be resolved transitively. > Currently artifact id specified in the SCDL is resolved non-transitively from > a local Maven repo (location injected) in, using custom code. We may be able > to leverage on the existing Maven artifact API. Also, we need to cater for > scenarios where a local Maven repository is not available in the deployed > environment. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
