Version 3

    JBoss ESB 4.x artifacts are not in any public Maven2 repository (including the JBoss repository).  The following is a simple POM that should help you build 4.x components from inside a Maven2 build.

     

    <?xml version="1.0" encoding="UTF-8"?>
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
             
        <modelVersion>4.0.0</modelVersion>
        <name> </name>
        <groupId></groupId>
        <artifactId> </artifactId>
        <version> </version>
    
        <!-- ===================================================================================================
                 Need to set the "jbossesb.home" in the following <properties> section.  Set this to the
                 home dir of your local JBoss ESB Server.
             =================================================================================================== -->
    
        <properties>
            <jbossesb.home>H:/jboss-4.2.2.GA</jbossesb.home>
            <jbossesb.version>4.4_GA</jbossesb.version>
            <jbossesb.lib>${jbossesb.home}/server/default/deploy/jbossesb.sar/lib</jbossesb.lib>
        </properties>
    
        <dependencies>
    
            <dependency>
                <groupId>jboss</groupId>
                <artifactId>jbossesb-rosetta</artifactId>
                <version>${jbossesb.version}</version>
                <scope>system</scope>
                <systemPath>${jbossesb.lib}/jbossesb-rosetta.jar</systemPath>
            </dependency>
    
            <dependency>
                <groupId>jboss</groupId>
                <artifactId>jbossts-common</artifactId>
                <version>1.0</version>
                <scope>system</scope>
                <systemPath>${jbossesb.lib}/jbossts-common.jar</systemPath>
            </dependency>
    
            <dependency>
                <groupId>jboss</groupId>
                <artifactId>jbossesb-config-model</artifactId>
                <version>${jbossesb.version}</version>
                <scope>system</scope>
                <systemPath>${jbossesb.lib}/jbossesb-config-model-1.0.1.jar</systemPath>
            </dependency>
    
            <!-- You'll need to check out the ESB src, build and manually add test-util.jar -->
            <!-- dependency>
                <groupId>jboss</groupId>
                <artifactId>jbossesb-rosetta-test-utils</artifactId>
                <version>${jbossesb.version}</version>
                <scope>system</scope>
                <systemPath>${basedir}/lib/test-util.jar</systemPath>
            </dependency -->
    
            <dependency>
                <groupId>jboss</groupId>
                <artifactId>jmx-client</artifactId>
                <version>1.0</version>
                <scope>system</scope>
                <systemPath>${jbossesb.home}/client/jmx-client.jar</systemPath>
            </dependency>
    
            <dependency>
                <groupId>xmlbeans</groupId>
                <artifactId>xbean</artifactId>
                <version>2.2.0</version>
                <scope>test</scope>
            </dependency>
    
            <dependency>
                <groupId>apache-commons</groupId>
                <artifactId>commons-codec</artifactId>
                <version>1.0</version>
                <scope>system</scope>
                <systemPath>${jbossesb.home}/lib/commons-codec.jar</systemPath>
            </dependency>
    
            <dependency>
                <groupId>xmlbeans</groupId>
                <artifactId>xmlbeans-jsr173-api</artifactId>
                <version>2.0-dev</version>
                <scope>test</scope>
            </dependency>
    
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>3.8.1</version>
                <scope>test</scope>
            </dependency>
    
        </dependencies>
    
    </project>