Skip to content

Could not find the HAPI-FHIR structure JAR on the classpath for version R4 #3

Open
@pnrobinson

Description

@pnrobinson

This was mentioned in the lectures. However, even the solution does not work, and trying to run the main method leads to this exception

Exception in thread "main" java.lang.IllegalStateException: Could not find the HAPI-FHIR structure JAR 
on the classpath for version R4. Note that as of HAPI-FHIR v0.8, a separate FHIR strcture JAR must be 
added to your classpath (or project pom.xml if you are using Maven)

Even adding this to the pom file did not help

<dependency>
      <groupId>ca.uhn.hapi.fhir</groupId>
      <artifactId>hapi-fhir-structures-r4</artifactId>
      <version>${project.version}</version>
    </dependency>

As an aside, version seems to be being taken from the <parent> stanza successfully. However, I think the rest of the pom file should actually be using ${parent.project.version}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions