But nar seems unable to find MSVC.
First it failed with:
[ERROR] Failed to execute goal com.github.maven-nar:nar-maven-plugin:3.5.2:nar-compile (default-cli) on project JPDH: msvc.version not specified and no VS<Version>COMNTOOLS environment variable can be found -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.maven-nar:nar-maven-plugin:3.5.2:nar-compile (default-cli) on project JPDH: msvc.version not specified and no VS<Version>COMNTOOLS environment variable can be found
And added this commands in my appveyor.yml:
- cmd: cd "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC"
- cmd: vcvarsall amd64
- cmd: cd "C:\projects\jpdh"
But it provided no help. It fails.
I tried to add
- cmd: mvn nar:nar-compile -X
To have more informations, and now I'm getting:
[DEBUG] linker original name not exist
[DEBUG] aol_linker: msvc
[DEBUG] -- Searching for usable VisualStudio
[DEBUG] Linker version is null
[DEBUG] VisualStudio Not found but link runs and reports version 14.00 (14.00.24215.1)
[DEBUG] -- Searching for usable WindowSDK
[DEBUG] WindowSDK 10 found C:\Program Files (x86)\Windows Kits\10
[DEBUG] Latest Win 10.0.14393.0 KitDir at C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0
[DEBUG] Using directory C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\shared for library shared
[DEBUG] Using directory C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt for library ucrt
[DEBUG] Using directory C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\um for library um
[DEBUG] Using directory C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\winrt for library winrt
[DEBUG] Using WindowSDK 10 found C:\Program Files (x86)\Windows Kits\10
[DEBUG] Added to sourceDirectory: C:\projects\jpdh\src\main
[DEBUG] Added to sourceDirectory: C:\projects\jpdh\src\main\java
...
[DEBUG] NAR - output: 'C:\projects\jpdh\target\nar\JPDH-1.2-SNAPSHOT-amd64-Windows-msvc-jni\lib\amd64-Windows-msvc\jni\JPDH-1.2-SNAPSHOT'
And it finally fails because:
[DEBUG] C:\projects\jpdh\VC\bin\amd64\cl ...
Of course, it can find VC\bin\amd64\cl in this path. What I'm doing wrong ?