pom.xml revision ada1678a4262b208a7b87391f520a7767d25287c
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright (c) 2010-2011 Oracle and/or its affiliates. All rights reserved.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common Development
and Distribution License("CDDL") (collectively, the "License"). You
may not use this file except in compliance with the License. You can
obtain a copy of the License at
https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
or packager/legal/LICENSE.txt. See the License for the specific
language governing permissions and limitations under the License.
When distributing the software, include this License Header Notice in each
file and include the License file at packager/legal/LICENSE.txt.
GPL Classpath Exception:
Oracle designates this particular file as subject to the "Classpath"
exception as provided by Oracle in the GPL Version 2 section of the License
file that accompanied this code.
Modifications:
If applicable, add the following below the License Header, with the fields
enclosed by brackets [] replaced by your own identifying information:
"Portions Copyright [year] [name of copyright owner]"
Contributor(s):
If you wish your version of this file to be governed by only the CDDL or
only the GPL Version 2, indicate your decision by adding "[Contributor]
elects to include this software in this distribution under the [CDDL or GPL
Version 2] license." If you don't indicate a single choice of license, a
recipient has the option to distribute your version of this file under
either the CDDL, the GPL Version 2 or to extend the choice of license to
its licensees as provided above. However, if you add GPL Version 2 code
and therefore, elected the GPL Version 2 license, then the option applies
only if the new code is made subject to such option by the copyright
holder.
-->
<!--
This module is meant to create a distribution fragement that contains
Apache Felix and associated configuration files and bundles.
The layout relative to glassfish root looks like this:
osgi/
felix/
bin/
felix.jar
conf/
config.properties
system.properties
modules/
org.apache.felix.shell.jar
org.apache.felix.shell.tui.jar
org.apache.felix.shell.remote.jar
org.apache.felix.gogo.runtime.jar
org.apache.felix.gogo.shell.jar
org.apache.felix.gogo.command.jar
autostart/
org.apache.felix.scr.jar
This is more or less how the layout would look if one downloads the Felix
distribution from Felix project and installs. The only difference being we keep
the bundles in glassfish/modules dir as opposed to bundle dir in felix.
-->
<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>
<parent>
<groupId>org.glassfish.main.osgi-platforms</groupId>
<artifactId>osgi-platforms</artifactId>
<version>3.1.2</version>
<relativePath>/pom.xml</relativePath>
</parent>
<artifactId>felix</artifactId>
<name>Apache Felix and associated bundles and configuration files</name>
<!-- This is a distribution fragement.
It is distributed as part of nucleus-base.
-->
<packaging>distribution-fragment</packaging>
<properties>
<felix.outdir>${project.build.OutputDirectory}/glassfish/osgi/felix/</felix.outdir>
<glassfish.modulesdir>${project.build.OutputDirectory}/glassfish/modules/</glassfish.modulesdir>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<stripVersion>true</stripVersion>
<artifactItems>
<artifactItem>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.main</artifactId>
<version>4.0.2</version>
<outputDirectory>${felix.outdir}/bin</outputDirectory>
<destFileName>felix.jar</destFileName>
</artifactItem>
<!-- We bundle Felix Shell bundles so that
user can use them to utilize the full power
of Felix even while using GlassFish -->
<artifactItem>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.shell</artifactId>
<version>1.4.1</version>
<type>jar</type>
<outputDirectory>${glassfish.modulesdir}</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.shell.tui</artifactId>
<version>1.4.1</version>
<type>jar</type>
<outputDirectory>${glassfish.modulesdir}</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.shell.remote</artifactId>
<version>1.1.2</version>
<type>jar</type>
<outputDirectory>${glassfish.modulesdir}</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.gogo.runtime</artifactId>
<version>0.8.0</version>
<type>jar</type>
<outputDirectory>${glassfish.modulesdir}</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.gogo.shell</artifactId>
<version>0.8.0</version>
<type>jar</type>
<outputDirectory>${glassfish.modulesdir}</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.gogo.command</artifactId>
<version>0.8.0</version>
<type>jar</type>
<outputDirectory>${glassfish.modulesdir}</outputDirectory>
</artifactItem>
<!-- We install fileinstall bundle which monitors modules
dir and autodeploy dir for addition/removal/updation of bundles -->
<artifactItem>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.fileinstall</artifactId>
<version>3.1.10</version>
<type>jar</type>
<outputDirectory>${glassfish.modulesdir}</outputDirectory>
</artifactItem>
<!-- fileinstall needs configadmin service -->
<artifactItem>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.configadmin</artifactId>
<version>1.2.4</version>
<type>jar</type>
<outputDirectory>${glassfish.modulesdir}</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.scr</artifactId>
<version>1.4.0</version>
<type>jar</type>
<outputDirectory>${glassfish.modulesdir}/autostart/</outputDirectory>
</artifactItem>
<!-- We don't ship this, as it affects startup benchmark by 1%.
<artifactItem>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.bundlerepository</artifactId>
<version>1.6.2</version>
<type>jar</type>
<outputDirectory>${glassfish.modulesdir}/autostart/</outputDirectory>
</artifactItem>
-->
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jvnet.maven-antrun-extended-plugin</groupId>
<artifactId>maven-antrun-extended-plugin</artifactId>
<configuration>
<tasks>
<ant dir="." antfile="build.xml" target="create.bundle" />
</tasks>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<extensions>
<extension>
<groupId>org.glassfish.build</groupId>
<artifactId>maven-glassfishbuild-extension</artifactId>
<version>${glassfishbuild.version}</version>
</extension>
</extensions>
</build>
<dependencies>
<!--
add it as a test scope dependency so that IDEs can recognize this as a dependency
and show the source code during the debugging
-->
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.main</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>