p11proxy-server
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.xipki.p11proxy.assemblies</groupId>
<artifactId>p11proxy-server</artifactId>
<version>4.0.0</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2013 - 2018 Lijun Liao
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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xipki.p11proxy.assemblies</groupId>
<artifactId>assemblies</artifactId>
<version>4.0.0</version>
</parent>
<artifactId>p11proxy-server</artifactId>
<packaging>pom</packaging>
<name>XiPKI PKCS#11 Proxy :: Assemblies :: ${project.artifactId}</name>
<properties>
<app.name>p11proxy-server</app.name>
<output.directory>${project.build.directory}/classes</output.directory>
<patchkaraf.repos>mvn:org.xipki.p11proxy.features/p11proxy-server/${project.version}/xml/features</patchkaraf.repos>
<patchkaraf.features>(aries-blueprint/${karaf.version},netty),xipki-httpserver,p11proxy-server</patchkaraf.features>
</properties>
<dependencies>
<dependency>
<!-- project base features -->
<groupId>org.xipki.p11proxy.features</groupId>
<artifactId>p11proxy-server</artifactId>
<version>${project.version}</version>
<classifier>features</classifier>
<type>xml</type>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/filtered</directory>
<filtering>true</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
<resource>
<directory>src/main/unfiltered</directory>
<filtering>false</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
<resource>
<directory>../shared/src/main/filtered</directory>
<filtering>true</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
<resource>
<directory>../shared/src/main/unfiltered</directory>
<filtering>false</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>filter</id>
<phase>generate-resources</phase>
<goals>
<goal>resources</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- include additional artifacts -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<!-- Uncompress the standard Karaf distribution -->
<id>unpack</id>
<phase>generate-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.apache.karaf</groupId>
<artifactId>apache-karaf-minimal</artifactId>
<version>${karaf.version}</version>
<type>tar.gz</type>
<outputDirectory>${project.build.directory}</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
<execution>
<!-- Extract the XSD schemas -->
<id>unpack-xsd</id>
<phase>generate-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<outputDirectory>${output.directory}/xipki</outputDirectory>
<artifactItems>
<artifactItem>
<groupId>org.xipki</groupId>
<artifactId>security-pkcs11</artifactId>
<version>${xipki.version}</version>
<type>jar</type>
<includes>xsd/**</includes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
<execution>
<!-- Extract the TLS keys -->
<id>unpack-tlskeys</id>
<phase>generate-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<outputDirectory>${output.directory}/xipki/security/tlskeys</outputDirectory>
<artifactItems>
<artifactItem>
<groupId>org.xipki.tools</groupId>
<artifactId>tlskeys-example</artifactId>
<classifier>rsa</classifier>
<version>${xipki.tools.version}</version>
<type>zip</type>
<includes>tls-server.p12,tls-ca-cert.p12</includes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<extensions>true</extensions>
<executions>
<execution>
<id>add-features-to-repo</id>
<phase>generate-resources</phase>
<goals>
<goal>features-add-to-repository</goal>
</goals>
<configuration>
<!-- where to put the artifacts -->
<repository>${output.directory}/system</repository>
<descriptors>
<descriptor>mvn:org.xipki.p11proxy.features/p11proxy-server/${project.version}/xml/features</descriptor>
<descriptor>mvn:org.apache.karaf.features/standard/${karaf.version}/xml/features</descriptor>
</descriptors>
<features>
<feature>aries-blueprint</feature>
<feature>wrap</feature>
<!-- project-core features -->
<feature>xipki-httpserver</feature>
<feature>p11proxy-server</feature>
</features>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>prepare-package</phase>
<configuration>
<target>
<java failonerror="true" classname="org.xipki.patchkaraf.PatchFeature">
<arg value="--file"/>
<arg file="${project.build.directory}/apache-karaf-minimal-${karaf.version}/etc/org.apache.karaf.features.cfg"/>
<arg value="--repos"/>
<arg value="${patchkaraf.repos}"/>
<arg value="--features"/>
<arg value="${patchkaraf.features}"/>
</java>
<java failonerror="true" classname="org.xipki.patchkaraf.PatchPaxUrlMvn">
<arg value="--file"/>
<arg file="${project.build.directory}/apache-karaf-minimal-${karaf.version}/etc/org.ops4j.pax.url.mvn.cfg"/>
</java>
<java failonerror="true" classname="org.xipki.patchkaraf.PatchPaxLogging">
<arg value="--file"/>
<arg file="${project.build.directory}/apache-karaf-minimal-${karaf.version}/etc/org.ops4j.pax.logging.cfg"/>
</java>
<java failonerror="true" classname="org.xipki.patchkaraf.PatchAppend">
<arg value="--backup"/>
<arg value="no"/>
<arg value="--file"/>
<arg file="${project.build.directory}/apache-karaf-minimal-${karaf.version}/etc/org.ops4j.pax.logging.cfg"/>
<arg value="--value-file"/>
<arg file="src/main/patchkaraf/org.ops4j.pax.logging.cfg.patch"/>
</java>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>unix-bin</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>src/main/descriptors/assembly-main.xml</descriptor>
</descriptors>
<appendAssemblyId>false</appendAssemblyId>
<tarLongFileMode>posix</tarLongFileMode>
<!-- Don't install/publish the result -->
<attach>false</attach>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>