felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall" <he...@ungoverned.org>
Subject Re: Felix Commons Initiative Status
Date Wed, 08 Nov 2006 04:52:04 GMT
Felix,

I think it would be great if you could offer these...perhaps Enrique can 
help us out with describing how he envisions this taking place.

For the time being, I can list your potential contributions on the wiki 
page.

-> richard

Felix Meschberger wrote:
> Hi,
>
>> If you have libraries you have turned into bundles, then you can offer
>> to contribute them.
>>
>> I was thinking lately that we could actually define a common
>> process/approach for bundling third-party libs and define a POM file
>> template for our new maven plugin for doing so. Then the whole process
>> potentially becomes really simple. Felix Commons could become a large
>> "project" of POMs where each simply has a dependency on the library it
>> wants to convert, which will then convert it automatically with the
>> plugin when built...then we just need to make the resulting JARs
>> publicly available (perhaps through OBR and Maven) and we are done.
>
> Great thing ! In fact, I could already share some of them: BeanUtils,
> Codec, Collections, Configuration, Digester,  EL, FileUpload,
> HTTPClient, IO, Lang plus CGLib.
>
> They are currently based on the older OSGi plugin, but of course I
> would migrate them to the new plugin, which is on my plate anyway.
>
> Here is for example, what I did for Commons Lang (old plugin):
>
> ------8<------
> <project>
>    <modelVersion>4.0.0</modelVersion>
>    <parent>
>        <groupId>org.apache.felix.commons</groupId>
>        <artifactId>felix-commons</artifactId>
>        <version>1</version>
>    </parent>
>
>    <artifactId>commons-lang-osgi</artifactId>
>    <version>2.0</version>
>    <packaging>osgi-bundle</packaging>
>
>    <name>Commons Lang packaged as an OSGi Bundle</name>
>    <description>OSGi Bundle of Commons Lang</description>
>
>    <dependencies>
>        <dependency>
>            <groupId>commons-lang</groupId>
>            <artifactId>commons-lang</artifactId>
>            <version>${version}</version>
>        </dependency>
>    </dependencies>
>
>    <build>
>        <plugins>
>            <plugin>
>                <groupId>org.apache.felix.plugins</groupId>
>                <artifactId>maven-osgi-plugin</artifactId>
>                <version>0.8.0-SNAPSHOT</version>
>                <extensions>true</extensions>
>                <configuration>
>                    <inlinedArtifacts>
>                        <inlinedArtifact>
>                            commons-lang
>                        </inlinedArtifact>
>                    </inlinedArtifacts>
>                    <osgiManifest>
>                        <bundleManifestVersion>2</bundleManifestVersion>
>                        <bundleName>${name}</bundleName>
>                        <bundleDescription>
>                            ${description}
>                        </bundleDescription>
>                        <bundleSymbolicName>
>                            ${groupId}.${artifactId}
>                        </bundleSymbolicName>
>                        <exportPackage>
>                            org.apache.commons.lang;
>                            org.apache.commons.lang.builder;
>                            org.apache.commons.lang.enum;
>                            org.apache.commons.lang.exception;
>                            org.apache.commons.lang.math;
>                            org.apache.commons.lang.time;
>                                version="${version}"
>                        </exportPackage>
>                    </osgiManifest>
>                </configuration>
>            </plugin>
>        </plugins>
>    </build>
> </project>
> ------8<------
>
> Regards
> Felix

Mime
View raw message