Stuart:
one more bizarreness:
1) parent pom declares
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Import-Package>*,META-INF.services</Import-Package>
<Service-Component>OSGI-INF/components/*.xml</Service-Component>
</instructions>
</configuration>
</plugin>
2) one module does not extend maven-bundle-plugin properties, and
OSGI-INF gets included in jar OK
3) but another module extends (to add custom "manifest" goal execution);
but now "bundle" goal needs extra resource spec:
<execution>
<id>default-bundle</id>
<goals>
<goal>bundle</goal>
</goals>
<configuration>
<instructions>
<Include-Resource>
OSGI-INF=target/classes/OSGI-INF,
{maven-resources}
</Include-Resource>
</instructions>
</configuration>
</execution>
is it by design?
Andrei
-------- Original Message --------
Subject: Re: Latest maven-bundle-plugin 2.4.0-SNAPSHOT
From: Stuart McCulloch <[email protected]>
To: [email protected]
Date: Thu 17 Nov 2011 03:00:43 PM CST
> On 17 Nov 2011, at 20:58, Andrei Pozolotin wrote:
>
>> Stuart:
>>
>> 0) I have maven-bundle-plugin enabled in the project;
>>
>> 1) I have other plugin that places some generated files directly in
>> {basedir}/target/classes
>>
>> 2) when I run "mvn jar:jar" these files appear in the final jar just fine;
>>
>> 3) but when I run "mvn package" (which invokes maven-bundle-plugin for
>> jarring)
>> these artifacts are not in the jar any more;
>>
>> what am I missing?
> http://felix.apache.org/site/apache-felix-bundle-plugin-faq.html#ApacheFelixBundlePluginFAQ-WhenIbuildabundle%252Csomeclassesarebuiltin%2522target%252Fclasses%2522butthey%2527renotincludedinthefinaljar.
>
>> thank you;
>>
>> Andrei
>>
>> -------- Original Message --------
>> Subject: Latest maven-bundle-plugin 2.4.0-SNAPSHOT
>> From: Stuart McCulloch <[email protected]>
>> To: [email protected]
>> Date: Wed 26 Oct 2011 06:37:50 PM CDT
>>> Hi folks, I've just deployed a new snapshot of the maven-bundle-plugin with
>>> improved parsing of the Embed-Dependency instruction.
>>>
>>> Any negative clauses (ie. those that begin with !) now reduce the
>>> dependencies available for embedding, which is much more intuitive:
>>>
>>> https://issues.apache.org/jira/browse/FELIX-3185
>>>
>>> If you're interested in a new release of this plugin, please give it a try
>>> and let me know if you see anything unusual with this update :)
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>