Sometimes happens that the resultant Manifest.mf contains a dot as the first
of the Import-Package. Like
Can't really understand why that happen.
Follows the complete maven-bundle-plugin configuration:
This is the exact same configuration that in other, say, 3/4 war bundles
produce a Import-Package without any dot. Adding or removing the
DynamicImport instructions does not change a bit.
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.4</version>
<extensions>true</extensions>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
<configuration>
<instructions>
<_wab>src/main/webapp</_wab>
<Web-ContextPath>/artivio</Web-ContextPath>
<Bundle-Classpath>WEB-INF/classes</Bundle-Classpath>
<DynamicImport-Package>*</DynamicImport-Package>
<Export-Package></Export-Package>
<_versionpolicy>[$(version;==;$(@)),$(version;+;$(@)))</_versionpolicy>
<Import-Package>org.springframework.web,org.springframework.beans,*</Import-Package>
</instructions>
<supportedProjectTypes>
<supportedProjectType>jar</supportedProjectType>
<supportedProjectType>bundle</supportedProjectType>
<supportedProjectType>war</supportedProjectType>
</supportedProjectTypes>
</configuration>
</plugin>
On Sun, May 15, 2011 at 5:55 PM, Daniele Dellafiore
<[email protected]>wrote:
>
> On Tue, May 10, 2011 at 6:26 PM, <[email protected]> wrote:
>
>>
>>
>> Danielle,
>>
>>
>>
>> What you are trying to do is best accomplished by using services. In my
>> application, we have a database connection and JMS connections that are used
>> by multiple bundles.
>
>
> does the connections provided by that bundle always points to the same
> database/jms broker or is able to return a custom connection, that's built
> with the connection properties that the client bundle knows?
>
>
>