JBoss Community Archive (Read Only)

JBoss OSGi

Building from Source

All components used in the JBoss OSGi project have their source code hosted at github and are built using Maven 3.

Clone from GitHub

The following command clones the umbrella project into your workspace:

git clone git://github.com/jbosgi/jbosgi.git

Configuring Maven to use the JBoss Repository

To use dependencies from the jboss.org repository the following snippet should be included in settings.xml

<settings>
  <profiles>
    <profile>
      <id>jboss-public-repository</id>
      <repositories>
        <repository>
          <id>jboss-public-repository-group</id>
          <name>JBoss Public Maven Repository Group</name>
          <url>https://repository.jboss.org/nexus/content/groups/public/</url>
          <layout>default</layout>
          <releases>
            <enabled>true</enabled>
            <updatePolicy>never</updatePolicy>
          </releases>
          <snapshots>
            <enabled>true</enabled>
            <updatePolicy>never</updatePolicy>
          </snapshots>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <id>jboss-public-repository-group</id>
          <name>JBoss Public Maven Repository Group</name>
          <url>https://repository.jboss.org/nexus/content/groups/public/</url>
          <layout>default</layout>
          <releases>
            <enabled>true</enabled>
            <updatePolicy>never</updatePolicy>
          </releases>
          <snapshots>
            <enabled>true</enabled>
            <updatePolicy>never</updatePolicy>
          </snapshots>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>

  <activeProfiles>
    <activeProfile>jboss-public-repository</activeProfile>
  </activeProfiles>

</settings>

For more details, see Configuring Maven

Build with Maven

The command below builds all modules and runs the embedded suite.

$ mvn clean install
...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] JBossOSGi ......................................... SUCCESS [0.801s]
[INFO] JBossOSGi Testsuite ............................... SUCCESS [0.201s]
[INFO] JBossOSGi Testsuite Examples ...................... SUCCESS [15.912s]
[INFO] JBossOSGi Testsuite Functional .................... SUCCESS [4.984s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22.504s
[INFO] Finished at: Mon Jul 29 10:49:01 CEST 2013
[INFO] Final Memory: 26M/201M
[INFO] ------------------------------------------------------------------------

Build/Test the WildFly OSGi subsystem

To build the OSGi subsystem specify the target container like this

$ mvn -Dtarget.container=wildfly800 clean install
...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] JBossOSGi ......................................... SUCCESS [0.386s]
[INFO] JBossOSGi WildFly ................................. SUCCESS [0.016s]
[INFO] JBossOSGi WildFly Subsystem ....................... SUCCESS [11.367s]
[INFO] JBossOSGi WildFly Integration ..................... SUCCESS [0.013s]
[INFO] JBossOSGi WildFly Integration: Configadmin ........ SUCCESS [3.443s]
[INFO] JBossOSGi WildFly Integration: Http ............... SUCCESS [1.308s]
[INFO] JBossOSGi WildFly Integration: JMX ................ SUCCESS [0.150s]
[INFO] JBossOSGi WildFly Integration: JPA ................ SUCCESS [1.445s]
[INFO] JBossOSGi WildFly Integration: JTA ................ SUCCESS [0.159s]
[INFO] JBossOSGi WildFly Integration: Naming ............. SUCCESS [0.243s]
[INFO] JBossOSGi WildFly Integration: WebApp ............. SUCCESS [0.359s]
[INFO] JBossOSGi WildFly Build ........................... SUCCESS [17.692s]
[INFO] JBossOSGi Testsuite ............................... SUCCESS [1.388s]
[INFO] JBossOSGi Testsuite Examples ...................... SUCCESS [37.201s]
[INFO] JBossOSGi Testsuite Functional .................... SUCCESS [14.247s]
[INFO] JBossOSGi Testsuite Integration ................... SUCCESS [51.954s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:22.915s
[INFO] Finished at: Mon Jul 29 10:53:23 CEST 2013
[INFO] Final Memory: 79M/254M
[INFO] ------------------------------------------------------------------------
JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-11 11:34:49 UTC, last content change 2013-07-29 08:56:58 UTC.