You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Enrique Rodriguez <en...@gmail.com> on 2007/03/02 20:26:30 UTC
[commons] Added 2nd round of wrapper POM contributions
Hi, Felix developers,
1) I committed a 2nd batch of "wrapper POMs" to Felix Commons. I
also updated the status table in Confluence [1]. These were wrapper
POMs John Conlon did for Apache Directory. They are antlr,
commons-collections, and jzlib.
2) I updated the table of "Supporting Projects" to include a column
for links to JIRA issues. There are now links to the JIRA issues for
HTTPClient and MINA. If you have an interest in OSGi support at these
projects, then JIRA gives you the option to "vote" for an issue to be
addressed. You can also "watch" the issue for changes. I'm not
encouraging "ballot stuffing" but if you want to see OSGi support
directly in 3rd party libraries, then voting for or even creating new
issues at relevant projects would be a big help. We can then update
the table.
Enrique
[1] http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Commons
Re: [commons] Added 2nd round of wrapper POM contributions
Posted by Enrique Rodriguez <en...@gmail.com>.
On 3/4/07, Tim Moloney <t....@verizon.net> wrote:
> ...
> I'll create new JIRA issues and submit separate patches for each library
> jar.
I see that. Thanks!
Enrique
Re: [commons] Added 2nd round of wrapper POM contributions
Posted by Tim Moloney <t....@verizon.net>.
Enrique Rodriguez wrote:
> On 3/3/07, Tim Moloney <t....@verizon.net> wrote:
>> I have just attached commons-1.patch to FELIX-204 if you want to commit
>> a 3rd round. :)
>
> Hi, Tim,
>
> Thanks for the contribution; it is certainly appreciated. I'll try to
> get to it this week. JIRA issues that are 1:1 with wrapper POMs and
> that had no caveats would require smaller blocks of time to
> process/commit.
>
> Enrique
>
I'll create new JIRA issues and submit separate patches for each library
jar.
Tim
Re: [commons] Added 2nd round of wrapper POM contributions
Posted by Enrique Rodriguez <en...@gmail.com>.
On 3/3/07, Tim Moloney <t....@verizon.net> wrote:
> I have just attached commons-1.patch to FELIX-204 if you want to commit
> a 3rd round. :)
Hi, Tim,
Thanks for the contribution; it is certainly appreciated. I'll try to
get to it this week. JIRA issues that are 1:1 with wrapper POMs and
that had no caveats would require smaller blocks of time to
process/commit.
Enrique
Re: [commons] Added 2nd round of wrapper POM contributions
Posted by Tim Moloney <t....@verizon.net>.
I have just attached commons-1.patch to FELIX-204 if you want to commit
a 3rd round. :)
This patch includes the bundles required for using commons-logging.
- activation
- avalon-framework
- commons-logging
- jms
- jmxtools
- jta
- log4j
- logkit
- mail
- servlet-api
- xercesImpl
- xml-resolver
Note 1: I have not fully integrated jms, jmxtools, and jta yet since
they are Sun jars that have to be downloaded separately. If anyone has
any suggestions on how these jars can be fully integrated or replaced, I
would appreciate them.
Note 2: activation, avalon-framework, commons-logging, mail, and
xercesImpl require a patch to bnd (attached) for it to find resouces
from jars in the classpath. I have already sent the patch to Peter
Kriens for consideration.
Tim
Enrique Rodriguez wrote:
> Hi, Felix developers,
>
> 1) I committed a 2nd batch of "wrapper POMs" to Felix Commons. I
> also updated the status table in Confluence [1]. These were wrapper
> POMs John Conlon did for Apache Directory. They are antlr,
> commons-collections, and jzlib.
>
> 2) I updated the table of "Supporting Projects" to include a column
> for links to JIRA issues. There are now links to the JIRA issues for
> HTTPClient and MINA. If you have an interest in OSGi support at these
> projects, then JIRA gives you the option to "vote" for an issue to be
> addressed. You can also "watch" the issue for changes. I'm not
> encouraging "ballot stuffing" but if you want to see OSGi support
> directly in 3rd party libraries, then voting for or even creating new
> issues at relevant projects would be a big help. We can then update
> the table.
>
> Enrique
>
> [1]
> http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Commons
>
Re: [commons] Added 2nd round of wrapper POM contributions
Posted by "Richard S. Hall" <he...@ungoverned.org>.
This is finally starting to look good...thanks a lot.
-> richard
Enrique Rodriguez wrote:
> Hi, Felix developers,
>
> 1) I committed a 2nd batch of "wrapper POMs" to Felix Commons. I
> also updated the status table in Confluence [1]. These were wrapper
> POMs John Conlon did for Apache Directory. They are antlr,
> commons-collections, and jzlib.
>
> 2) I updated the table of "Supporting Projects" to include a column
> for links to JIRA issues. There are now links to the JIRA issues for
> HTTPClient and MINA. If you have an interest in OSGi support at these
> projects, then JIRA gives you the option to "vote" for an issue to be
> addressed. You can also "watch" the issue for changes. I'm not
> encouraging "ballot stuffing" but if you want to see OSGi support
> directly in 3rd party libraries, then voting for or even creating new
> issues at relevant projects would be a big help. We can then update
> the table.
>
> Enrique
>
> [1]
> http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Commons
Re: [commons] Added 2nd round of wrapper POM contributions
Posted by "Richard S. Hall" <he...@ungoverned.org>.
On Mar 6, 2007, at 7:45 PM, Tim Moloney wrote:
> Richard S. Hall wrote:
>> On Mar 6, 2007, at 6:37 PM, Tim Moloney wrote:
>>
>>>
>>> Here's an updated template pom file.
>>>
>>> Tim
>>>
>>> <project
>>> xmlns="http://maven.apache.org/POM/4.0.0"
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://
>>> maven.apache.org/maven-v4_0_0.xsd">
>>> <modelVersion>4.0.0</modelVersion>
>>>
>>> <parent>
>>> <groupId>org.apache.felix.commons</groupId>
>>> <artifactId>build</artifactId>
>>> <version>0.9.0-incubator-SNAPSHOT</version>
>>> </parent>
>>>
>>> <properties>
>>> <shortName>FOO</shortName>
>>> </properties>
>>>
>>> <groupId>org.apache.felix.commons</groupId>
>>> <artifactId>${pom.groupId}.${shortName}</artifactId>
>>> <version>x.y.z</version>
>>> <packaging>bundle</packaging>
>>>
>>> <name>${shortName} bundle</name>
>>> <description>This bundle simply wraps ${shortName}-$
>>> {pom.version}.jar.</description>
>>>
>>> <organization>
>>> <name>Apache Felix Project</name>
>>> <url>http://incubator.apache.org/felix/</url>
>>> </organization>
>>>
>>> <dependencies>
>>> <dependency>
>>> <groupId>FOO-groupId</groupId>
>>> <artifactId>${shortName}</artifactId>
>>> <version>${pom.version}</version>
>>> </dependency>
>>> </dependencies>
>>
>> I guess I am confused about this dependency template; this seems
>> to imply that the bundle will have dependencies on itself.
>> Shouldn't the dependencies template look something like this:
>>
>> <dependencies>
>> <dependency>
>> <groupId>BAR-groupId</groupId>
>> <artifactId>BAR-artifactId</artifactId>
>> <version>BAR-version</version>
>> </dependency>
>> </dependencies>
>>
>> ?
>>
>> Or am I missing the point?
>
> I'm still a bit fuzzy on all the details of dependency handling but
> here's what I think happens.
>
> There needs to be some sort of dependency for maven to find the jar
> to wrap at compile time. The maven-bundle-plugin (bnd) then
> creates the manifest entries that define any runtime dependencies.
> I think that since maven-bundle-plugin (bnd) is creating the
> manifest (rather than maven-jar-plugin), the maven dependency
> elements don't apply at runtime. Having said all that, we could
> set the scope to compile in the dependency. I think.
Oh, yeah, yeah. I wasn't thinking. Yes, this is the dependency on the
JAR you are going to wrap! Duh! :-)
>
>>> <build>
>>> <plugins>
>>> <plugin>
>>> <groupId>org.apache.felix</groupId>
>>> <artifactId>maven-bundle-plugin</artifactId>
>>> <extensions>true</extensions>
>>> <configuration>
>>> <instructions>
>>> <Bundle-SymbolicName>${pom.artifactId}</
>>> Bundle-SymbolicName>
>>> <Export-Package>FOO</Export-Package>
>>> <Private-Package>FOO.impl</Private-Package>
>>> <!--
>>> Uncomment this section after bnd-find-include-resource-in-
>>> classpath.patch from FELIX-204 has
>>> been applied to bnd.
>>> <Include-Resource>@${shortName}-$
>>> {pom.version}.jar!/META-INF/LICENSE.txt</Include-Resource>
>>> -->
>>
>> Also, what is the point of this?
>
> This tells maven-bundle-plugin (bnd) to include the specified
> resource in the bundle. There is no runtime impact for resources
> like license files, etc. However, there are other bundles that
> need specific resources included (e.g., mail http://
> issues.apache.org/jira/secure/attachment/12352679/pom.xml).
> Currently bnd will only find resources in a jar file if that jar
> file is in the root of the project directory. The patch that I
> mentioned changes bnd to find jar files in the class path so that
> the maven-build-plugin can use the jar file that is in the local
> maven repository.
Ok, got it!
Thanks.
-> richard
>
>> -> richard
>>
>>> </instructions>
>>> </configuration>
>>> </plugin>
>>> </plugins>
>>> </build>
>>>
>>> </project>
>>
>>
>
Re: [commons] Added 2nd round of wrapper POM contributions
Posted by Tim Moloney <t....@verizon.net>.
Richard S. Hall wrote:
> On Mar 6, 2007, at 6:37 PM, Tim Moloney wrote:
>
>>
>> Here's an updated template pom file.
>>
>> Tim
>>
>> <project
>> xmlns="http://maven.apache.org/POM/4.0.0"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/maven-v4_0_0.xsd">
>> <modelVersion>4.0.0</modelVersion>
>>
>> <parent>
>> <groupId>org.apache.felix.commons</groupId>
>> <artifactId>build</artifactId>
>> <version>0.9.0-incubator-SNAPSHOT</version>
>> </parent>
>>
>> <properties>
>> <shortName>FOO</shortName>
>> </properties>
>>
>> <groupId>org.apache.felix.commons</groupId>
>> <artifactId>${pom.groupId}.${shortName}</artifactId>
>> <version>x.y.z</version>
>> <packaging>bundle</packaging>
>>
>> <name>${shortName} bundle</name>
>> <description>This bundle simply wraps
>> ${shortName}-${pom.version}.jar.</description>
>>
>> <organization>
>> <name>Apache Felix Project</name>
>> <url>http://incubator.apache.org/felix/</url>
>> </organization>
>>
>> <dependencies>
>> <dependency>
>> <groupId>FOO-groupId</groupId>
>> <artifactId>${shortName}</artifactId>
>> <version>${pom.version}</version>
>> </dependency>
>> </dependencies>
>
> I guess I am confused about this dependency template; this seems to
> imply that the bundle will have dependencies on itself. Shouldn't the
> dependencies template look something like this:
>
> <dependencies>
> <dependency>
> <groupId>BAR-groupId</groupId>
> <artifactId>BAR-artifactId</artifactId>
> <version>BAR-version</version>
> </dependency>
> </dependencies>
>
> ?
>
> Or am I missing the point?
I'm still a bit fuzzy on all the details of dependency handling but
here's what I think happens.
There needs to be some sort of dependency for maven to find the jar to
wrap at compile time. The maven-bundle-plugin (bnd) then creates the
manifest entries that define any runtime dependencies. I think that
since maven-bundle-plugin (bnd) is creating the manifest (rather than
maven-jar-plugin), the maven dependency elements don't apply at
runtime. Having said all that, we could set the scope to compile in the
dependency. I think.
>> <build>
>> <plugins>
>> <plugin>
>> <groupId>org.apache.felix</groupId>
>> <artifactId>maven-bundle-plugin</artifactId>
>> <extensions>true</extensions>
>> <configuration>
>> <instructions>
>>
>> <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
>> <Export-Package>FOO</Export-Package>
>> <Private-Package>FOO.impl</Private-Package>
>> <!--
>> Uncomment this section after
>> bnd-find-include-resource-in-classpath.patch from FELIX-204 has
>> been applied to bnd.
>>
>> <Include-Resource>@${shortName}-${pom.version}.jar!/META-INF/LICENSE.txt</Include-Resource>
>>
>> -->
>
> Also, what is the point of this?
This tells maven-bundle-plugin (bnd) to include the specified resource
in the bundle. There is no runtime impact for resources like license
files, etc. However, there are other bundles that need specific
resources included (e.g., mail
http://issues.apache.org/jira/secure/attachment/12352679/pom.xml).
Currently bnd will only find resources in a jar file if that jar file is
in the root of the project directory. The patch that I mentioned
changes bnd to find jar files in the class path so that the
maven-build-plugin can use the jar file that is in the local maven
repository.
> -> richard
>
>> </instructions>
>> </configuration>
>> </plugin>
>> </plugins>
>> </build>
>>
>> </project>
>
>
Re: [commons] Added 2nd round of wrapper POM contributions
Posted by "Richard S. Hall" <he...@ungoverned.org>.
On Mar 6, 2007, at 6:37 PM, Tim Moloney wrote:
>
> Here's an updated template pom file.
>
> Tim
>
> <project
> xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> <modelVersion>4.0.0</modelVersion>
>
> <parent>
> <groupId>org.apache.felix.commons</groupId>
> <artifactId>build</artifactId>
> <version>0.9.0-incubator-SNAPSHOT</version>
> </parent>
>
> <properties>
> <shortName>FOO</shortName>
> </properties>
>
> <groupId>org.apache.felix.commons</groupId>
> <artifactId>${pom.groupId}.${shortName}</artifactId>
> <version>x.y.z</version>
> <packaging>bundle</packaging>
>
> <name>${shortName} bundle</name>
> <description>This bundle simply wraps
> ${shortName}-${pom.version}.jar.</description>
>
> <organization>
> <name>Apache Felix Project</name>
> <url>http://incubator.apache.org/felix/</url>
> </organization>
>
> <dependencies>
> <dependency>
> <groupId>FOO-groupId</groupId>
> <artifactId>${shortName}</artifactId>
> <version>${pom.version}</version>
> </dependency>
> </dependencies>
I guess I am confused about this dependency template; this seems to
imply that the bundle will have dependencies on itself. Shouldn't the
dependencies template look something like this:
<dependencies>
<dependency>
<groupId>BAR-groupId</groupId>
<artifactId>BAR-artifactId</artifactId>
<version>BAR-version</version>
</dependency>
</dependencies>
?
Or am I missing the point?
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> <extensions>true</extensions>
> <configuration>
> <instructions>
>
> <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
> <Export-Package>FOO</Export-Package>
> <Private-Package>FOO.impl</Private-Package>
> <!--
> Uncomment this section after
> bnd-find-include-resource-in-classpath.patch from FELIX-204 has
> been applied to bnd.
>
> <Include-Resource>@${shortName}-${pom.version}.jar!/META-INF/
> LICENSE.txt</Include-Resource>
> -->
Also, what is the point of this?
-> richard
> </instructions>
> </configuration>
> </plugin>
> </plugins>
> </build>
>
> </project>
Re: [commons] Added 2nd round of wrapper POM contributions
Posted by Tim Moloney <t....@verizon.net>.
Richard S. Hall wrote:
>
> On Mar 5, 2007, at 9:15 PM, Stuart McCulloch wrote:
>
>> On 06/03/07, Tim Moloney <t....@verizon.net> wrote:
>>> Is there a way to define a custom variable (e.g. shortName) in pom.xml?
>>
>> Yes, for example:
>>
>> <properties>
>> <shortName>FOO</shortName>
>> </properties>
>>
>> then you can use ${shortName} in your pom.xml
>
> If this works, then I guess I would be in favor of using this approach
> and keeping JAR file names long.
Here's an updated template pom file.
Tim
Re: [commons] Added 2nd round of wrapper POM contributions
Posted by Stuart McCulloch <mc...@gmail.com>.
On 06/03/07, Richard S. Hall <he...@ungoverned.org> wrote:
>
> On Mar 5, 2007, at 9:15 PM, Stuart McCulloch wrote:
>
> > - btw, if we come up with
> > a standard template pom.xml for felix commons then it would be
> > worthwhile
> > defining a maven archetype (I use one locally for creating wrapped
> > bundles).
>
> Really? I find trying to remember the super long command line for
> instantiating an archetype more difficult than just editing a
> template POM... ;-)
>
true :) I use a shell script to avoid all the typing ... come to think of it,
it would probably be simpler to use awk to instantiate the template!
Re: [commons] Added 2nd round of wrapper POM contributions
Posted by "Richard S. Hall" <he...@ungoverned.org>.
On Mar 5, 2007, at 9:15 PM, Stuart McCulloch wrote:
> On 06/03/07, Tim Moloney <t....@verizon.net> wrote:
>> Is there a way to define a custom variable (e.g. shortName) in
>> pom.xml?
>
> Yes, for example:
>
> <properties>
> <shortName>FOO</shortName>
> </properties>
>
> then you can use ${shortName} in your pom.xml
If this works, then I guess I would be in favor of using this
approach and keeping JAR file names long.
> - btw, if we come up with
> a standard template pom.xml for felix commons then it would be
> worthwhile
> defining a maven archetype (I use one locally for creating wrapped
> bundles).
Really? I find trying to remember the super long command line for
instantiating an archetype more difficult than just editing a
template POM... ;-)
-> richard
Re: [commons] Added 2nd round of wrapper POM contributions
Posted by Stuart McCulloch <mc...@gmail.com>.
On 06/03/07, Tim Moloney <t....@verizon.net> wrote:
> Is there a way to define a custom variable (e.g. shortName) in pom.xml?
Yes, for example:
<properties>
<shortName>FOO</shortName>
</properties>
then you can use ${shortName} in your pom.xml - btw, if we come up with
a standard template pom.xml for felix commons then it would be worthwhile
defining a maven archetype (I use one locally for creating wrapped bundles).
Cheers, Stuart
Re: [commons] Added 2nd round of wrapper POM contributions
Posted by Enrique Rodriguez <en...@gmail.com>.
On 3/5/07, Tim Moloney <t....@verizon.net> wrote:
> ...
> Consistency is a strong argument. I can go either way. Let the debate
> begin. :)
Regardless of which way the naming convention goes, don't worry about
resubmitting every POM. I'm happy to have the issues separate in JIRA
and I expect to have to touch-up all the POMs anyway, as this
initiative progresses.
Enrique
Re: [commons] Added 2nd round of wrapper POM contributions
Posted by Tim Moloney <t....@verizon.net>.
Richard S. Hall wrote:
> On Mar 5, 2007, at 6:52 PM, Tim Moloney wrote:
>
>> Here is the reasoning behind my decision.
>>
>> Making it <artifactId>FOO</artifactId>:
>> - allows us to use ${pom.artifactId} in many place in the pom.xml
>> file, reducing the number of manual changes from the template pom.xml
>> file
>> - allows us to not specify <Bundle-SymbolicName> in the bnd
>> <instructions> section, the bnd default works
>> - The path in the maven repository is
>> ~/.m2/repository/org/apache/felix/commons/FOO/version/FOO-version.jar
>> which is still unique and far less wordy than
>> ~/.m2/repository/org/apache/felix/commons/FOO/version/org.apache.felix.commons.FOO-version.jar
>>
>
> Well, I don't have a significant argument against, other than:
>
> It is different that how we do Felix subprojects; at the time people
> felt that long JAR names was a good idea because it would lessen the
> possibility of JAR file name collisions (not everyone will use maven).
>
> In the end, I can go either way, but I do dislike inconsistency.
> Should we re-consider how we name our subproject JARs too? I dislike
> the fact that we cannot use the plugin defaults too. :-)
>
> -> richard
Consistency is a strong argument. I can go either way. Let the debate
begin. :)
Is there a way to define a custom variable (e.g. shortName) in pom.xml?
If so, we could do something like the following.
:
:
<groupId>org.apache.felix.commons</groupId>
<shortName>FOO</shortName>
<artifactId>${pom.groupId}.${pom.shortName}</artifactId>
<name>${pom.shortName} bundle</name>
<description>
This bundle simply wraps ${pom.shortName}-${pom.version}.jar.
</description>
:
:
<Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
:
:
Tim
Re: [commons] Added 2nd round of wrapper POM contributions
Posted by "Richard S. Hall" <he...@ungoverned.org>.
On Mar 5, 2007, at 6:52 PM, Tim Moloney wrote:
> Here is the reasoning behind my decision.
>
> Making it <artifactId>FOO</artifactId>:
> - allows us to use ${pom.artifactId} in many place in the pom.xml
> file, reducing the number of manual changes from the template pom.xml
> file
> - allows us to not specify <Bundle-SymbolicName> in the bnd
> <instructions> section, the bnd default works
> - The path in the maven repository is
> ~/.m2/repository/org/apache/felix/commons/FOO/version/FOO-version.jar
> which is still unique and far less wordy than
> ~/.m2/repository/org/apache/felix/commons/FOO/version/
> org.apache.felix.commons.FOO-version.jar
Well, I don't have a significant argument against, other than:
It is different that how we do Felix subprojects; at the time people
felt that long JAR names was a good idea because it would lessen the
possibility of JAR file name collisions (not everyone will use maven).
In the end, I can go either way, but I do dislike inconsistency. Should
we re-consider how we name our subproject JARs too? I dislike the fact
that we cannot use the plugin defaults too. :-)
-> richard
>
>
> Richard S. Hall wrote:
>> On Mar 5, 2007, at 6:23 PM, Tim Moloney wrote:
>>
>>> I have updated the example pom.xml file and attached it.
>>> <project
>>> xmlns="http://maven.apache.org/POM/4.0.0"
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>> http://maven.apache.org/maven-v4_0_0.xsd">
>>> <modelVersion>4.0.0</modelVersion>
>>>
>>> <parent>
>>> <groupId>org.apache.felix.commons</groupId>
>>> <artifactId>build</artifactId>
>>> <version>0.9.0-incubator-SNAPSHOT</version>
>>> </parent>
>>>
>>> <groupId>org.apache.felix.commons</groupId>
>>> <artifactId>FOO</artifactId>
>>
>> This wouldn't be 100% correct, would it? Wouldn't the resulting JAR
>> name be FOO-version? I think artifactId should be:
>>
>> <artifactId>${pom.groupId}.FOO</artifactId>
>>
>> Correct?
>>
>> -> richard
>>
>>> <version>x.y.z</version>
>>> <packaging>bundle</packaging>
>>>
>>> <name>${pom.artifactId} bundle</name>
>>> <description>
>>> This bundle simply wraps
>>> ${pom.artifactId}-${pom.version}.jar.
>>> </description>
>>>
>>> <organization>
>>> <name>Apache Felix Project</name>
>>> <url>http://incubator.apache.org/felix/</url>
>>> </organization>
>>>
>>> <dependencies>
>>> <dependency>
>>> <groupId>FOO-groupId</groupId>
>>> <artifactId>${pom.artifactId}</artifactId>
>>> <version>${pom.version}</version>
>>> </dependency>
>>> </dependencies>
>>>
>>> <build>
>>> <plugins>
>>> <plugin>
>>> <groupId>org.apache.felix</groupId>
>>> <artifactId>maven-bundle-plugin</artifactId>
>>> <extensions>true</extensions>
>>> <configuration>
>>> <instructions>
>>> <Export-Package>FOO</Export-Package>
>>> <Private-Package>FOO.impl</Private-Package>
>>> <!--
>>> Uncomment this section after
>>> bnd-find-include-resource-in-classpath.patch from FELIX-204 has
>>> been applied to bnd.
>>> <Include-Resource>
>>>
>>> @${pom.artifactID}-${pom.version}.jar!/META-INF/LICENSE.txt
>>> </Include-Resource>
>>> -->
>>> </instructions>
>>> </configuration>
>>> </plugin>
>>> </plugins>
>>> </build>
>>>
>>> </project>
>>
>>
>
Re: [commons] Added 2nd round of wrapper POM contributions
Posted by Tim Moloney <t....@verizon.net>.
Here is the reasoning behind my decision.
Making it <artifactId>FOO</artifactId>:
- allows us to use ${pom.artifactId} in many place in the pom.xml file,
reducing the number of manual changes from the template pom.xml file
- allows us to not specify <Bundle-SymbolicName> in the bnd
<instructions> section, the bnd default works
- The path in the maven repository is
~/.m2/repository/org/apache/felix/commons/FOO/version/FOO-version.jar
which is still unique and far less wordy than
~/.m2/repository/org/apache/felix/commons/FOO/version/org.apache.felix.commons.FOO-version.jar
Richard S. Hall wrote:
> On Mar 5, 2007, at 6:23 PM, Tim Moloney wrote:
>
>> I have updated the example pom.xml file and attached it.
>> <project
>> xmlns="http://maven.apache.org/POM/4.0.0"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/maven-v4_0_0.xsd">
>> <modelVersion>4.0.0</modelVersion>
>>
>> <parent>
>> <groupId>org.apache.felix.commons</groupId>
>> <artifactId>build</artifactId>
>> <version>0.9.0-incubator-SNAPSHOT</version>
>> </parent>
>>
>> <groupId>org.apache.felix.commons</groupId>
>> <artifactId>FOO</artifactId>
>
> This wouldn't be 100% correct, would it? Wouldn't the resulting JAR
> name be FOO-version? I think artifactId should be:
>
> <artifactId>${pom.groupId}.FOO</artifactId>
>
> Correct?
>
> -> richard
>
>> <version>x.y.z</version>
>> <packaging>bundle</packaging>
>>
>> <name>${pom.artifactId} bundle</name>
>> <description>
>> This bundle simply wraps ${pom.artifactId}-${pom.version}.jar.
>> </description>
>>
>> <organization>
>> <name>Apache Felix Project</name>
>> <url>http://incubator.apache.org/felix/</url>
>> </organization>
>>
>> <dependencies>
>> <dependency>
>> <groupId>FOO-groupId</groupId>
>> <artifactId>${pom.artifactId}</artifactId>
>> <version>${pom.version}</version>
>> </dependency>
>> </dependencies>
>>
>> <build>
>> <plugins>
>> <plugin>
>> <groupId>org.apache.felix</groupId>
>> <artifactId>maven-bundle-plugin</artifactId>
>> <extensions>true</extensions>
>> <configuration>
>> <instructions>
>> <Export-Package>FOO</Export-Package>
>> <Private-Package>FOO.impl</Private-Package>
>> <!--
>> Uncomment this section after
>> bnd-find-include-resource-in-classpath.patch from FELIX-204 has
>> been applied to bnd.
>> <Include-Resource>
>>
>> @${pom.artifactID}-${pom.version}.jar!/META-INF/LICENSE.txt
>> </Include-Resource>
>> -->
>> </instructions>
>> </configuration>
>> </plugin>
>> </plugins>
>> </build>
>>
>> </project>
>
>
Re: [commons] Added 2nd round of wrapper POM contributions
Posted by "Richard S. Hall" <he...@ungoverned.org>.
On Mar 5, 2007, at 6:23 PM, Tim Moloney wrote:
> I have updated the example pom.xml file and attached it.
> <project
> xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> <modelVersion>4.0.0</modelVersion>
>
> <parent>
> <groupId>org.apache.felix.commons</groupId>
> <artifactId>build</artifactId>
> <version>0.9.0-incubator-SNAPSHOT</version>
> </parent>
>
> <groupId>org.apache.felix.commons</groupId>
> <artifactId>FOO</artifactId>
This wouldn't be 100% correct, would it? Wouldn't the resulting JAR
name be FOO-version? I think artifactId should be:
<artifactId>${pom.groupId}.FOO</artifactId>
Correct?
-> richard
> <version>x.y.z</version>
> <packaging>bundle</packaging>
>
> <name>${pom.artifactId} bundle</name>
> <description>
> This bundle simply wraps ${pom.artifactId}-${pom.version}.jar.
> </description>
>
> <organization>
> <name>Apache Felix Project</name>
> <url>http://incubator.apache.org/felix/</url>
> </organization>
>
> <dependencies>
> <dependency>
> <groupId>FOO-groupId</groupId>
> <artifactId>${pom.artifactId}</artifactId>
> <version>${pom.version}</version>
> </dependency>
> </dependencies>
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> <extensions>true</extensions>
> <configuration>
> <instructions>
> <Export-Package>FOO</Export-Package>
> <Private-Package>FOO.impl</Private-Package>
> <!--
> Uncomment this section after
> bnd-find-include-resource-in-classpath.patch from FELIX-204 has
> been applied to bnd.
> <Include-Resource>
>
> @${pom.artifactID}-${pom.version}.jar!/META-INF/LICENSE.txt
> </Include-Resource>
> -->
> </instructions>
> </configuration>
> </plugin>
> </plugins>
> </build>
>
> </project>
Re: [commons] Added 2nd round of wrapper POM contributions
Posted by Tim Moloney <t....@verizon.net>.
I have updated the example pom.xml file and attached it.
Tim Moloney wrote:
> After using the wrapped bundles a while and thinking about it a bit, I
> agree.
>
> I probably led us astray when I posted the first example pom. Sorry.
>
>
> Richard S. Hall wrote:
>> So, since there is all of this activity, I decided to take a closer
>> look at what was going on. :-)
>>
>> The only question that I have is why do we append "-osgi" to the
>> artifact name? Is that just so the resulting artifact name doesn't
>> conflict with the official release?
>>
>> If so, why don't we name them using the same approach as Felix
>> subprojects, where the artifact name is:
>>
>> ${groupId}.${subproject}
>>
>> Thus, we would end up with names like:
>>
>> org.apache.felix.commons.commons-collections
>>
>> It seems more consistent with the way we do things with Felix
>> subprojects, of course, it creates long JAR file names. But we had
>> this debate with Felix subprojects before and it seemed that we
>> decided on long JAR file names...
>>
>> Just a thought, anyone else?
>>
>> -> richard
>>
>>
>> Enrique Rodriguez wrote:
>>> Hi, Felix developers,
>>>
>>> 1) I committed a 2nd batch of "wrapper POMs" to Felix Commons. I
>>> also updated the status table in Confluence [1]. These were wrapper
>>> POMs John Conlon did for Apache Directory. They are antlr,
>>> commons-collections, and jzlib.
>>>
>>> 2) I updated the table of "Supporting Projects" to include a column
>>> for links to JIRA issues. There are now links to the JIRA issues for
>>> HTTPClient and MINA. If you have an interest in OSGi support at these
>>> projects, then JIRA gives you the option to "vote" for an issue to be
>>> addressed. You can also "watch" the issue for changes. I'm not
>>> encouraging "ballot stuffing" but if you want to see OSGi support
>>> directly in 3rd party libraries, then voting for or even creating new
>>> issues at relevant projects would be a big help. We can then update
>>> the table.
>>>
>>> Enrique
>>>
>>> [1]
>>> http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Commons
>>
>
>
Re: [commons] Added 2nd round of wrapper POM contributions
Posted by Tim Moloney <t....@verizon.net>.
After using the wrapped bundles a while and thinking about it a bit, I
agree.
I probably led us astray when I posted the first example pom. Sorry.
Richard S. Hall wrote:
> So, since there is all of this activity, I decided to take a closer
> look at what was going on. :-)
>
> The only question that I have is why do we append "-osgi" to the
> artifact name? Is that just so the resulting artifact name doesn't
> conflict with the official release?
>
> If so, why don't we name them using the same approach as Felix
> subprojects, where the artifact name is:
>
> ${groupId}.${subproject}
>
> Thus, we would end up with names like:
>
> org.apache.felix.commons.commons-collections
>
> It seems more consistent with the way we do things with Felix
> subprojects, of course, it creates long JAR file names. But we had
> this debate with Felix subprojects before and it seemed that we
> decided on long JAR file names...
>
> Just a thought, anyone else?
>
> -> richard
>
>
> Enrique Rodriguez wrote:
>> Hi, Felix developers,
>>
>> 1) I committed a 2nd batch of "wrapper POMs" to Felix Commons. I
>> also updated the status table in Confluence [1]. These were wrapper
>> POMs John Conlon did for Apache Directory. They are antlr,
>> commons-collections, and jzlib.
>>
>> 2) I updated the table of "Supporting Projects" to include a column
>> for links to JIRA issues. There are now links to the JIRA issues for
>> HTTPClient and MINA. If you have an interest in OSGi support at these
>> projects, then JIRA gives you the option to "vote" for an issue to be
>> addressed. You can also "watch" the issue for changes. I'm not
>> encouraging "ballot stuffing" but if you want to see OSGi support
>> directly in 3rd party libraries, then voting for or even creating new
>> issues at relevant projects would be a big help. We can then update
>> the table.
>>
>> Enrique
>>
>> [1]
>> http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Commons
>
Re: [commons] Added 2nd round of wrapper POM contributions
Posted by "Richard S. Hall" <he...@ungoverned.org>.
So, since there is all of this activity, I decided to take a closer look
at what was going on. :-)
The only question that I have is why do we append "-osgi" to the
artifact name? Is that just so the resulting artifact name doesn't
conflict with the official release?
If so, why don't we name them using the same approach as Felix
subprojects, where the artifact name is:
${groupId}.${subproject}
Thus, we would end up with names like:
org.apache.felix.commons.commons-collections
It seems more consistent with the way we do things with Felix
subprojects, of course, it creates long JAR file names. But we had this
debate with Felix subprojects before and it seemed that we decided on
long JAR file names...
Just a thought, anyone else?
-> richard
Enrique Rodriguez wrote:
> Hi, Felix developers,
>
> 1) I committed a 2nd batch of "wrapper POMs" to Felix Commons. I
> also updated the status table in Confluence [1]. These were wrapper
> POMs John Conlon did for Apache Directory. They are antlr,
> commons-collections, and jzlib.
>
> 2) I updated the table of "Supporting Projects" to include a column
> for links to JIRA issues. There are now links to the JIRA issues for
> HTTPClient and MINA. If you have an interest in OSGi support at these
> projects, then JIRA gives you the option to "vote" for an issue to be
> addressed. You can also "watch" the issue for changes. I'm not
> encouraging "ballot stuffing" but if you want to see OSGi support
> directly in 3rd party libraries, then voting for or even creating new
> issues at relevant projects would be a big help. We can then update
> the table.
>
> Enrique
>
> [1]
> http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Commons