If you look at our felix build setup in trunk you will see that it consists of two maven pom.xml files:
pom-new-plugin.xml
pom-old-plugin.xml

And an Ant build.xml. Because of this bug we can not build all the modules in felix. (Well they build but use the wrong file extensions when they are copied into the repo. So they are never found by any further maven task looking for them.)

So... to build felix we use ant to call the build.xml that than calls the two pom.xml files :-(

Unfortunately this hack still does not work if you are running Java 1.5. Try it out.
I would be happy assist your investigation.

cheers,
John


Carlos Sanchez wrote:
I commented in MNG-1682 I wasn't able to reproduce with the sample code there

On 2/7/07, John E. Conlon <[EMAIL PROTECTED]> wrote:
Hi Carlos,

There is a subtle maven bug that you should be aware of since you are
working with the plugin.

See:
http://issues.apache.org/jira/browse/FELIX-198

It has bitten us here at felix on several occasions and because of it we
have been forced to use an Ant frontend. :-(

Sure wish it could get fixed so we could go to a consistent pom and get
rid of ant. O:-)

kind regards,
John

Carlos Sanchez (JIRA) wrote:
> [ https://issues.apache.org/jira/browse/FELIX-199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471069 ]
>
> Carlos Sanchez commented on FELIX-199:
> --------------------------------------
>
> i see the bundle goal as part of the usual build process, generating the osgi manifest for any maven project, while the recursivebundle would be a conversion step that you execute only once to convert third party libraries that won't likely change.
>
> The patch is no longer up to date as I'm trying to figure out the way to make version importing work, you can see my progress in http://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-bundle-plugin/ and comment on that.
>
>
>> Add a recursive bundle goal to maven plugin to generate osgi bundles for all dependencies >> -----------------------------------------------------------------------------------------
>>
>>                 Key: FELIX-199
>>                 URL: https://issues.apache.org/jira/browse/FELIX-199
>>             Project: Felix
>>          Issue Type: New Feature
>>          Components: Maven Plugin
>>            Reporter: Carlos Sanchez
>>         Attachments: recursivebundle.diff.txt
>>
>>
>> Running
>> mvn org.apache.felix:maven-bundle-plugin:recursivebundle
>> in a project will convert each dependency, including transitive ones, to an OSGi bundle in the target dir. It does not include dependent libraries in the bundle, so each bundle matches the corresponding jar.
>>
>
>





Reply via email to