123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!-- Copyright 2016-2017 Steinar Bang -->
- <!-- -->
- <!-- Licensed under the Apache License, Version 2.0 (the "License"); -->
- <!-- you may not use this file except in compliance with the License. -->
- <!-- You may obtain a copy of the License at -->
- <!-- http://www.apache.org/licenses/LICENSE-2.0 -->
- <!-- Unless required by applicable law or agreed to in writing, -->
- <!-- software distributed under the License is distributed on an "AS IS" BASIS, -->
- <!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -->
- <!-- See the License for the specific language governing permissions and limitations -->
- <!-- under the License. -->
- <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" xml:space="preserve">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <artifactId>parent</artifactId>
- <groupId>no.priv.bang.ukelonn</groupId>
- <version>1.0.0-SNAPSHOT</version>
- </parent>
- <artifactId>ukelonn.bundle.db.postgresql</artifactId>
- <name>Ukelonn webapp PostgreSQL database connection OSGi bundle</name>
- <properties>
- <Bundle-SymbolicName>no.priv.bang.ukelonn.db.postgresql</Bundle-SymbolicName>
- <karaf-feature-name>ukelonn-db-postgresql</karaf-feature-name>
- </properties>
- <dependencies>
- <dependency>
- <groupId>no.priv.bang.ukelonn</groupId>
- <artifactId>ukelonn.api</artifactId>
- <version>${project.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>no.priv.bang.ukelonn</groupId>
- <artifactId>ukelonn.bundle.db.liquibase</artifactId>
- <version>${project.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>no.priv.bang.ukelonn</groupId>
- <artifactId>ukelonn.api</artifactId>
- <version>${project.version}</version>
- <type>xml</type>
- <classifier>features</classifier>
- </dependency>
- <dependency>
- <groupId>no.priv.bang.ukelonn</groupId>
- <artifactId>ukelonn.bundle.db.liquibase</artifactId>
- <version>${project.version}</version>
- <type>xml</type>
- <classifier>features</classifier>
- </dependency>
- <dependency>
- <groupId>org.osgi</groupId>
- <artifactId>org.osgi.core</artifactId>
- </dependency>
- <dependency>
- <groupId>org.osgi</groupId>
- <artifactId>org.osgi.service.component.annotations</artifactId>
- </dependency>
- <dependency>
- <groupId>org.osgi</groupId>
- <artifactId>org.osgi.service.log</artifactId>
- </dependency>
- <dependency>
- <groupId>org.osgi</groupId>
- <artifactId>org.osgi.service.jdbc</artifactId>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- </dependency>
- <dependency>
- <groupId>org.assertj</groupId>
- <artifactId>assertj-core</artifactId>
- </dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-core</artifactId>
- </dependency>
- <dependency>
- <groupId>org.ops4j.pax.jdbc</groupId>
- <artifactId>pax-jdbc</artifactId>
- </dependency>
- <dependency>
- <groupId>org.liquibase</groupId>
- <artifactId>liquibase-core</artifactId>
- </dependency>
- <dependency>
- <groupId>org.postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <scope>compile</scope>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <extensions>true</extensions>
- <configuration>
- <supportedProjectTypes>
- <supportedProjectType>jar</supportedProjectType>
- <supportedProjectType>bundle</supportedProjectType>
- <supportedProjectType>war</supportedProjectType>
- </supportedProjectTypes>
- <instructions>
- <Bundle-SymbolicName>no.priv.bang.ukelonn.db.postgresql</Bundle-SymbolicName>
- <Bundle-Version>${project.version}</Bundle-Version>
- <Export-Package>!*</Export-Package>
- <Provide-Capability>osgi.service;effective:=active;objectClass=no.priv.bang.ukelonn.UkelonnDatabase</Provide-Capability>
- <_removeheaders>
- Include-Resource,
- Private-Package,
- Embed-Dependency,
- Embed-Transitive
- </_removeheaders>
- </instructions>
- </configuration>
- <executions>
- <execution>
- <id>bundle</id>
- <goals>
- <goal>bundle</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <systemProperties>
- <property>
- <name>derby.stream.error.file</name>
- <value>target/derby.log</value>
- </property>
- </systemProperties>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.karaf.tooling</groupId>
- <artifactId>karaf-maven-plugin</artifactId>
- <configuration>
- <primaryFeatureName>${karaf-feature-name}</primaryFeatureName>
- </configuration>
- </plugin>
- <plugin>
- <groupId>com.github.cjnygard</groupId>
- <artifactId>rest-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>update-bundle</id>
- <phase>deploy</phase>
- <goals>
- <goal>rest-request</goal>
- </goals>
- <configuration>
- <resource>system/console/bundles/${Bundle-SymbolicName}</resource>
- <method>POST</method>
- <fileset>
- <directory>${project.build.directory}</directory>
- <includes>
- <include>karaf-console-rest-post-update-arguments</include>
- </includes>
- </fileset>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </project>
|