Skip to content

Commit d8ea1e5

Browse files
author
Vladimir Kotal
committed
use -Djna=nosys for building suggester and web modules
fixes #2554
1 parent 77afdee commit d8ea1e5

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

opengrok-web/pom.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@
140140
<groupId>org.apache.maven.plugins</groupId>
141141
<artifactId>maven-surefire-plugin</artifactId>
142142
<configuration>
143-
<argLine>@{surefireArgLine}</argLine>
143+
<argLine>
144+
-Djna.nosys=true
145+
@{surefireArgLine}
146+
</argLine>
144147
</configuration>
145148
</plugin>
146149
</plugins>

suggester/pom.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313

1414
<name>OpenGrok Suggester</name>
1515

16+
<properties>
17+
<jdkArgs></jdkArgs>
18+
</properties>
19+
1620
<dependencies>
1721
<dependency>
1822
<groupId>org.apache.lucene</groupId>
@@ -97,7 +101,10 @@
97101
<groupId>org.apache.maven.plugins</groupId>
98102
<artifactId>maven-surefire-plugin</artifactId>
99103
<configuration>
100-
<argLine>@{surefireArgLine}</argLine>
104+
<argLine>
105+
-Djna.nosys=true
106+
@{surefireArgLine}
107+
</argLine>
101108
</configuration>
102109
</plugin>
103110
</plugins>
@@ -117,6 +124,7 @@
117124
<configuration>
118125
<argLine>
119126
@{surefireArgLine}
127+
-Djna.nosys=true
120128
--illegal-access=permit
121129
--add-exports java.base/jdk.internal.ref=ALL-UNNAMED
122130
--add-exports java.base/jdk.internal.misc=ALL-UNNAMED

0 commit comments

Comments
 (0)