Skip to content

Commit 033b661

Browse files
committed
HSEARCH-4768 Fix JavaModulePathTest with ORM 6.2
1 parent 23417a4 commit 033b661

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

integrationtest/java/modules/orm-coordination-outbox-polling-elasticsearch/pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@
4444
<artifactId>hibernate-search-mapper-orm-coordination-outbox-polling</artifactId>
4545
</dependency>
4646

47+
<!-- Adding this dependency to be able to refer to ByteBuddy in module-info.java -->
48+
<dependency>
49+
<groupId>net.bytebuddy</groupId>
50+
<artifactId>byte-buddy</artifactId>
51+
<!-- DO NOT REMOVE and DO NOT MANAGE the version of this dependency. See the version property declaration. -->
52+
<version>${version.net.bytebuddy}</version>
53+
</dependency>
54+
4755
<dependency>
4856
<groupId>org.hibernate.search</groupId>
4957
<artifactId>hibernate-search-util-internal-test-orm</artifactId>

integrationtest/java/modules/orm-coordination-outbox-polling-elasticsearch/src/main/java/module-info.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,10 @@
2929
* Without this, compilation as a Java module fails.
3030
*/
3131
requires java.naming;
32+
33+
/*
34+
* This is necessary in order to put ByteBuddy in the modulepath and make module exports effective.
35+
* I do not know why ByteBuddy doesn't end up in the modulepath without this.
36+
*/
37+
requires net.bytebuddy;
3238
}

0 commit comments

Comments
 (0)