Skip to content

Commit c822aab

Browse files
dfa1claude
andcommitted
build(cli): generate vortex launcher script to suppress Unsafe warnings
Antrun creates target/vortex (chmod 755) wrapping the jar with --sun-misc-unsafe-memory-access=allow to silence protobuf noise. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b250459 commit c822aab

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

cli/pom.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,28 @@
4444
</includes>
4545
</configuration>
4646
</plugin>
47+
<plugin>
48+
<groupId>org.apache.maven.plugins</groupId>
49+
<artifactId>maven-antrun-plugin</artifactId>
50+
<version>3.1.0</version>
51+
<executions>
52+
<execution>
53+
<id>generate-launcher</id>
54+
<phase>package</phase>
55+
<goals>
56+
<goal>run</goal>
57+
</goals>
58+
<configuration>
59+
<target>
60+
<echo file="${project.build.directory}/vortex">#!/bin/sh
61+
exec java --sun-misc-unsafe-memory-access=allow -jar "$(dirname "$0")/vortex.jar" "$@"
62+
</echo>
63+
<chmod file="${project.build.directory}/vortex" perm="755"/>
64+
</target>
65+
</configuration>
66+
</execution>
67+
</executions>
68+
</plugin>
4769
<plugin>
4870
<groupId>org.apache.maven.plugins</groupId>
4971
<artifactId>maven-shade-plugin</artifactId>

0 commit comments

Comments
 (0)