Karl Pauls | 4ebe508 | 2006-10-30 15:00:08 +0000 | [diff] [blame] | 1 | <!-- |
| 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 | --> |
Alex Karasulu | 07d2049 | 2006-03-06 15:35:44 +0000 | [diff] [blame] | 19 | <project> |
Alex Karasulu | c15532e | 2006-03-06 19:42:54 +0000 | [diff] [blame] | 20 | <parent> |
Alex Karasulu | 07d2049 | 2006-03-06 15:35:44 +0000 | [diff] [blame] | 21 | <groupId>org.apache.felix</groupId> |
| 22 | <artifactId>felix</artifactId> |
Karl Pauls | bfdc6bd | 2007-09-17 22:16:09 +0000 | [diff] [blame] | 23 | <version>1.0.0</version> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 24 | <relativePath>../pom/pom.xml</relativePath> |
Alex Karasulu | 07d2049 | 2006-03-06 15:35:44 +0000 | [diff] [blame] | 25 | </parent> |
| 26 | <modelVersion>4.0.0</modelVersion> |
Richard S. Hall | 1da4e54 | 2006-11-02 21:45:44 +0000 | [diff] [blame] | 27 | <packaging>bundle</packaging> |
Alex Karasulu | 07d2049 | 2006-03-06 15:35:44 +0000 | [diff] [blame] | 28 | <name>Apache Felix Main</name> |
| 29 | <artifactId>org.apache.felix.main</artifactId> |
Karl Pauls | 34724e9 | 2007-09-17 22:25:00 +0000 | [diff] [blame] | 30 | <version>1.1.0-SNAPSHOT</version> |
Alex Karasulu | 07d2049 | 2006-03-06 15:35:44 +0000 | [diff] [blame] | 31 | <dependencies> |
| 32 | <dependency> |
| 33 | <groupId>${pom.groupId}</groupId> |
| 34 | <artifactId>org.apache.felix.framework</artifactId> |
Karl Pauls | 34724e9 | 2007-09-17 22:25:00 +0000 | [diff] [blame] | 35 | <version>1.1.0-SNAPSHOT</version> |
Richard S. Hall | c2c5804 | 2006-11-28 20:50:51 +0000 | [diff] [blame] | 36 | <exclusions> |
| 37 | <exclusion> |
| 38 | <groupId>${pom.groupId}</groupId> |
| 39 | <artifactId>org.osgi.core</artifactId> |
| 40 | </exclusion> |
Richard S. Hall | b35c038 | 2007-07-16 17:29:17 +0000 | [diff] [blame] | 41 | <!--exclusion> |
| 42 | For now framework doesn't have this dependency, but it |
| 43 | will once the compendium bundle is released. |
Richard S. Hall | 487c44d | 2007-05-22 15:58:30 +0000 | [diff] [blame] | 44 | <groupId>${pom.groupId}</groupId> |
| 45 | <artifactId>org.osgi.compendium</artifactId> |
Richard S. Hall | b35c038 | 2007-07-16 17:29:17 +0000 | [diff] [blame] | 46 | </exclusion--> |
Richard S. Hall | c2c5804 | 2006-11-28 20:50:51 +0000 | [diff] [blame] | 47 | </exclusions> |
Alex Karasulu | 07d2049 | 2006-03-06 15:35:44 +0000 | [diff] [blame] | 48 | </dependency> |
Karl Pauls | 4d82d2f | 2006-11-03 00:08:28 +0000 | [diff] [blame] | 49 | <dependency> |
| 50 | <groupId>${pom.groupId}</groupId> |
| 51 | <artifactId>org.apache.felix.shell</artifactId> |
Karl Pauls | 34724e9 | 2007-09-17 22:25:00 +0000 | [diff] [blame] | 52 | <version>1.1.0-SNAPSHOT</version> |
Richard S. Hall | c2c5804 | 2006-11-28 20:50:51 +0000 | [diff] [blame] | 53 | <exclusions> |
| 54 | <exclusion> |
| 55 | <groupId>${pom.groupId}</groupId> |
| 56 | <artifactId>org.osgi.core</artifactId> |
| 57 | </exclusion> |
| 58 | </exclusions> |
Karl Pauls | 4d82d2f | 2006-11-03 00:08:28 +0000 | [diff] [blame] | 59 | </dependency> |
| 60 | <dependency> |
| 61 | <groupId>${pom.groupId}</groupId> |
| 62 | <artifactId>org.apache.felix.shell.tui</artifactId> |
Karl Pauls | 34724e9 | 2007-09-17 22:25:00 +0000 | [diff] [blame] | 63 | <version>1.1.0-SNAPSHOT</version> |
Richard S. Hall | c2c5804 | 2006-11-28 20:50:51 +0000 | [diff] [blame] | 64 | <exclusions> |
| 65 | <exclusion> |
| 66 | <groupId>${pom.groupId}</groupId> |
| 67 | <artifactId>org.osgi.core</artifactId> |
| 68 | </exclusion> |
| 69 | </exclusions> |
Karl Pauls | 4d82d2f | 2006-11-03 00:08:28 +0000 | [diff] [blame] | 70 | </dependency> |
| 71 | <dependency> |
| 72 | <groupId>${pom.groupId}</groupId> |
| 73 | <artifactId>org.apache.felix.bundlerepository</artifactId> |
Karl Pauls | 34724e9 | 2007-09-17 22:25:00 +0000 | [diff] [blame] | 74 | <version>1.1.0-SNAPSHOT</version> |
Richard S. Hall | c2c5804 | 2006-11-28 20:50:51 +0000 | [diff] [blame] | 75 | <exclusions> |
| 76 | <exclusion> |
| 77 | <groupId>${pom.groupId}</groupId> |
| 78 | <artifactId>org.osgi.core</artifactId> |
| 79 | </exclusion> |
Richard S. Hall | d4d36cc | 2007-06-26 10:04:00 +0000 | [diff] [blame] | 80 | <exclusion> |
| 81 | <groupId>net.sf.kxml</groupId> |
| 82 | <artifactId>kxml2</artifactId> |
| 83 | </exclusion> |
Richard S. Hall | c2c5804 | 2006-11-28 20:50:51 +0000 | [diff] [blame] | 84 | </exclusions> |
Karl Pauls | 4d82d2f | 2006-11-03 00:08:28 +0000 | [diff] [blame] | 85 | </dependency> |
Alex Karasulu | 07d2049 | 2006-03-06 15:35:44 +0000 | [diff] [blame] | 86 | </dependencies> |
Alex Karasulu | c15532e | 2006-03-06 19:42:54 +0000 | [diff] [blame] | 87 | <properties> |
| 88 | <property name="install.home" value="${basedir.absolutePath}"/> |
| 89 | </properties> |
Alex Karasulu | 07d2049 | 2006-03-06 15:35:44 +0000 | [diff] [blame] | 90 | <build> |
| 91 | <plugins> |
| 92 | <plugin> |
Richard S. Hall | 1da4e54 | 2006-11-02 21:45:44 +0000 | [diff] [blame] | 93 | <groupId>org.apache.felix</groupId> |
Richard S. Hall | 797bc98 | 2007-05-21 18:35:07 +0000 | [diff] [blame] | 94 | <artifactId>maven-bundle-plugin</artifactId> |
Karl Pauls | bfdc6bd | 2007-09-17 22:16:09 +0000 | [diff] [blame] | 95 | <version>1.0.0</version> |
Richard S. Hall | 1da4e54 | 2006-11-02 21:45:44 +0000 | [diff] [blame] | 96 | <extensions>true</extensions> |
Alex Karasulu | 07d2049 | 2006-03-06 15:35:44 +0000 | [diff] [blame] | 97 | <configuration> |
Richard S. Hall | 1da4e54 | 2006-11-02 21:45:44 +0000 | [diff] [blame] | 98 | <instructions> |
Richard S. Hall | 2730552 | 2007-03-28 15:28:25 +0000 | [diff] [blame] | 99 | <_donotcopy>(CVS|.svn|config.properties)</_donotcopy> |
Richard S. Hall | 1da4e54 | 2006-11-02 21:45:44 +0000 | [diff] [blame] | 100 | <Main-Class>org.apache.felix.main.Main</Main-Class> |
| 101 | <Bundle-Name>Apache Felix</Bundle-Name> |
| 102 | <Bundle-Description>OSGi R4 framework.</Bundle-Description> |
Karl Pauls | 39f9e54 | 2007-09-12 18:18:40 +0000 | [diff] [blame] | 103 | <Private-Package>org.apache.felix.main.*,org.apache.felix.moduleloader.*,org.apache.felix.framework.*,org.osgi.framework,org.osgi.service.packageadmin,org.osgi.service.startlevel,org.osgi.service.url,org.osgi.util.tracker</Private-Package> |
Richard S. Hall | 1da4e54 | 2006-11-02 21:45:44 +0000 | [diff] [blame] | 104 | <Import-Package>!*</Import-Package> |
| 105 | <Include-Resource>{src/main/resources/}</Include-Resource> |
| 106 | </instructions> |
Alex Karasulu | 07d2049 | 2006-03-06 15:35:44 +0000 | [diff] [blame] | 107 | </configuration> |
| 108 | </plugin> |
Alex Karasulu | c15532e | 2006-03-06 19:42:54 +0000 | [diff] [blame] | 109 | <plugin> |
Karl Pauls | aa573ad | 2007-07-19 19:09:54 +0000 | [diff] [blame] | 110 | <groupId>org.apache.maven.plugins</groupId> |
| 111 | <artifactId>maven-dependency-plugin</artifactId> |
| 112 | <executions> |
| 113 | <execution> |
Karl Pauls | 39f9e54 | 2007-09-12 18:18:40 +0000 | [diff] [blame] | 114 | <id>unpack</id> |
| 115 | <phase>validate</phase> |
| 116 | <goals> |
| 117 | <goal>unpack</goal> |
| 118 | </goals> |
| 119 | <configuration> |
| 120 | <outputDirectory>${project.build.outputDirectory}</outputDirectory> |
| 121 | <artifactItems> |
| 122 | <artifactItem> |
| 123 | <groupId>${pom.groupId}</groupId> |
| 124 | <artifactId>org.apache.felix.framework</artifactId> |
Karl Pauls | 34724e9 | 2007-09-17 22:25:00 +0000 | [diff] [blame] | 125 | <version>1.1.0-SNAPSHOT</version> |
Karl Pauls | 39f9e54 | 2007-09-12 18:18:40 +0000 | [diff] [blame] | 126 | </artifactItem> |
| 127 | </artifactItems> |
| 128 | </configuration> |
| 129 | </execution> |
| 130 | <execution> |
Karl Pauls | aa573ad | 2007-07-19 19:09:54 +0000 | [diff] [blame] | 131 | <id>copy</id> |
| 132 | <phase>install</phase> |
| 133 | <goals> |
| 134 | <goal>copy</goal> |
| 135 | </goals> |
| 136 | <configuration> |
| 137 | <artifactItems> |
| 138 | <artifactItem> |
| 139 | <groupId>${pom.groupId}</groupId> |
| 140 | <artifactId>org.apache.felix.shell</artifactId> |
Karl Pauls | 34724e9 | 2007-09-17 22:25:00 +0000 | [diff] [blame] | 141 | <version>1.1.0-SNAPSHOT</version> |
Karl Pauls | aa573ad | 2007-07-19 19:09:54 +0000 | [diff] [blame] | 142 | <type>jar</type> |
| 143 | <overWrite>true</overWrite> |
| 144 | <outputDirectory>${project.build.directory}/bundle</outputDirectory > |
| 145 | </artifactItem> |
| 146 | <artifactItem> |
| 147 | <groupId>${pom.groupId}</groupId> |
| 148 | <artifactId>org.apache.felix.shell.tui</artifactId> |
Karl Pauls | 34724e9 | 2007-09-17 22:25:00 +0000 | [diff] [blame] | 149 | <version>1.1.0-SNAPSHOT</version> |
Karl Pauls | aa573ad | 2007-07-19 19:09:54 +0000 | [diff] [blame] | 150 | <type>jar</type> |
| 151 | <overWrite>true</overWrite> |
| 152 | <outputDirectory>${project.build.directory}/bundle</outputDirectory > |
| 153 | </artifactItem> |
| 154 | <artifactItem> |
| 155 | <groupId>${pom.groupId}</groupId> |
| 156 | <artifactId>org.apache.felix.bundlerepository</artifactId> |
Karl Pauls | 34724e9 | 2007-09-17 22:25:00 +0000 | [diff] [blame] | 157 | <version>1.1.0-SNAPSHOT</version> |
Karl Pauls | aa573ad | 2007-07-19 19:09:54 +0000 | [diff] [blame] | 158 | <type>jar</type> |
| 159 | <overWrite>true</overWrite> |
| 160 | <outputDirectory>${project.build.directory}/bundle</outputDirectory > |
| 161 | </artifactItem> |
| 162 | </artifactItems> |
| 163 | </configuration> |
| 164 | </execution> |
| 165 | </executions> |
| 166 | </plugin> |
| 167 | <plugin> |
Alex Karasulu | c15532e | 2006-03-06 19:42:54 +0000 | [diff] [blame] | 168 | <artifactId>maven-antrun-plugin</artifactId> |
| 169 | <executions> |
| 170 | <execution> |
| 171 | <phase>install</phase> |
| 172 | <configuration> |
| 173 | <tasks> |
| 174 | <delete dir="${basedir}/bin"/> |
| 175 | <mkdir dir="${basedir}/bin"/> |
Alex Karasulu | c15532e | 2006-03-06 19:42:54 +0000 | [diff] [blame] | 176 | <delete dir="${basedir}/conf"/> |
| 177 | <mkdir dir="${basedir}/conf"/> |
| 178 | <delete dir="${basedir}/bundle"/> |
Karl Pauls | aa573ad | 2007-07-19 19:09:54 +0000 | [diff] [blame] | 179 | <copy file="${basedir}/target/org.apache.felix.main-${pom.version}.jar" |
| 180 | tofile="${basedir}/bin/felix.jar"/> |
| 181 | <copy file="${basedir}/target/classes/config.properties" |
| 182 | todir="${basedir}/conf"/> |
| 183 | <move file="${basedir}/target/bundle" |
| 184 | todir="${basedir}"/> |
Alex Karasulu | c15532e | 2006-03-06 19:42:54 +0000 | [diff] [blame] | 185 | </tasks> |
| 186 | </configuration> |
| 187 | <goals> |
| 188 | <goal>run</goal> |
| 189 | </goals> |
| 190 | </execution> |
| 191 | </executions> |
| 192 | </plugin> |
Alex Karasulu | 07d2049 | 2006-03-06 15:35:44 +0000 | [diff] [blame] | 193 | </plugins> |
Alex Karasulu | c15532e | 2006-03-06 19:42:54 +0000 | [diff] [blame] | 194 | <resources> |
| 195 | <resource> |
| 196 | <directory>src/main/resources</directory> |
| 197 | <filtering>true</filtering> |
| 198 | </resource> |
Richard S. Hall | 1da4e54 | 2006-11-02 21:45:44 +0000 | [diff] [blame] | 199 | </resources> |
Alex Karasulu | 07d2049 | 2006-03-06 15:35:44 +0000 | [diff] [blame] | 200 | </build> |
| 201 | </project> |