Chetan Mehrotra | 085b875 | 2013-03-26 13:53:37 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | <modelVersion>4.0.0</modelVersion> |
| 6 | |
| 7 | <parent> |
| 8 | <groupId>org.apache.felix</groupId> |
| 9 | <artifactId>felix-parent</artifactId> |
| 10 | <version>2.1</version> |
| 11 | <relativePath>../../../pom/pom.xml</relativePath> |
| 12 | </parent> |
| 13 | |
| 14 | <groupId>org.apache.felix.example</groupId> |
| 15 | <artifactId>org.apache.felix.example.jaas.jdbc-h2</artifactId> |
| 16 | <version>0.0.1-SNAPSHOT</version> |
| 17 | <packaging>bundle</packaging> |
| 18 | |
| 19 | <name>JAAS Example - H2 Db</name> |
| 20 | |
| 21 | <prerequisites> |
| 22 | <maven>3.0.3</maven> |
| 23 | </prerequisites> |
| 24 | |
| 25 | <build> |
| 26 | <plugins> |
| 27 | <plugin> |
| 28 | <groupId>org.apache.felix</groupId> |
| 29 | <artifactId>maven-bundle-plugin</artifactId> |
| 30 | <version>2.3.5</version> |
| 31 | <extensions>true</extensions> |
| 32 | <configuration> |
| 33 | <obrRepository>NONE</obrRepository> |
| 34 | <instructions> |
| 35 | <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> |
| 36 | <Bundle-Activator>org.apache.felix.example.jaas.jdbc.internal.H2Activator</Bundle-Activator> |
| 37 | <Embed-Dependency> |
| 38 | h2 |
| 39 | </Embed-Dependency> |
| 40 | <Import-Package> |
| 41 | org.osgi.service.jdbc.*; |
| 42 | org.apache.lucene.*; |
| 43 | javax.transaction.*;resolution:=optional, |
| 44 | * |
| 45 | </Import-Package> |
| 46 | </instructions> |
| 47 | </configuration> |
| 48 | </plugin> |
| 49 | <plugin> |
| 50 | <groupId>org.apache.felix</groupId> |
| 51 | <artifactId>maven-scr-plugin</artifactId> |
| 52 | <version>1.11.0</version> |
| 53 | <executions> |
| 54 | <execution> |
| 55 | <id>generate-scr-scrdescriptor</id> |
| 56 | <goals> |
| 57 | <goal>scr</goal> |
| 58 | </goals> |
| 59 | </execution> |
| 60 | </executions> |
| 61 | </plugin> |
| 62 | <plugin> |
| 63 | <groupId>org.apache.maven.plugins</groupId> |
| 64 | <artifactId>maven-compiler-plugin</artifactId> |
| 65 | <configuration> |
| 66 | <source>1.6</source> |
| 67 | <target>1.6</target> |
| 68 | </configuration> |
| 69 | </plugin> |
| 70 | <plugin> |
| 71 | <groupId>org.apache.rat</groupId> |
| 72 | <artifactId>apache-rat-plugin</artifactId> |
| 73 | <configuration> |
| 74 | <includes> |
| 75 | <include>src/**</include> |
| 76 | </includes> |
| 77 | <excludes> |
| 78 | <exclude>src/main/resources/*.csv</exclude> |
| 79 | </excludes> |
| 80 | </configuration> |
| 81 | </plugin> |
| 82 | </plugins> |
| 83 | </build> |
| 84 | |
| 85 | <dependencies> |
| 86 | <dependency> |
| 87 | <groupId>org.osgi</groupId> |
| 88 | <artifactId>org.osgi.core</artifactId> |
| 89 | <version>4.2.0</version> |
| 90 | <scope>provided</scope> |
| 91 | </dependency> |
| 92 | <dependency> |
| 93 | <groupId>org.osgi</groupId> |
| 94 | <artifactId>org.osgi.compendium</artifactId> |
| 95 | <version>4.2.0</version> |
| 96 | <scope>provided</scope> |
| 97 | </dependency> |
| 98 | <dependency> |
| 99 | <groupId>org.apache.felix</groupId> |
| 100 | <artifactId>org.apache.felix.scr.annotations</artifactId> |
| 101 | <version>1.9.0</version> |
| 102 | <scope>provided</scope> |
| 103 | </dependency> |
| 104 | <dependency> |
| 105 | <groupId>javax.servlet</groupId> |
| 106 | <artifactId>servlet-api</artifactId> |
| 107 | <version>2.4</version> |
| 108 | <scope>provided</scope> |
| 109 | </dependency> |
| 110 | <dependency> |
| 111 | <groupId>com.h2database</groupId> |
| 112 | <artifactId>h2</artifactId> |
| 113 | <version>1.3.171</version> |
| 114 | <scope>provided</scope> |
| 115 | </dependency> |
| 116 | <dependency> |
| 117 | <groupId>org.slf4j</groupId> |
| 118 | <artifactId>slf4j-api</artifactId> |
| 119 | <version>1.6.4</version> |
| 120 | <scope>provided</scope> |
| 121 | </dependency> |
| 122 | </dependencies> |
| 123 | |
| 124 | </project> |