everit-org / eosgi-maven-plugin

A Maven plugin that runs Integration Tests inside OSGi containers and collects OSGi Bundle dependencies to be able to use them inside any IDE.
Apache License 2.0
4 stars 5 forks source link

Startlevel for bundles #12

Closed adam-kicsak closed 11 years ago

adam-kicsak commented 11 years ago

If the activator of the configuration admin runs later as the activator of the transaction manager the TransactionManagerService registers a new TransactionManager because the configadmin updates the service configuration. It can happen that the persistence unit restarts and cause many exceptions. The configuration of the startlevels can solve this problem. It would be great if one could specify the default startlevel of the bundles and the startlevel for the bundles separately too in the maven plugin configuration. The configuration of the startlevels would look like the maven dependency element with a startlevel expansion:

<environment>
  <id>env1</id>
  <framework>equinox</framework>
  <startLevels default="4">
    <dependency>
      <artifactId>artifact1</artifactId>
      <groupId>group1</groupId>
      <classifier>classifier1</classifier>
      <startLevel>3</startLevel>
    </dependency>
    ...
  </startLevels>
  ...
</environment>
balazs-zsoldos commented 11 years ago

The feature is available in the 1.1.0-SNAPSHOT version. However, the configuration is slightly different. For more info see the maven usage site: http://everit.org/mvnsites/eosgi-maven-plugin/usage.html

The issue will be closed as soon as 1.1.0 comes out

balazs-zsoldos commented 11 years ago

released v.1.1.0, closing issue