[jboss-jira] [JBoss JIRA] Created: (AS7-1134) OSGi XService intergration cannot be used with Maven snapshots

David Bosschaert (JIRA) jira-events at lists.jboss.org
Tue Jun 28 12:13:23 EDT 2011


OSGi XService intergration cannot be used with Maven snapshots
--------------------------------------------------------------

                 Key: AS7-1134
                 URL: https://issues.jboss.org/browse/AS7-1134
             Project: Application Server 7
          Issue Type: Feature Request
          Components: OSGi
            Reporter: David Bosschaert


When using OSGi XServices, for instance to invoke an OSGi service from a Servlet, the user needs to add an extra dependency to the manifest in the Dependencies header. For instance the following Maven instruction in the maven-war-plugin can be used to do this:
  <Dependencies>org.osgi.core,org.jboss.modules,org.jboss.logging,deployment.jboss-as-web-osgi-api-bundle:${project.version}</Dependencies>

This works fine for release versions, such as 7.0.0, however it causes issues with SNAPSHOT versions as 7.0.0-SNAPSHOT gets translated into 7.0.0.SNAPSHOT on the OSGi level while the MSC dependency mechanism is looking for 7.0.0-SNAPSHOT and hence can't find it.

For more context see the following console output:
17:03:32,149 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-11) Install bundle: jboss-as-web-osgi-api-bundle:7.0.0.SNAPSHOT
17:03:32,153 INFO  [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-15) Bundle started: jboss-as-web-osgi-api-bundle:7.0.0.SNAPSHOT
17:03:32,180 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployed "jboss-as-web-osgi-api-bundle-7.0.0-SNAPSHOT.jar"
17:04:17,253 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-11) Starting deployment of "jboss-as-web-osgi-war.war"
17:04:17,287 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "jboss-as-web-osgi-war.war" was rolled back with failure message {"Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"jboss-as-web-osgi-war.war\".CONFIGURE_MODULE"]}
17:04:17,287 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) Service status report
   New missing/unsatisfied dependencies:
      service jboss.module.information.service."deployment.jboss-as-web-osgi-api-bundle"."7.0.0-SNAPSHOT" (missing)


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list