From 77f8021b8a8aeef7b1256958fb8624cce98898bd Mon Sep 17 00:00:00 2001
From: vharseko <vharseko@3a-systems.ru>
Date: Tue, 21 Mar 2023 13:38:17 +0000
Subject: [PATCH] FIX add-source for generate-sources (#275)

---
 opendj-config/pom.xml |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/opendj-config/pom.xml b/opendj-config/pom.xml
index 5c4be67..6c6a75c 100644
--- a/opendj-config/pom.xml
+++ b/opendj-config/pom.xml
@@ -140,6 +140,24 @@
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>build-helper-maven-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>process-sources</phase>
+            <goals>
+              <goal>add-source</goal>
+            </goals>
+            <configuration>
+              <sources>
+                <source>target/generated-sources/config</source>
+                <source>target/generated-sources/messages</source>
+              </sources>
+            </configuration>
+          </execution>
+         </executions>
+      </plugin>
       <!-- Validate core components XML definition files and generate the components. -->
       <plugin>
         <groupId>org.openidentityplatform.opendj</groupId>

--
Gitblit v1.10.0