Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- needs to specify -H:+TempFile= because of
oracle/graal#1562
- needs to use a x64 version
- needs to comment out springboot-maven-plugin for now, otherwise
mainclass is not found

still errors for now

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
  • Loading branch information
apupier committed Aug 2, 2019
1 parent 4d4f7c7 commit afed3e0
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@
</configuration>
</plugin>

<plugin>
<!-- need to be deactivated so that SubstrateVM can find the main class -->
<!-- <plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.1.0.RELEASE</version>
Expand All @@ -206,8 +207,26 @@
</goals>
</execution>
</executions>
</plugin>
</plugin> -->

<plugin>
<groupId>com.oracle.substratevm</groupId>
<artifactId>native-image-maven-plugin</artifactId>
<version>19.1.1</version>
<executions>
<execution>
<goals>
<goal>native-image</goal>
</goals>
<phase>package</phase>
<configuration>
<imageName>CamelLanguageServer</imageName>
<mainClass>com.github.cameltooling.lsp.internal.Runner</mainClass>
<buildArgs>-H:+ReportExceptionStackTraces -H:+MachODebugInfoTesting -H:+PrintAOTCompilation -H:+PrintUniverse -H:+PrintHeapHistogram -H:+PrintFeatures -H:TempDirectory=C:\test-native</buildArgs>
</configuration>
</execution>
</executions>
</plugin>
</plugins>

<pluginManagement>
Expand Down

0 comments on commit afed3e0

Please sign in to comment.