alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

ActiveMQ example source code file (pom.xml)

This example ActiveMQ source code file (pom.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - ActiveMQ tags/keywords

apache, asf, asf, console, embed-transitive, import-package, jconsole, jstl, license, license, see, see, you, you

The ActiveMQ pom.xml source code

<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at
  
  http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<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

  <parent>
    <groupId>org.apache.activemq
    <artifactId>activemq-parent
    <version>5.5.0
  </parent>

  <artifactId>activemq-web-console
  <packaging>war
  <name>ActiveMQ :: Web Console
  <description>Web Console for ActiveMQ
    
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins
        <artifactId>maven-war-plugin
        <version>2.1-beta-1
        <configuration>
          <packagingExcludes>
            WEB-INF/lib/jetty*.jar,
            WEB-INF/lib/servlet*.jar
          </packagingExcludes>
            <archive>
            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF
          </archive>          
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.mortbay.jetty
        <artifactId>jetty-maven-plugin
        <version>${jetty-version}
        <configuration>
          <connectors>
            <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
              <port>${jetty.port}
              <maxIdleTime>60000
            </connector>
          </connectors>

          <webAppConfig>
            <contextPath>/
          </webAppConfig>

          <systemProperties>
            <!-- enable easy connection to JConsole -->
            <systemProperty>
              <name>com.sun.management.jmxremote
              <value />
            </systemProperty>

            <!-- Start an own broker -->
            <systemProperty>
              <name>webconsole.type
              <value>embedded
            </systemProperty>

            <!--
               Use the following configuration to connect to a remote broker using JMX
                        <systemProperty>
                          <name>webconsole.type
                          <value>properties
                        </systemProperty>
                        <systemProperty>
                          <name>webconsole.jms.url
                          <value>tcp://localhost:61616
                        </systemProperty>
                        <systemProperty>
                          <name>webconsole.jmx.url
                          <value>service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
                        </systemProperty>
            -->
          </systemProperties>
          <scanIntervalSeconds>10
        </configuration>
      </plugin>
        <plugin>
        <groupId>org.apache.felix
        <artifactId>maven-bundle-plugin
        <executions>
          <execution>
            <id>bundle-manifest
            <phase>process-classes
            <goals>
              <goal>manifest
            </goals>
          </execution>
        </executions>
        <configuration>
          <supportedProjectTypes>
            <supportedProjectType>jar
            <supportedProjectType>bundle
            <supportedProjectType>war
          </supportedProjectTypes>
          <instructions>
            <Webapp-Context>activemqweb
            <Web-ContextPath>activemqweb
            <Bundle-ClassPath>.,WEB-INF/classes
            <Embed-Directory>WEB-INF/lib
            <Embed-Dependency>*;scope=compile|runtime
            <Embed-Transitive>true
            <Import-Package>
				org.xml.sax,
				org.xml.sax.helpers,
				javax.xml.parsers,
				javax.xml.transform,
				javax.management.remote,
				javax.naming,
				org.w3c.dom,
				javax.servlet*,
				javax.servlet.jsp,
				javax.servlet.jsp.tagext,
				javax.servlet.jsp.el,
				javax.management,
				javax.management.openmbean,
				javax.net,
				org.apache.commons.logging*;version="[1.1,2)";resolution:=optional,
				org.slf4j*;version="[1.5,2)";resolution:=optional,
				org.apache.log4j*;version="[1.2.14,2)";resolution:=optional,
			</Import-Package>
          </instructions>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <dependencies>

    <dependency>
      <groupId>org.apache.geronimo.specs
      <artifactId>geronimo-servlet_2.5_spec
      <scope>provided
    </dependency>
    
    <!-- j2ee jars -->
    <dependency>
      <groupId>org.apache.geronimo.specs
      <artifactId>geronimo-jms_1.1_spec
    </dependency>
    <dependency>
      <groupId>org.apache.geronimo.specs
      <artifactId>geronimo-jta_1.0.1B_spec
    </dependency>
    <dependency>
      <groupId>org.apache.geronimo.specs
      <artifactId>geronimo-j2ee-management_1.1_spec
    </dependency>
    <dependency>
      <groupId>org.apache.geronimo.specs
      <artifactId>geronimo-jacc_1.1_spec
    </dependency>

    <!-- activemq -->
    <dependency>
      <groupId>${project.groupId}
      <artifactId>activemq-web
    </dependency>

    <!-- XMPP support -->
    <dependency>
      <groupId>${project.groupId}
      <artifactId>activemq-xmpp
      <version>${project.version}
    </dependency>
    <dependency>
      <groupId>${project.groupId}
      <artifactId>activemq-console
      <version>${project.version}
    </dependency>

    <!-- TODO this should not be needed, but transitive dependencies are not working -->
    <dependency>
      <groupId>${project.groupId}
      <artifactId>activemq-core
    </dependency>
    <dependency>
      <groupId>${project.groupId}
      <artifactId>activeio-core
    </dependency>
    <dependency>
      <groupId>org.apache.activemq
      <artifactId>activemq-jaas
      <optional>true
    </dependency>
    <dependency>
      <groupId>org.apache.xbean
      <artifactId>xbean-spring
    </dependency>

    <!-- web container -->
    <dependency>
      <groupId>org.eclipse.jetty.aggregate
      <artifactId>jetty-all-server
      <scope>test
    </dependency>
    <dependency>
      <groupId>org.mortbay.jetty
      <artifactId>jsp-2.1-glassfish
      <scope>provided
    </dependency> 
 
    <!-- enable commons-logging when inside jetty6:run -->
    <!--
    <dependency>
        <groupId>org.slf4j
        <artifactId>jcl104-over-slf4j
        <version>1.5.0
    </dependency>
    -->
    <!--
        <dependency>
          <groupId>org.slf4j
          <artifactId>slf4j-jcl
        </dependency>
    -->
    <dependency>
      <groupId>org.slf4j
      <artifactId>slf4j-api
    </dependency>
    <dependency>
      <groupId>org.slf4j
      <artifactId>slf4j-log4j12
    </dependency>

    <dependency>
      <groupId>log4j
      <artifactId>log4j
    </dependency>


    <!-- SiteMesh for layout -->
    <dependency>
      <groupId>opensymphony
      <artifactId>sitemesh
    </dependency>
    
    <!-- JSTL support -->
    <dependency>
      <groupId>javax.servlet
      <artifactId>jstl
    </dependency>
    <dependency>
      <groupId>taglibs
      <artifactId>standard
    </dependency>


    <!-- XStream marshalling -->
    <dependency>
      <groupId>xpp3
      <artifactId>xpp3
    </dependency>

    <dependency>
      <groupId>com.thoughtworks.xstream
      <artifactId>xstream
    </dependency>

    <!-- used for testing -->
    <dependency>
      <groupId>junit
      <artifactId>junit
      <scope>test
    </dependency>

    <!-- Derby SQL DB used for testing JDBC message store -->
    <dependency>
      <groupId>org.apache.derby
      <artifactId>derby
    </dependency>
  </dependencies>

  <properties>
    <jetty.port>8080
<!--      
  </properties>
</project>

Other ActiveMQ examples (source code examples)

Here is a short list of links related to this ActiveMQ pom.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.