Created
October 23, 2012 13:08
-
-
Save wulfgarpro/3938644 to your computer and use it in GitHub Desktop.
pom.xml that works for postgres osgi'fication
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>pro.wulfgar.net.on.users</groupId> | |
<artifactId>postgres-jdbc</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<dependencies> | |
<dependency> | |
<groupId>org.apache.felix</groupId> | |
<artifactId>org.osgi.core</artifactId> | |
<version>1.4.0</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>postgresql</groupId> | |
<artifactId>postgresql</artifactId> | |
<version>9.1-901-1.jdbc4</version> | |
</dependency> | |
<dependency> | |
<groupId>org.postgis</groupId> | |
<artifactId>postgis-jdbc</artifactId> | |
<version>1.3.3</version> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.felix</groupId> | |
<artifactId>maven-bundle-plugin</artifactId> | |
<version>2.3.7</version> | |
<extensions>true</extensions> | |
<configuration> | |
<instructions> | |
<Embed-Dependency>*</Embed-Dependency> | |
<_exportcontents> | |
org.postgresql.*, | |
org.postgis.*, | |
org.osgi.framework.* | |
</_exportcontents> | |
<Bundle-Activator> | |
pro.wulfgar.net.on.users.postgis.PostGisJdbcRunner | |
</Bundle-Activator> | |
</instructions> | |
</configuration> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals> | |
<goal>bundle</goal> | |
<goal>wrap</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment