Skip to content

Commit b3e9e2f

Browse files
JBCongdonclaude
andcommitted
fix(test): add nifi-security-utils-api to resolve TlsConfiguration ClassNotFoundException
SSLContextService in NiFi 2.x references TlsConfiguration (org.apache.nifi.security.util) at class-load time. When Mockito/byte-buddy instruments the interface, it must resolve all referenced types — including the return type of getTlsConfiguration() — or fail with ClassNotFoundException. nifi-security-utils-api is the correct Maven Central artifact that contains TlsConfiguration for NiFi 2.x; nifi-security-utils is not published. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9bcb952 commit b3e9e2f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

nifi-tdf-processors/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@
9696
<version>1.14.17</version>
9797
<scope>test</scope>
9898
</dependency>
99+
<!-- TlsConfiguration referenced by SSLContextService; not a transitive dep in NiFi 2.x -->
100+
<dependency>
101+
<groupId>org.apache.nifi</groupId>
102+
<artifactId>nifi-security-utils-api</artifactId>
103+
<version>${nifi.version}</version>
104+
<scope>test</scope>
105+
</dependency>
99106
</dependencies>
100107
<build>
101108
<plugins>

0 commit comments

Comments
 (0)