Hi,
I’m trying to use the java compiler option “–h <directory>” to generate some jni header files, but the tycho-compiler-plugin does not seem to recognize this compiler option.
I’m using this snippet in the parent pom to configure the tycho-compiler-plugin:
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<version>2.0.0</version>
<configuration>
<compilerArgs>
<compilerArg>-h ${someDirectory}</compilerArg>
</compilerArgs>
</configuration>
</plugin>
This results in the following error:
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:2.0.0:compile (default-compile) on project com.example.dummy: Fatal error compiling: Unrecognized option : -h D:\someDir -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :com.example.dummy
Is this currently not supported? Is there another way to generate jni headers for bundles of a rcp build?
Best regards
Ahmet Bilgin
Please note that our shipping and billing address and contact details including phone number have changed. Please update your records to replace our previous address: Kackertstraße 11, DE-52072 Aachen, with the
following new address: MAGMA Gießereitechnologie GmbH, Kackertstraße 16-18, DE-52072 Aachen