POM文件内容: |
<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/maven-v4_0_0.xsd">
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>6</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>bundle</packaging>
<groupId>org.idevlab</groupId>
<artifactId>rjc</artifactId>
<version>0.7</version>
<name>RJC</name>
<description>Redis Java client</description>
<url>http://e-mzungu.github.com/rjc</url>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<issueManagement>
<system>github</system>
<url>http://github.com/e-mzungu/rjc/issues</url>
</issueManagement>
<scm>
<url>http://github.com/e-mzungu/rjc</url>
<connection>scm:git:git@github.com:e-mzungu/rjc.git</connection>
<developerConnection>scm:git:git@github.com:e-mzungu/rjc.git</developerConnection>
</scm>
<developers>
<developer>
<name>Evgeny Dolgov</name>
</developer>
</developers>
<properties>
<!--redis hosts for testing purpose-->
<redis-hosts>redishost:6379,redishost:6380</redis-hosts>
<!-- Dependencies Versions -->
<commons-pool.version>1.5.6</commons-pool.version>
<slf4j.version>1.6.1</slf4j.version>
<!-- Maven Plugin Versions -->
<maven-bundle-plugin.version>2.1.0</maven-bundle-plugin.version>
<maven-compiler-plugin.version>2.0.2</maven-compiler-plugin.version>
<maven-resources-plugin.version>2.4.3</maven-resources-plugin.version>
<maven-surefire-plugin.version>2.7.1</maven-surefire-plugin.version>
<maven-failsafe-plugin.version>2.7.1</maven-failsafe-plugin.version>
<!-- Bundle Properties -->
<osgi.import>
!org.idevlab.rjc*;version=${project.version},
org.apache.commons.pool*;version="[1.4,1.5]",
org.slf4j*;version="[1.4,1.6]",
*
</osgi.import>
<osgi.dynamic.import>javax.*,org.w3c.*,org.xml.*</osgi.dynamic.import>
<osgi.export>
org.idevlab.rjc*;version=${project.version}
</osgi.export>
</properties>
<dependencies>
<dependency>
<groupId>commons-pool</groupId>
<artifactId>commons-pool</artifactId>
<version>${commons-pool.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>3.0</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<excludes>
<exclude>**/IT*.java</exclude>
<exclude>**/*IT.java</exclude>
<exclude>**/*ITCase.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven-failsafe-plugin.version}</version>
<configuration>
<systemPropertyVariables>
<redis-hosts>${redis-hosts}</redis-hosts>
</systemPropertyVariables>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>integration-test</goal>
</goals>
</execution>
<execution>
<id>verify</id>
<goals>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>${maven-bundle-plugin.version}</version>
<extensions>true</extensions>
<inherited>true</inherited>
<configuration>
<instructions>
<Bundle-Name>${project.name}</Bundle-Name>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Export-Package>${osgi.export}</Export-Package>
<Import-Package>${osgi.import}</Import-Package>
<DynamicImport-Package>${osgi.dynamic.import}</DynamicImport-Package>
<!--<Private-Package>${osgi.private}</Private-Package>-->
<!--<Require-Bundle>${osgi.bundles}</Require-Bundle>-->
</instructions>
<supportedProjectTypes>
<supportedProjectType>jar</supportedProjectType>
<supportedProjectType>bundle</supportedProjectType>
</supportedProjectTypes>
<unpackBundle>true</unpackBundle>
</configuration>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
|