Stream: IG creation
Topic: Validating without publishing
Mika Tuomainen (Dec 08 2019 at 18:53):
Hi,
The instruction here https://confluence.hl7.org/display/FHIR/IG+Publisher+Documentation says:
"To run the IG publisher in this mode (Validating without publishing):
java -jar org.hl7.fhir.publisher.jar -source [source] -destination [dest] (-tx [url])"
Should that work so simply that there is for example only one profile (StructureDefinition) file in the source folder and that is enough? Or should there be some other files in the source folder? I tried this "mode" with only one profile file in the source folder
java -jar org.hl7.fhir.publisher.jar -source "C:\Users\admin\Documents\FHIRvalidator" -destination "C:\Users\admin\Documents\FHIRvalidator" -version 4.0
FHIR IG Publisher Version 1.0.15-SNAPSHOT - Built 2019-12-07T07:25:45.248+11:00 - Git b5867c976acc
Detected Java version: 1.8.0_191 from C:\Program Files\Java\jre1.8.0_191 on amd64 (64bit). 1774MB available
Parameters: -source C:\Users\admin\Documents\FHIRvalidator -destination C:\Users\admin\Documents\FHIRvalidator -version 4.0
dir = C:\Users\admin\Documents\FHIRvalidator, path = C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\admin\AppData\Local\Microsoft\WindowsApps;
Run time = 8. joulukuuta 2019 20.52.41 EET (2019-12-08T20:52:41+02:00)
Package Cache: C:\Users\admin\.fhir\packages
but got this error:
Using inbuilt IG template in C:\Users\admin\Documents\FHIRvalidator (00:00.0019)
Publishing Content Failed: Unable to resolve version 4.1.0 for package hl7.fhir.core (00:00.0543)
(00:00.0543)
Use -? to get command line help (00:00.0544)
(00:00.0546)
Stack Dump (for debugging): (00:00.0547)
org.hl7.fhir.exceptions.FHIRException: Unable to resolve version 4.1.0 for package hl7.fhir.core
at org.hl7.fhir.utilities.cache.PackageCacheManager.loadPackage(PackageCacheManager.java:655)
at org.hl7.fhir.igtools.publisher.Publisher.copyDefaultTemplate(Publisher.java:2057)
at org.hl7.fhir.igtools.publisher.Publisher.initializeFromJson(Publisher.java:1569)
at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1172)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:650)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:6651)
I have tried to empty .fhir and different version parameters but no help.
Grahame Grieve (Dec 09 2019 at 01:25):
whoops. fixed next release
Last updated: Apr 12 2022 at 19:14 UTC