Clement Escoffier | 9c22e2d | 2009-04-08 15:14:15 +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 | --> |
| 19 | <project> |
| 20 | <parent> |
| 21 | <groupId>org.apache.felix</groupId> |
| 22 | <artifactId>transaction</artifactId> |
| 23 | <version>0.9.0-SNAPSHOT</version> |
| 24 | </parent> |
| 25 | |
| 26 | <modelVersion>4.0.0</modelVersion> |
| 27 | <artifactId>org.apache.felix.transaction</artifactId> |
| 28 | <groupId>org.apache.felix</groupId> |
| 29 | <name>Apache Felix Transaction</name> |
| 30 | <version>0.9.0-SNAPSHOT</version> |
| 31 | <packaging>bundle</packaging> |
| 32 | |
| 33 | <properties> |
| 34 | <geronimo-transaction-version>2.1.2</geronimo-transaction-version> |
| 35 | </properties> |
| 36 | |
| 37 | <dependencies> |
| 38 | <dependency> |
| 39 | <groupId>org.apache.felix</groupId> |
| 40 | <artifactId>org.osgi.core</artifactId> |
| 41 | <version>1.2.0</version> |
| 42 | <scope>provided</scope> |
| 43 | </dependency> |
| 44 | <dependency> |
| 45 | <groupId>org.apache.felix</groupId> |
| 46 | <artifactId>org.osgi.compendium</artifactId> |
| 47 | <version>1.2.0</version> |
| 48 | <scope>provided</scope> |
| 49 | </dependency> |
| 50 | <dependency> |
| 51 | <groupId>org.apache.geronimo.components</groupId> |
| 52 | <artifactId>geronimo-transaction</artifactId> |
| 53 | <version>2.1.2</version> |
| 54 | </dependency> |
| 55 | <dependency> |
| 56 | <groupId>org.objectweb.howl</groupId> |
| 57 | <artifactId>howl</artifactId> |
| 58 | <version>1.0.1-1</version> |
| 59 | </dependency> |
| 60 | <dependency> |
| 61 | <groupId>org.springframework</groupId> |
| 62 | <artifactId>spring-tx</artifactId> |
| 63 | <version>2.5.6</version> |
| 64 | <optional>true</optional> |
| 65 | </dependency> |
| 66 | </dependencies> |
| 67 | |
| 68 | <build> |
| 69 | <plugins> |
| 70 | <plugin> |
| 71 | <artifactId>maven-compiler-plugin</artifactId> |
| 72 | <configuration> |
| 73 | <source>1.5</source> |
| 74 | <target>1.5</target> |
| 75 | </configuration> |
| 76 | </plugin> |
| 77 | <plugin> |
| 78 | <groupId>org.apache.felix</groupId> |
| 79 | <artifactId>maven-bundle-plugin</artifactId> |
| 80 | <version>2.0.0</version> |
| 81 | <extensions>true</extensions> |
| 82 | <configuration> |
| 83 | <instructions> |
| 84 | <Import-Package> |
| 85 | org.springframework.*;resolution:=optional, |
| 86 | * |
| 87 | </Import-Package> |
| 88 | <Export-Package> |
| 89 | org.apache.geronimo.transaction*;version="${geronimo-transaction-version}" |
| 90 | </Export-Package> |
| 91 | <Private-Package> |
| 92 | org.objectweb.howl.log*, |
| 93 | org.apache.felix.transaction.internal |
| 94 | </Private-Package> |
| 95 | <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName> |
| 96 | <Bundle-Activator>org.apache.felix.transaction.internal.Activator</Bundle-Activator> |
| 97 | <Export-Service> |
| 98 | javax.transaction.TransactionManager, |
| 99 | javax.transaction.TransactionSynchronizationRegistry, |
| 100 | javax.transaction.UserTransaction, |
| 101 | org.apache.geronimo.transaction.manager.RecoverableTransactionManager |
| 102 | </Export-Service> |
| 103 | </instructions> |
| 104 | </configuration> |
| 105 | </plugin> |
| 106 | <plugin> |
| 107 | <groupId>org.apache.maven.plugins</groupId> |
| 108 | <artifactId>maven-dependency-plugin</artifactId> |
| 109 | <executions> |
| 110 | <execution> |
| 111 | <id>unpack-sources</id> |
| 112 | <phase>generate-sources</phase> |
| 113 | <goals> |
| 114 | <goal>unpack</goal> |
| 115 | </goals> |
| 116 | <configuration> |
| 117 | <artifactItems> |
| 118 | <artifactItem> |
| 119 | <groupId>org.apache.geronimo.components</groupId> |
| 120 | <artifactId>geronimo-transaction</artifactId> |
| 121 | <classifier>sources</classifier> |
| 122 | </artifactItem> |
| 123 | <artifactItem> |
| 124 | <groupId>org.objectweb.howl</groupId> |
| 125 | <artifactId>howl</artifactId> |
| 126 | <classifier>sources</classifier> |
| 127 | </artifactItem> |
| 128 | </artifactItems> |
| 129 | <outputDirectory>${project.build.directory}/sources</outputDirectory> |
| 130 | </configuration> |
| 131 | </execution> |
| 132 | </executions> |
| 133 | </plugin> |
| 134 | <plugin> |
| 135 | <artifactId>maven-antrun-plugin</artifactId> |
| 136 | <executions> |
| 137 | <execution> |
| 138 | <phase>generate-sources</phase> |
| 139 | <configuration> |
| 140 | <tasks> |
| 141 | <copy todir="${project.build.directory}/sources"> |
| 142 | <fileset dir="${basedir}/src/main/java" /> |
| 143 | </copy> |
| 144 | </tasks> |
| 145 | </configuration> |
| 146 | <goals> |
| 147 | <goal>run</goal> |
| 148 | </goals> |
| 149 | </execution> |
| 150 | </executions> |
| 151 | </plugin> |
| 152 | <plugin> |
| 153 | <groupId>org.apache.maven.plugins</groupId> |
| 154 | <artifactId>maven-source-plugin</artifactId> |
| 155 | <executions> |
| 156 | <execution> |
| 157 | <id>attach-sources</id> |
| 158 | <phase>package</phase> |
| 159 | <goals> |
| 160 | <goal>jar</goal> |
| 161 | </goals> |
| 162 | </execution> |
| 163 | </executions> |
| 164 | </plugin> |
Clement Escoffier | 4ae8697 | 2009-04-09 12:09:09 +0000 | [diff] [blame] | 165 | <!--<plugin> |
Clement Escoffier | 9c22e2d | 2009-04-08 15:14:15 +0000 | [diff] [blame] | 166 | <groupId>org.apache.maven.plugins</groupId> |
| 167 | <artifactId>maven-javadoc-plugin</artifactId> |
| 168 | <executions> |
| 169 | <execution> |
| 170 | <id>package1</id> |
| 171 | <phase>package</phase> |
| 172 | <goals> |
| 173 | <goal>jar</goal> |
| 174 | </goals> |
| 175 | <configuration> |
| 176 | <minmemory>128m</minmemory> |
| 177 | <maxmemory>512m</maxmemory> |
| 178 | <sourcepath>${project.build.directory}/sources</sourcepath> |
| 179 | </configuration> |
| 180 | </execution> |
| 181 | </executions> |
Clement Escoffier | 4ae8697 | 2009-04-09 12:09:09 +0000 | [diff] [blame] | 182 | </plugin> --> |
Clement Escoffier | 9c22e2d | 2009-04-08 15:14:15 +0000 | [diff] [blame] | 183 | <plugin> |
| 184 | <groupId>org.apache.maven.plugins</groupId> |
| 185 | <artifactId>maven-shade-plugin</artifactId> |
| 186 | <version>1.1</version> |
| 187 | <executions> |
| 188 | <execution> |
| 189 | <phase>package</phase> |
| 190 | <goals> |
| 191 | <goal>shade</goal> |
| 192 | </goals> |
| 193 | <configuration> |
| 194 | <artifactSet> |
| 195 | <includes> |
| 196 | <include>org.apache.geronimo.components:geronimo-transaction</include> |
| 197 | <include>org.objectweb.howl:howl</include> |
| 198 | <include>${project.groupId}:${project.artifactId}</include> |
| 199 | </includes> |
| 200 | </artifactSet> |
| 201 | <filters> |
| 202 | <filter> |
| 203 | <artifact>org.apache.geronimo.components:geronimo-transaction</artifact> |
| 204 | <excludes> |
| 205 | <exclude>org/**</exclude> |
| 206 | </excludes> |
| 207 | </filter> |
| 208 | <filter> |
| 209 | <artifact>org.objectweb.howl:howl</artifact> |
| 210 | <excludes> |
| 211 | <exclude>org/**</exclude> |
| 212 | </excludes> |
| 213 | </filter> |
| 214 | </filters> |
| 215 | <createSourcesJar>true</createSourcesJar> |
| 216 | <promoteTransitiveDependencies>true</promoteTransitiveDependencies> |
| 217 | <createDependencyReducedPom>true</createDependencyReducedPom> |
| 218 | </configuration> |
| 219 | </execution> |
| 220 | </executions> |
| 221 | </plugin> |
| 222 | </plugins> |
| 223 | </build> |
| 224 | |
| 225 | </project> |