|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | + |
| 6 | + <modelVersion>4.0.0</modelVersion> |
| 7 | + |
| 8 | + <groupId>org.dogtagpki.pki</groupId> |
| 9 | + <artifactId>pki-kratool</artifactId> |
| 10 | + <!-- IMPORTANT: Keep this version in sync with pki-kratool.spec --> |
| 11 | + <version>11.10.0</version> |
| 12 | + <packaging>jar</packaging> |
| 13 | + |
| 14 | + <name>PKI KRATool</name> |
| 15 | + <description>Standalone tool for KRA archived keys migration with cross-scheme support</description> |
| 16 | + |
| 17 | + <properties> |
| 18 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 19 | + <maven.compiler.source>17</maven.compiler.source> |
| 20 | + <maven.compiler.target>17</maven.compiler.target> |
| 21 | + </properties> |
| 22 | + |
| 23 | + <!-- |
| 24 | + Note on dependency management approach: |
| 25 | +
|
| 26 | + This POM uses <scope>system</scope> with <systemPath> for several dependencies, |
| 27 | + which is intentional for KRATool's specific use case: |
| 28 | +
|
| 29 | + 1. STANDALONE MIGRATION TOOL: KRATool runs on production PKI systems where these |
| 30 | + libraries are already installed by the OS package manager at known locations. |
| 31 | +
|
| 32 | + 2. VERSION CONSISTENCY: Using the exact same JARs as the deployed PKI system |
| 33 | + ensures cryptographic compatibility and avoids version conflicts during |
| 34 | + security-sensitive key migration operations. |
| 35 | +
|
| 36 | + 3. SECURITY & AUDITABILITY: OS-packaged libraries receive security updates through |
| 37 | + standard system update mechanisms and are tracked by package management. |
| 38 | +
|
| 39 | + 4. BUILD SUPPORT: Corresponding BuildRequires in pki-kratool.spec ensure these |
| 40 | + packages are installed during RPM build in clean environments. |
| 41 | +
|
| 42 | + While <scope>provided</scope> would be cleaner from a Maven perspective, system |
| 43 | + scope provides explicit path guarantees needed for a tool targeting specific |
| 44 | + RHEL versions with known filesystem layouts. |
| 45 | + --> |
| 46 | + |
| 47 | + <dependencies> |
| 48 | + <!-- JSS --> |
| 49 | + <dependency> |
| 50 | + <groupId>org.dogtagpki.jss</groupId> |
| 51 | + <artifactId>jss-base</artifactId> |
| 52 | + <version>5.5.0</version> |
| 53 | + <scope>system</scope> |
| 54 | + <systemPath>/usr/lib/java/jss/jss-base.jar</systemPath> |
| 55 | + </dependency> |
| 56 | + |
| 57 | + <!-- PKI Common --> |
| 58 | + <dependency> |
| 59 | + <groupId>org.dogtagpki.pki</groupId> |
| 60 | + <artifactId>pki-common</artifactId> |
| 61 | + <version>11.10.0</version> |
| 62 | + <scope>system</scope> |
| 63 | + <systemPath>/usr/share/java/pki/pki-common.jar</systemPath> |
| 64 | + </dependency> |
| 65 | + |
| 66 | + <!-- SLF4J --> |
| 67 | + <dependency> |
| 68 | + <groupId>org.slf4j</groupId> |
| 69 | + <artifactId>slf4j-api</artifactId> |
| 70 | + <version>1.7.36</version> |
| 71 | + <scope>system</scope> |
| 72 | + <systemPath>/usr/share/java/slf4j/slf4j-api.jar</systemPath> |
| 73 | + </dependency> |
| 74 | + |
| 75 | + <dependency> |
| 76 | + <groupId>org.slf4j</groupId> |
| 77 | + <artifactId>slf4j-jdk14</artifactId> |
| 78 | + <version>1.7.36</version> |
| 79 | + <scope>system</scope> |
| 80 | + <systemPath>/usr/share/java/slf4j/slf4j-jdk14.jar</systemPath> |
| 81 | + </dependency> |
| 82 | + |
| 83 | + <!-- LDAP SDK --> |
| 84 | + <dependency> |
| 85 | + <groupId>org.mozilla</groupId> |
| 86 | + <artifactId>ldapjdk</artifactId> |
| 87 | + <version>5.5.0</version> |
| 88 | + <scope>system</scope> |
| 89 | + <systemPath>/usr/share/java/ldapjdk.jar</systemPath> |
| 90 | + </dependency> |
| 91 | + |
| 92 | + <!-- Apache Commons CLI --> |
| 93 | + <dependency> |
| 94 | + <groupId>commons-cli</groupId> |
| 95 | + <artifactId>commons-cli</artifactId> |
| 96 | + <version>1.9.0</version> |
| 97 | + <scope>system</scope> |
| 98 | + <systemPath>/usr/share/java/apache-commons-cli.jar</systemPath> |
| 99 | + </dependency> |
| 100 | + |
| 101 | + <!-- Apache Commons Lang3 --> |
| 102 | + <dependency> |
| 103 | + <groupId>org.apache.commons</groupId> |
| 104 | + <artifactId>commons-lang3</artifactId> |
| 105 | + <version>3.17.0</version> |
| 106 | + <scope>system</scope> |
| 107 | + <systemPath>/usr/share/java/apache-commons-lang3.jar</systemPath> |
| 108 | + </dependency> |
| 109 | + </dependencies> |
| 110 | + |
| 111 | + <build> |
| 112 | + <sourceDirectory>src/main/java</sourceDirectory> |
| 113 | + <plugins> |
| 114 | + <plugin> |
| 115 | + <groupId>org.apache.maven.plugins</groupId> |
| 116 | + <artifactId>maven-compiler-plugin</artifactId> |
| 117 | + <version>3.12.1</version> |
| 118 | + <configuration> |
| 119 | + <source>17</source> |
| 120 | + <target>17</target> |
| 121 | + <includes> |
| 122 | + <include>com/netscape/cmstools/KRATool.java</include> |
| 123 | + </includes> |
| 124 | + </configuration> |
| 125 | + </plugin> |
| 126 | + <plugin> |
| 127 | + <groupId>org.apache.maven.plugins</groupId> |
| 128 | + <artifactId>maven-jar-plugin</artifactId> |
| 129 | + <version>3.3.0</version> |
| 130 | + <configuration> |
| 131 | + <archive> |
| 132 | + <manifest> |
| 133 | + <mainClass>com.netscape.cmstools.KRATool</mainClass> |
| 134 | + </manifest> |
| 135 | + </archive> |
| 136 | + </configuration> |
| 137 | + </plugin> |
| 138 | + </plugins> |
| 139 | + </build> |
| 140 | + |
| 141 | +</project> |
0 commit comments