| POM: |
Show
hide
<?xml version='1.0' encoding='UTF-8'?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-all-parent</artifactId>
<version>7.2.0.Final</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>infinispan-remote</artifactId>
<packaging>jar</packaging>
<name>Infinispan Remote Client</name>
<description>Infinispan Remote Client All-in-One module</description>
<properties>
<module.skipComponentMetaDataProcessing>true</module.skipComponentMetaDataProcessing>
<intermediary_jar_name>intermediary-${project.build.finalName}</intermediary_jar_name>
<intermediary_jar_path>${project.build.directory}/${intermediary_jar_name}.jar</intermediary_jar_path>
</properties>
<dependencies>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-commons</artifactId>
<optional>${uberjar.deps.optional}</optional>
</dependency>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-client-hotrod</artifactId>
<optional>${uberjar.deps.optional}</optional>
</dependency>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-query-dsl</artifactId>
<optional>${uberjar.deps.optional}</optional>
</dependency>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-remote-query-client</artifactId>
<optional>${uberjar.deps.optional}</optional>
</dependency>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-cdi</artifactId>
<optional>${uberjar.deps.optional}</optional>
<exclusions>
<exclusion>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jboss.marshalling</groupId>
<artifactId>jboss-marshalling-osgi</artifactId>
<optional>${uberjar.deps.optional}</optional>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}-${project.version}</finalName>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>features.xml</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<id>none-default</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<finalName>${intermediary_jar_name}</finalName>
<artifactSet>
<excludes>
<exclude>org.infinispan:infinispan-remote</exclude>
<exclude>log4j:log4j:jar:</exclude>
<exclude>net.jcip:jcip-annotations:jar:</exclude>
<exclude>org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.1_spec:jar:</exclude>
<exclude>org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:</exclude>
<exclude>javax.annotation:jsr250-api:jar:</exclude>
<exclude>javax.cache:cache-api:jar:</exclude>
<exclude>javax.enterprise:cdi-api:jar:</exclude>
<exclude>javax.inject:javax.inject:jar:</exclude>
<exclude>org.osgi:org.osgi.core:jar:</exclude>
<exclude>org.osgi:org.osgi.compendium:jar:</exclude>
</excludes>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>INSTALL.html</exclude>
<exclude>LICENSE</exclude>
<exclude>README</exclude>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
<exclude>META-INF/ASL2.0</exclude>
<exclude>META-INF/DEPENDENCIES</exclude>
<exclude>META-INF/DEPENDENCIES.txt</exclude>
<exclude>META-INF/LICENSE</exclude>
<exclude>META-INF/LICENSE.txt</exclude>
<exclude>META-INF/NOTICE</exclude>
<exclude>META-INF/NOTICE.txt</exclude>
</excludes>
</filter>
</filters>
<createSourcesJar>true</createSourcesJar>
<relocations>
<relocation>
<pattern>org.apache</pattern>
<shadedPattern>infinispan.org.apache</shadedPattern>
</relocation>
<relocation>
<pattern>com.google</pattern>
<shadedPattern>infinispan.com.google</shadedPattern>
</relocation>
<relocation>
<pattern>org.jboss.logging</pattern>
<shadedPattern>infinispan.org.jboss.logging</shadedPattern>
</relocation>
</relocations>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
<resources>
<resource>blueprint.xml</resource>
<resource>features.xml</resource>
</resources>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
<transformer implementation="org.apache.maven.plugins.shade.resource.XmlAppendingTransformer">
<resource>META-INF/beans.xml</resource>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.4.0</version>
<executions>
<execution>
<id>default-bundle</id>
<phase>none</phase>
</execution>
<execution>
<id>bundle-package</id>
<phase>package</phase>
<goals>
<goal>bundle</goal>
</goals>
<configuration>
<instructions>
<Include-Resource>
@${intermediary_jar_path},
/features.xml=${project.basedir}/target/classes/features.xml
</Include-Resource>
<_exportcontents>
org.infinispan.client.hotrod.*,
org.infinispan.commons.*,
org.infinispan.query.*,
org.infinispan.protostream.*;version=${version.protostream}
</_exportcontents>
<Export-Package>
!${project.groupId}.*.logging
</Export-Package>
<Import-Package>
!infinispan.*,
!org.infinispan.*,
!javax.*,
!sun.misc,
!sun.reflect,
!com.sun.jdi.*,
!net.jcip.annotations,
!org.jboss.logmanager,
!org.jboss.modules,
*
</Import-Package>
<DynamicImport-Package>*</DynamicImport-Package>
</instructions>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>target/classes/features.xml</file>
<type>xml</type>
<classifier>features</classifier>
</artifact>
<artifact>
<file>target/${project.build.finalName}-shaded-sources.jar</file>
<type>jar</type>
<classifier>sources</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>build-test-jar</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
|