Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright (C) FuseSource, Inc.
  http://fusesource.com

  Licensed 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/xsd/maven-4.0.0.xsd">
    <parent>
        <groupId>org.fusesource.fabric</groupId>
        <artifactId>fabric-project</artifactId>
        <version>7.2.0.redhat-065</version>
        <relativePath>..</relativePath>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <groupId>org.fusesource.fabric</groupId>
    <artifactId>fuse-fabric</artifactId>
    <name>Fuse Fabric :: Binary Distribution</name>
    <description>Fuse Fabric :: Binary Distribution</description>

       <prerequisites>
           <maven>3.0.2</maven>
       </prerequisites>

       <dependencies>
           <!-- Karaf Dependencies -->
           <dependency>
               <groupId>org.apache.karaf</groupId>
               <artifactId>apache-karaf</artifactId>
               <version>${karaf-version}</version>
               <type>tar.gz</type>
           </dependency>
           <dependency>
               <groupId>org.apache.karaf</groupId>
               <artifactId>apache-karaf</artifactId>
               <version>${karaf-version}</version>
               <type>zip</type>
           </dependency>

           <!-- Fabric Dependencies -->
           <dependency>
               <groupId>org.fusesource.fabric</groupId>
               <artifactId>fabric-zookeeper</artifactId>
           </dependency>
           <dependency>
               <groupId>org.fusesource.fabric</groupId>
               <artifactId>fabric-linkedin-zookeeper</artifactId>
               <version>${project.version}</version>
           </dependency>
           <dependency>
               <groupId>org.fusesource.fabric</groupId>
               <artifactId>fabric-core</artifactId>
           </dependency>
           <dependency>
               <groupId>org.fusesource.fabric</groupId>
               <artifactId>fabric-boot-commands</artifactId>
           </dependency>
           <dependency>
               <groupId>org.fusesource.fabric</groupId>
               <artifactId>fabric-commands</artifactId>
           </dependency>
           <dependency>
               <groupId>org.fusesource.fabric</groupId>
               <artifactId>fabric-agent</artifactId>
           </dependency>
           <dependency>
               <groupId>org.fusesource.fabric</groupId>
               <artifactId>fabric-configadmin</artifactId>
           </dependency>
           <dependency>
               <groupId>org.fusesource.fabric</groupId>
               <artifactId>org.fusesource.fabric.karaf.branding</artifactId>
               <version>${project.version}</version>
           </dependency>
           <dependency>
               <groupId>org.fusesource.fabric.virt</groupId>
               <artifactId>org.fusesource.fabric.virt.commands</artifactId>
           </dependency>
           <dependency>
               <groupId>org.fusesource.fabric.virt</groupId>
               <artifactId>org.fusesource.fabric.virt.services</artifactId>
           </dependency>
           <dependency>
               <groupId>org.fusesource.fabric.virt.bundles</groupId>
               <artifactId>org.fusesource.fabric.virt.bundles.jna</artifactId>
           </dependency>
           <dependency>
               <groupId>org.fusesource.fabric.virt.bundles</groupId>
               <artifactId>org.fusesource.fabric.virt.bundles.libvirt</artifactId>
           </dependency>
           <dependency>
               <groupId>org.jboss.amq</groupId>
               <artifactId>mq-fabric</artifactId>
               <version>${fuse.version}</version>
           </dependency>
           <dependency>
               <groupId>org.fusesource.insight</groupId>
               <artifactId>insight-log</artifactId>
           </dependency>
           <dependency>
               <groupId>org.fusesource.insight</groupId>
               <artifactId>insight-graph</artifactId>
           </dependency>
           <dependency>
               <groupId>org.fusesource.insight</groupId>
               <artifactId>insight-log-elasticsearch</artifactId>
           </dependency>
           <dependency>
               <groupId>org.fusesource.fabric</groupId>
               <artifactId>process-manager</artifactId>
           </dependency>
           <dependency>
               <groupId>org.fusesource.fabric</groupId>
               <artifactId>fabric-features-service</artifactId>
           </dependency>
           <dependency>
               <groupId>org.fusesource.fmc</groupId>
               <artifactId>fmc-webui</artifactId>
               <type>war</type>
               <version>${project.version}</version>
           </dependency>
           <dependency>
               <groupId>org.fusesource.fabric.fab</groupId>
               <artifactId>fab-osgi</artifactId>
               <version>${project.version}</version>
           </dependency>

           <!-- need this transitive of org.apache.servicemix.bundles.jasypt
                to get this building in offline mode -->
           <dependency>
               <groupId>commons-codec</groupId>
               <artifactId>commons-codec</artifactId>
               <version>${commons-codec-version}</version>
           </dependency>

           <!-- for jolokia -->
           <dependency>
               <groupId>org.jolokia</groupId>
               <artifactId>jolokia-osgi</artifactId>
               <version>${jolokia-version}</version>
           </dependency>

         <!-- these are copied to the lib folder -->
        <dependency>
            <groupId>org.apache.xerces</groupId>
            <artifactId>xercesImpl</artifactId>
            <version>${xerces.version}</version>
        </dependency>
        <dependency>
            <groupId>xalan</groupId>
            <artifactId>xalan</artifactId>
            <version>${xalan.version}</version>
        </dependency>
        <dependency>
            <groupId>xalan</groupId>
            <artifactId>serializer</artifactId>
            <version>${xalan.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.servicemix.specs</groupId>
            <artifactId>org.apache.servicemix.specs.activator</artifactId>
            <version>${servicemix-specs-version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.servicemix.specs</groupId>
            <artifactId>org.apache.servicemix.specs.jaxp-api-1.4</artifactId>
            <version>${servicemix-specs-version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.servicemix.specs</groupId>
            <artifactId>org.apache.servicemix.specs.jaxws-api-2.2</artifactId>
            <version>${servicemix-specs-version}</version>
        </dependency>

           <!-- fix transient dependency version issue when building ESB... -->
           <dependency>
               <groupId>org.apache.aries.proxy</groupId>
               <artifactId>org.apache.aries.proxy</artifactId>
               <version>${aries.proxy.version}</version>
           </dependency>
           <dependency>
               <groupId>org.apache.aries.proxy</groupId>
               <artifactId>org.apache.aries.proxy.impl</artifactId>
               <version>${aries.proxy.version}</version>
           </dependency>
           <dependency>
               <groupId>org.apache.aries.proxy</groupId>
               <artifactId>org.apache.aries.proxy.api</artifactId>
               <version>${aries.proxy.version}</version>
           </dependency>
       </dependencies>

    <repositories>
        <!-- needed for xerces -->
        <repository>
            <id>servicemix.m2-repo</id>
            <name>ServiceMix Maven 2 repository</name>
            <url>http://svn.apache.org/repos/asf/servicemix/m2-repo</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>

       <build>
           <defaultGoal>install</defaultGoal>
           <resources>
             <resource>
                 <directory>${basedir}/../../etc</directory>
                 <filtering>true</filtering>
                 <targetPath>distro/etc</targetPath>
             </resource>
               <resource>
                   <directory>${basedir}/src/main/resources</directory>
                   <filtering>true</filtering>
               </resource>
           </resources>

           <plugins>
               <plugin>
                   <groupId>org.apache.maven.plugins</groupId>
                   <artifactId>maven-resources-plugin</artifactId>
                   <version>2.4.3</version>
                   <executions>
                       <execution>
                           <id>filter</id>
                           <phase>process-resources</phase>
                           <goals>
                               <goal>resources</goal>
                           </goals>
                       </execution>
                   </executions>
               </plugin>
               <plugin>
                   <groupId>org.apache.karaf.tooling</groupId>
                   <artifactId>features-maven-plugin</artifactId>
                   <version>${karaf-version}</version>
                   <executions>
                       <execution>
                           <id>add-features-to-repo</id>
                           <phase>generate-resources</phase>
                           <goals>
                               <goal>add-features-to-repo</goal>
                           </goals>
                           <configuration>
                               <descriptors>
                                   <descriptor>mvn:org.apache.karaf.assemblies.features/standard/${karaf-version}/xml/features</descriptor>
                                   <descriptor>mvn:org.apache.camel.karaf/apache-camel/${camel-version}/xml/features</descriptor>
                                   <descriptor>mvn:org.apache.activemq/activemq-karaf/${activemq-version}/xml/features</descriptor>
                                   <descriptor>file:${basedir}/target/classes/fabric-features.xml</descriptor>
                               </descriptors>
                               <features>
                                   <feature>karaf</feature>
                                   <feature>fabric-agent</feature>
                                   <feature>fabric-boot-commands</feature>
                                   <feature>fabric-commands</feature>
                                   <feature>fabric-maven-proxy</feature>
                                   <feature>fabric-camel</feature>
                                   <feature>fabric-dosgi</feature>
                                   <feature>fabric-bundle</feature>
                                   <feature>fabric-monitor</feature>
                                   <feature>fabric-zeroconf</feature>
                                   <feature>fabric-webui</feature>
                                   <feature>mq-fabric</feature>
                                   <feature>insight-elasticsearch</feature>
                                   <feature>insight-log-elasticsearch</feature>
                                   <feature>process-manager</feature>
                                   <feature>jolokia</feature>
                               </features>
                               <includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
                               <repository>target/features-repo</repository>
                           </configuration>
                       </execution>
                   </executions>
               </plugin>
               <plugin>
                   <groupId>org.apache.maven.plugins</groupId>
                   <artifactId>maven-antrun-plugin</artifactId>
                   <version>1.7</version>
                   <executions>
                       <execution>
                           <id>update-properties</id>
                           <phase>prepare-package</phase>
                           <goals>
                               <goal>run</goal>
                           </goals>
                           <configuration>
                               <target name="update-properties">
                                   <echo message="Updating etc/startup.properties in unix assembly"/>
                                   <concat destfile="target/dependencies/unix/apache-karaf-${karaf-version}/etc/startup.properties" append="true" eol="unix">
                                       <fileset file="target/classes/etc/startup.properties"/>
                                   </concat>
                                   <echo message="Updating etc/config.properties in unix assembly" />
                                   <concat destfile="target/dependencies/unix/apache-karaf-${karaf-version}/etc/config.properties" append="true" eol="unix">
                                       <fileset file="src/main/append-resources/common/etc/config.properties" />
                                   </concat>

                                   <echo message="Updating etc/org.ops4j.pax.logging.cfg in unix assembly" />
                                   <concat destfile="target/dependencies/unix/apache-karaf-${karaf-version}/etc/org.ops4j.pax.logging.cfg" append="true" eol="unix">
                                       <fileset file="src/main/append-resources/common/etc/org.ops4j.pax.logging.cfg" />
                                   </concat>

                                   <echo message="Updating etc/system.properties in unix assembly" />
                                   <concat destfile="target/dependencies/unix/apache-karaf-${karaf-version}/etc/system.properties" append="true" eol="unix">
                                       <fileset file="src/main/append-resources/common/etc/system.properties" />
                                   </concat>

                                   <echo message="Updating etc/shell.init.script in unix assembly" />
                                   <concat destfile="target/dependencies/unix/apache-karaf-${karaf-version}/etc/shell.init.script" append="true" eol="unix">
                                       <fileset file="src/main/append-resources/common/etc/shell.init.script" />
                                   </concat>

                                   <echo message="Copying bin/fusefabric in unix assembly" />
                                   <concat destfile="target/dependencies/unix/apache-karaf-${karaf-version}/bin/fusefabric" append="true" eol="unix">
                                       <fileset file="src/main/append-resources/unix/fusefabric" />
                                   </concat>
                                   <echo message="Copying bin/fusefabric.bat in windows assembly" />
                                   <concat destfile="target/dependencies/win/apache-karaf-${karaf-version}/bin/fusefabric.bat" append="true" eol="dos">
                                       <fileset file="src/main/append-resources/win/fusefabric.bat" />
                                   </concat>
                               </target>
                           </configuration>
                       </execution>
                   </executions>
               </plugin>
            <plugin>
                 <groupId>org.fusesource.mvnplugins</groupId>
                 <artifactId>maven-notices-plugin</artifactId>
                 <executions>
                     <execution>
                         <id>merge-notices-in-repository</id>
                         <phase>prepare-package</phase>
                         <goals>
                             <goal>merge-notices-in-repository</goal>
                         </goals>
                         <configuration>
                             <projectName>Fuse Fabric</projectName>
                             <organizationName>Red Hat, Inc. All Rights Reserved.</organizationName>
                             <organizationURL>http://redhat.com</organizationURL>
                             <preamble>In addition to the Red Hat products, this disk contains certain third party software or components (“Third Party Components”), which are bundled as separate files or modules and separately licensed to you by said third parties. This file contains a listing of all NOTICE/NOTICE.txt files included with the Third Party Component jars in this distribution of Fuse Fabric. Please see the fabric_dependencies.txt file for the complete listing of Third Party Components and their attributed license agreements.  Your use of the Third Party Components is subject to the terms and conditions set forth in the applicable third party license agreement.  The Third Party Components are provided by Red Hat Inc. soely on an "AS IS" basis, without any warranty.  Red Hat, Inc. disclaims all warranties and indemnities with respect to the Third Party Components, express or implied, and assumes no liability with respect to the Third Party Components.  You acknowledge that the authors of the Third Party Components have no obligation to provide support to you for the Third Party Components.  You hereby undertake to comply with all licenses related to the applicable Third Party Components. All third party license agreements are contained in the licenses directory of </preamble>
                             <listDependencies>true</listDependencies>
                             <extraDependencies>org.apache.xerces:xercesImpl:${xerces.version},xalan:xalan:${xalan.version},xalan:serializer:${xalan.version},org.apache.servicemix.specs:org.apache.servicemix.specs.activator:${servicemix-specs-version},org.apache.servicemix.specs:org.apache.servicemix.specs.jaxp-api-1.4:${servicemix-specs-version},org.apache.servicemix.specs:org.apache.servicemix.specs.jaxws-api-2.2:${servicemix-specs-version}</extraDependencies>
                             <noticeSupplements>classes/notice-supplements.xml</noticeSupplements>
                             <repositories>${project.basedir}/target/features-repo</repositories>
                             <defaultParent>org.fusesource.fabric:fabric-project:${project.version}:../..</defaultParent>
                        </configuration>
                     </execution>
                 </executions>
             </plugin>
               <plugin>
                   <groupId>org.apache.maven.plugins</groupId>
                   <artifactId>maven-assembly-plugin</artifactId>
                   <version>${maven-assembly-plugin-version}</version>
                   <executions>
                       <execution>
                           <id>unix-bin</id>
                           <phase>package</phase>
                           <goals>
                               <goal>single</goal>
                           </goals>
                           <configuration>
                               <descriptors>
                                   <descriptor>src/main/descriptors/unix-bin.xml</descriptor>
                               </descriptors>
                               <finalName>${project.artifactId}-${project.version}</finalName>
                               <tarLongFileMode>gnu</tarLongFileMode>
                               <appendAssemblyId>false</appendAssemblyId>
                           </configuration>
                       </execution>
                   </executions>
               </plugin>
               <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>attach-artifacts</id>
                        <phase>package</phase>
                        <goals>
                            <goal>attach-artifact</goal>
                        </goals>
                        <configuration>
                            <artifacts>
                                <artifact>
                                    <file>target/classes/fabric-features.xml</file>
                                    <type>xml</type>
                                    <classifier>features</classifier>
                                  </artifact>
                                  <artifact>
                                    <file>target/classes/distro/etc/activemq.xml</file>
                                    <type>xml</type>
                                    <classifier>activemq</classifier>
                                  </artifact>
                            </artifacts>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
               <plugin>
                   <groupId>org.apache.maven.plugins</groupId>
                   <artifactId>maven-dependency-plugin</artifactId>
                   <executions>
                       <execution>
                           <id>unpack-unix</id>
                           <phase>generate-resources</phase>
                           <goals>
                               <goal>unpack</goal>
                           </goals>
                           <configuration>
                               <artifactItems>
                                   <artifactItem>
                                       <groupId>org.apache.karaf</groupId>
                                       <artifactId>apache-karaf</artifactId>
                                       <type>tar.gz</type>
                                       <outputDirectory>target/dependencies/unix</outputDirectory>
                                   </artifactItem>
                               </artifactItems>
                           </configuration>
                       </execution>
                       <execution>
                           <id>unpack-win</id>
                           <phase>generate-resources</phase>
                           <goals>
                               <goal>unpack</goal>
                           </goals>
                           <configuration>
                               <artifactItems>
                                   <artifactItem>
                                       <groupId>org.apache.karaf</groupId>
                                       <artifactId>apache-karaf</artifactId>
                                       <type>zip</type>
                                       <outputDirectory>target/dependencies/win</outputDirectory>
                                   </artifactItem>
                               </artifactItems>
                           </configuration>
                       </execution>
                   </executions>
               </plugin>
           </plugins>
           <pluginManagement>
           	<plugins>
           		<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
           		<plugin>
           			<groupId>org.eclipse.m2e</groupId>
           			<artifactId>lifecycle-mapping</artifactId>
           			<version>1.0.0</version>
           			<configuration>
           				<lifecycleMappingMetadata>
           					<pluginExecutions>
           						<pluginExecution>
           							<pluginExecutionFilter>
           								<groupId>
           									org.apache.karaf.tooling
           								</groupId>
           								<artifactId>
           									features-maven-plugin
           								</artifactId>
           								<versionRange>
           									[2.2.2-fuse-02-06,)
           								</versionRange>
           								<goals>
           									<goal>
           										add-features-to-repo
           									</goal>
           								</goals>
           							</pluginExecutionFilter>
           							<action>
           								<ignore />
           							</action>
           						</pluginExecution>
           					</pluginExecutions>
           				</lifecycleMappingMetadata>
           			</configuration>
           		</plugin>
           	</plugins>
           </pluginManagement>
       </build>
   </project>
New to GrepCode? Check out our FAQ X