This is an automated email from the ASF dual-hosted git repository.

lhotari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new f5fc992bb18 [fix][build] Fix IntelliJ build after Jetty 12 upgrade 
(#25155)
f5fc992bb18 is described below

commit f5fc992bb18f03ab9daddd5d3e741d84331ba7d0
Author: Lari Hotari <[email protected]>
AuthorDate: Fri Jan 16 14:29:59 2026 +0200

    [fix][build] Fix IntelliJ build after Jetty 12 upgrade (#25155)
---
 jetty-upgrade/zookeeper-with-patched-admin/pom.xml | 39 ++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/jetty-upgrade/zookeeper-with-patched-admin/pom.xml 
b/jetty-upgrade/zookeeper-with-patched-admin/pom.xml
index bf309c74b5d..6160be53985 100644
--- a/jetty-upgrade/zookeeper-with-patched-admin/pom.xml
+++ b/jetty-upgrade/zookeeper-with-patched-admin/pom.xml
@@ -102,4 +102,43 @@
       </plugin>
     </plugins>
   </build>
+  <profiles>
+    <profile>
+      <!-- Profile that is activated when using IntelliJ IDEA -->
+      <id>intellij</id>
+      <activation>
+        <property>
+          <name>idea.maven.embedder.version</name>
+        </property>
+      </activation>
+      <build>
+        <plugins>
+          <!-- Add shaded jar to artifacts for IntelliJ IDEA so that IntelliJ 
builds
+          and running tests work -->
+          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>build-helper-maven-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>attach-shade-jar</id>
+                <phase>package</phase>
+                <goals>
+                  <goal>attach-artifact</goal>
+                </goals>
+                <configuration>
+                  <artifacts>
+                    <artifact>
+                      
<file>${project.build.directory}/${project.build.finalName}.jar</file>
+                      <type>jar</type>
+                      <classifier>shaded</classifier>
+                    </artifact>
+                  </artifacts>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>
\ No newline at end of file

Reply via email to