ops4j / org.ops4j.pax.construct

Build, manage and deploy many types of OSGi bundles
https://ops4j1.jira.com/wiki/display/paxconstruct/Pax+Construct
24 stars 14 forks source link

Support for library definitions (libd) [PAXCONSTRUCT-123] #135

Closed ops4j-issues closed 8 years ago

ops4j-issues commented 15 years ago

Leen Toelen created PAXCONSTRUCT-123

The Springsource Enterprise Bundle repository has a concept of a library definition (http://www.springsource.com/repository/app/library).

In maven the spring library dependency would become.

<dependency>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.spring-library</artifactId>
<type>libd</type>
<version>2.5.6.SEC01</version>
</dependency>

Which points to http://repository.springsource.com/ivy/libraries/release/org.springframework/org.springframework.spring-library/2.5.6.SEC01/org.springframework.spring-library-2.5.6.SEC01.libd

Library-SymbolicName: org.springframework.spring
Library-Version: 2.5.6.SEC01
Library-Name: Spring Framework
Import-Bundle:
org.springframework.aop;version="2.5.6.SEC01, 2.5.6.SEC01",
org.springframework.aspects;version="2.5.6.SEC01, 2.5.6.SEC01";import-scope:=application,
org.springframework.beans;version="2.5.6.SEC01, 2.5.6.SEC01",
org.springframework.context;version="2.5.6.SEC01, 2.5.6.SEC01",
org.springframework.context.support;version="2.5.6.SEC01, 2.5.6.SEC01",
org.springframework.core;version="2.5.6.SEC01, 2.5.6.SEC01",
org.springframework.jdbc;version="2.5.6.SEC01, 2.5.6.SEC01",
org.springframework.jms;version="2.5.6.SEC01, 2.5.6.SEC01",
org.springframework.orm;version="2.5.6.SEC01, 2.5.6.SEC01",
org.springframework.transaction;version="2.5.6.SEC01, 2.5.6.SEC01",
org.springframework.web;version="2.5.6.SEC01, 2.5.6.SEC01",
org.springframework.web.servlet;version="2.5.6.SEC01, 2.5.6.SEC01",
com.springsource.org.aopalliance;version="1.0.0, 1.0.0"

Pax construct skips these definitions as non-bundle artifacts, but it would be very convenient to re-use the maven dependencies in pax construct without a fallback to the corresponding profiles.


Fixed in: 1.6.0 Attachments:

Votes: 0, Watches: 0

ops4j-issues commented 15 years ago

Leen Toelen commented

S3Browse gives a better understanding of the repository layout

http://s3browse.com/explore/repository.springsource.com/maven/libraries/release/org/springframework/org.springframework.spring-library/2.5.6.SEC01/

ops4j-issues commented 15 years ago

Stuart McCulloch commented

Initial support added in r16201 by adding transitive dependencies to the list of potential bundle artifacts.

ops4j-issues commented 15 years ago

Leen Toelen commented

The attached patch adds support for libd transient dependencies. Is this still needed after the initial support?

ops4j-issues commented 15 years ago

Stuart McCulloch commented

The patch to add knowledge of "libd" artifacts is no longer required with the switch to transitive dependencies.