jee-agents-sdk
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.openidentityplatform.openam.agents</groupId>
<artifactId>jee-agents-sdk</artifactId>
<version>5.0.3</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<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>
<artifactId>jee-agents</artifactId>
<groupId>org.openidentityplatform.openam.agents</groupId>
<version>5.0.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>jee-agents-sdk</artifactId>
<name>OpenAM JavaEE Policy Agents AgentSDK</name>
<description>OpenAM JavaEE Policy Agents AgentSDK</description>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>groovy-maven-plugin</artifactId>
<executions>
<execution>
<phase>process-sources</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<source>project.properties["jee-agents.build.machine"] = InetAddress.getLocalHost().getHostName()</source>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>maven-replacer-plugin</artifactId>
<executions>
<execution>
<phase>process-sources</phase>
<goals>
<goal>replace</goal>
</goals>
</execution>
</executions>
<configuration>
<file>${version.template.file}</file>
<outputFile>${version.file}</outputFile>
<replacements>
<replacement>
<token>@BUILD_REVISION@</token>
<value>${svn-revision.revision}</value>
</replacement>
<replacement>
<token>@BUILD_DATE@</token>
<value>${maven.build.timestamp}</value>
</replacement>
<replacement>
<token>@BUILD_VERSION@</token>
<value>${project.version}</value>
</replacement>
<replacement>
<token>@BUILD_MACHINE@</token>
<value>${jee-agents.build.machine}</value>
</replacement>
</replacements>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>with-lib</classifier>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>agent-lib/</classpathPrefix>
<classpathLayoutType>simple</classpathLayoutType>
<useUniqueVersions>false</useUniqueVersions>
</manifest>
</archive>
</configuration>
</execution>
</executions>
<configuration>
<archive>
<index>true</index>
<manifest>
<addClasspath>false</addClasspath>
</manifest>
<manifestEntries>
<Specification-Title>OpenAM JavaEE Policy Agents AgentSDK</Specification-Title>
<Specification-Version>${project.version} - ${maven.build.timestamp}</Specification-Version>
<Specification-Vendor>Open Identity Platform Community</Specification-Vendor>
<Implementation-Title>OpenAM JavaEE Policy Agents AgentSDK</Implementation-Title>
<Implementation-Version>${project.version} - ${maven.build.timestamp}</Implementation-Version>
<Implementation-Vendor>Open Identity Platform Community</Implementation-Vendor>
<Built-By>${user.name}</Built-By>
<Build-Jdk>${java.version}</Build-Jdk>
<Build-Time>${maven.build.timestamp}</Build-Time>
<Version>${project.version}</Version>
<Create-On>${maven.build.timestamp}</Create-On>
<Class-Path>agent-locale/</Class-Path>
<License />
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>3.6.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<minimizeJar>true</minimizeJar>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>uber</shadedClassifierName>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/agent-lib</outputDirectory>
<useRepositoryLayout>false</useRepositoryLayout>
<includeScope>compile</includeScope>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>6.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jakarta.platform</groupId>
<artifactId>jakarta.jakartaee-api</artifactId>
<version>9.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.14.3</version>
<scope>test</scope>
<exclusions>
<exclusion>
<artifactId>jcommander</artifactId>
<groupId>com.beust</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>2.0.17</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
<version>11.0.26</version>
<scope>test</scope>
<exclusions>
<exclusion>
<artifactId>jetty-http</artifactId>
<groupId>org.eclipse.jetty</groupId>
</exclusion>
<exclusion>
<artifactId>jetty-io</artifactId>
<groupId>org.eclipse.jetty</groupId>
</exclusion>
<exclusion>
<artifactId>jetty-jakarta-servlet-api</artifactId>
<groupId>org.eclipse.jetty.toolchain</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlet</artifactId>
<version>11.0.26</version>
<scope>test</scope>
<exclusions>
<exclusion>
<artifactId>jetty-security</artifactId>
<groupId>org.eclipse.jetty</groupId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<properties>
<version.template.file>src/main/java/org/forgerock/openam/util/Version.java.template</version.template.file>
<version.file>src/main/java/org/forgerock/openam/util/Version.java</version.file>
</properties>
</project>