blob: 85985bc09e4091c39e8446cc1f6b9894577080f5 [file] [log] [blame]
Richard S. Hallb63426f2008-03-05 20:03:55 +00001<!--
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"); you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18-->
19<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">
Richard S. Hall7bf7a4d2010-08-03 13:25:34 +000020 <parent>
21 <groupId>org.apache.felix</groupId>
22 <artifactId>felix-parent</artifactId>
Guillaume Nodet7b76c0a2013-12-05 23:01:03 +000023 <version>2.1</version>
Richard S. Hall7bf7a4d2010-08-03 13:25:34 +000024 <relativePath>../pom/pom.xml</relativePath>
25 </parent>
Clement Escoffier81466522009-05-03 08:15:51 +000026
Richard S. Hallb63426f2008-03-05 20:03:55 +000027 <modelVersion>4.0.0</modelVersion>
Guillaume Nodet7b76c0a2013-12-05 23:01:03 +000028 <packaging>jar</packaging>
Richard S. Hallb63426f2008-03-05 20:03:55 +000029 <name>Apache Felix File Install</name>
30 <description>A utility to automatically install bundles from a directory.</description>
Clement Escoffier81466522009-05-03 08:15:51 +000031 <url>http://felix.apache.org/site/apache-felix-file-install.html</url>
Guillaume Nodet6a544632015-03-05 08:40:36 +000032 <version>3.5.1-SNAPSHOT</version>
Richard S. Hallb63426f2008-03-05 20:03:55 +000033 <artifactId>org.apache.felix.fileinstall</artifactId>
Guillaume Nodet67b0ff52012-04-18 07:09:54 +000034 <scm>
Guillaume Nodet6a544632015-03-05 08:40:36 +000035 <connection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk/fileinstall</connection>
36 <developerConnection>scm:svn:https://svn.apache.org/repos/asf/felix/trunk/fileinstall</developerConnection>
37 <url>http://svn.apache.org/repos/asf/felix/fileinstall</url>
Guillaume Nodet67b0ff52012-04-18 07:09:54 +000038 </scm>
Guillaume Nodetc04dc312015-12-14 16:33:59 +000039 <properties>
40 <felix.java.version>7</felix.java.version>
41 </properties>
Richard S. Hallb63426f2008-03-05 20:03:55 +000042 <dependencies>
43 <dependency>
Guillaume Nodet93c943e2009-12-16 09:28:31 +000044 <groupId>org.osgi</groupId>
Richard S. Hallb63426f2008-03-05 20:03:55 +000045 <artifactId>org.osgi.core</artifactId>
Guillaume Nodetcabad862014-03-31 16:12:03 +000046 <version>4.3.1</version>
Guillaume Nodet13bce9c2012-03-16 08:17:34 +000047 <scope>provided</scope>
Richard S. Hallb63426f2008-03-05 20:03:55 +000048 </dependency>
49 <dependency>
Guillaume Nodet93c943e2009-12-16 09:28:31 +000050 <groupId>org.osgi</groupId>
Richard S. Hallb63426f2008-03-05 20:03:55 +000051 <artifactId>org.osgi.compendium</artifactId>
Guillaume Nodetcabad862014-03-31 16:12:03 +000052 <version>4.3.1</version>
Guillaume Nodet13bce9c2012-03-16 08:17:34 +000053 <scope>provided</scope>
Richard S. Hallb63426f2008-03-05 20:03:55 +000054 </dependency>
Carsten Ziegelerc6e24392010-08-06 14:33:43 +000055 <dependency>
56 <groupId>org.apache.felix</groupId>
57 <artifactId>org.apache.felix.configadmin</artifactId>
Guillaume Nodet3d144cd2010-10-25 20:19:04 +000058 <version>1.2.8</version>
Guillaume Nodet3d144cd2010-10-25 20:19:04 +000059 </dependency>
60 <dependency>
61 <groupId>org.apache.felix</groupId>
62 <artifactId>org.apache.felix.utils</artifactId>
Guillaume Nodetf8f64b52015-03-05 08:38:20 +000063 <version>1.8.0</version>
Carsten Ziegelerc6e24392010-08-06 14:33:43 +000064 </dependency>
Richard S. Hallb63426f2008-03-05 20:03:55 +000065 </dependencies>
66 <build>
67 <plugins>
68 <plugin>
Guillaume Nodet0aebbe92013-12-06 09:07:13 +000069 <artifactId>maven-jar-plugin</artifactId>
70 <configuration>
71 <archive>
72 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
73 </archive>
74 </configuration>
75 </plugin>
76 <plugin>
Richard S. Hallb63426f2008-03-05 20:03:55 +000077 <groupId>org.apache.felix</groupId>
78 <artifactId>maven-bundle-plugin</artifactId>
Guillaume Nodet3d144cd2010-10-25 20:19:04 +000079 <version>2.1.0</version>
Richard S. Hallb63426f2008-03-05 20:03:55 +000080 <extensions>true</extensions>
81 <configuration>
82 <instructions>
Guillaume Nodet472d23a2009-09-03 13:39:34 +000083 <Export-Package>
Guillaume Nodeta2861572009-10-14 13:00:51 +000084 org.apache.felix.fileinstall;version=${project.version}
Guillaume Nodet472d23a2009-09-03 13:39:34 +000085 </Export-Package>
Stuart McCullocha96eeef2009-09-03 17:22:01 +000086 <Private-Package>
Guillaume Nodet3d144cd2010-10-25 20:19:04 +000087 org.apache.felix.fileinstall.internal,
Guillaume Nodet10127002012-03-16 14:56:39 +000088 org.apache.felix.utils.manifest,
Guillaume Nodet3d144cd2010-10-25 20:19:04 +000089 org.apache.felix.utils.properties,
Guillaume Nodet10127002012-03-16 14:56:39 +000090 org.apache.felix.utils.version,
Stuart McCullocha96eeef2009-09-03 17:22:01 +000091 </Private-Package>
Guillaume Nodet472d23a2009-09-03 13:39:34 +000092 <Import-Package>
93 org.osgi.service.log;resolution:=optional,
Guillaume Nodeta2861572009-10-14 13:00:51 +000094 org.osgi.service.cm;resolution:=optional,
Guillaume Nodet0aebbe92013-12-06 09:07:13 +000095 !org.apache.felix.fileinstall,
96 !org.apache.felix.cm.file,
97 !org.apache.felix.utils.*,
Guillaume Nodet472d23a2009-09-03 13:39:34 +000098 *
99 </Import-Package>
Guillaume Nodet67bfa5f2009-09-03 15:39:17 +0000100 <Bundle-Activator>org.apache.felix.fileinstall.internal.FileInstall</Bundle-Activator>
Richard S. Hallb63426f2008-03-05 20:03:55 +0000101 <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
Carsten Ziegelercf6e51b2008-04-17 06:33:59 +0000102 <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
Guillaume Nodetf9379dd2012-04-17 16:25:00 +0000103 <Bundle-DocURL>
104 http://felix.apache.org/site/apache-felix-file-install.html
105 </Bundle-DocURL>
Guillaume Nodet472d23a2009-09-03 13:39:34 +0000106 <_versionpolicy>[$(version;==;$(@)),$(version;+;$(@)))</_versionpolicy>
Carsten Ziegelerc6e24392010-08-06 14:33:43 +0000107 <Embed-Dependency>
Guillaume Nodet7b76c0a2013-12-05 23:01:03 +0000108 org.apache.felix.configadmin;inline="org/apache/felix/cm/file/ConfigurationHandler.class",
109 org.apache.felix.utils;inline="org/apache/felix/utils/collections/DictionaryAsMap*.class"
Carsten Ziegelerc6e24392010-08-06 14:33:43 +0000110 </Embed-Dependency>
Richard S. Hallb63426f2008-03-05 20:03:55 +0000111 </instructions>
112 </configuration>
Guillaume Nodet7b76c0a2013-12-05 23:01:03 +0000113 <executions>
114 <execution>
115 <id>bundle-manifest</id>
116 <phase>process-classes</phase>
117 <goals>
118 <goal>manifest</goal>
119 </goals>
120 </execution>
121 </executions>
Richard S. Hallb63426f2008-03-05 20:03:55 +0000122 </plugin>
Richard S. Hall7bf7a4d2010-08-03 13:25:34 +0000123 <plugin>
Guillaume Nodeta6cb91a2012-09-03 13:08:02 +0000124 <groupId>org.apache.maven.plugins</groupId>
125 <artifactId>maven-source-plugin</artifactId>
Guillaume Nodet7b76c0a2013-12-05 23:01:03 +0000126 <version>2.2.1</version>
Guillaume Nodeta6cb91a2012-09-03 13:08:02 +0000127 <executions>
128 <execution>
129 <id>attach-sources</id>
Guillaume Nodet7b76c0a2013-12-05 23:01:03 +0000130 <phase>prepare-package</phase>
Guillaume Nodeta6cb91a2012-09-03 13:08:02 +0000131 <goals>
Guillaume Nodet7b76c0a2013-12-05 23:01:03 +0000132 <goal>jar-no-fork</goal>
Guillaume Nodeta6cb91a2012-09-03 13:08:02 +0000133 </goals>
134 </execution>
135 </executions>
136 </plugin>
137 <plugin>
138 <groupId>org.apache.maven.plugins</groupId>
139 <artifactId>maven-shade-plugin</artifactId>
Guillaume Nodet7b76c0a2013-12-05 23:01:03 +0000140 <version>2.2</version>
Guillaume Nodeta6cb91a2012-09-03 13:08:02 +0000141 <executions>
142 <execution>
143 <phase>package</phase>
144 <goals>
145 <goal>shade</goal>
146 </goals>
147 <configuration>
148 <artifactSet>
149 <includes>
150 <include>org.apache.felix:org.apache.felix.configadmin</include>
151 <include>org.apache.felix:org.apache.felix.utils</include>
152 </includes>
153 </artifactSet>
154 <filters>
155 <filter>
156 <artifact>org.apache.felix:org.apache.felix.configadmin</artifact>
157 <includes>
158 <include>**/ConfigurationHandler.*</include>
159 </includes>
160 </filter>
161 <filter>
162 <artifact>org.apache.felix:org.apache.felix.utils</artifact>
163 <includes>
Guillaume Nodet0aebbe92013-12-06 09:07:13 +0000164 <include>**/DictionaryAsMap*.*</include>
Guillaume Nodet7b76c0a2013-12-05 23:01:03 +0000165 <include>org/apache/felix/utils/manifest/**</include>
166 <include>org/apache/felix/utils/properties/**</include>
167 <include>org/apache/felix/utils/version/**</include>
Guillaume Nodeta6cb91a2012-09-03 13:08:02 +0000168 </includes>
169 </filter>
170 </filters>
171 <createSourcesJar>true</createSourcesJar>
172 <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
173 <createDependencyReducedPom>true</createDependencyReducedPom>
174 </configuration>
175 </execution>
176 </executions>
177 </plugin>
178 <plugin>
Richard S. Hall7bf7a4d2010-08-03 13:25:34 +0000179 <groupId>org.codehaus.mojo</groupId>
180 <artifactId>rat-maven-plugin</artifactId>
181 <configuration>
182 <excludeSubProjects>false</excludeSubProjects>
183 <useEclipseDefaultExcludes>true</useEclipseDefaultExcludes>
184 <useMavenDefaultExcludes>true</useMavenDefaultExcludes>
185 <excludes>
186 <param>doc/*</param>
187 <param>maven-eclipse.xml</param>
188 <param>.checkstyle</param>
189 <param>.externalToolBuilders/*</param>
190 </excludes>
191 </configuration>
192 </plugin>
Richard S. Hallb63426f2008-03-05 20:03:55 +0000193 </plugins>
194 </build>
Richard S. Hallb63426f2008-03-05 20:03:55 +0000195</project>