Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pnrobinson opened this issue Jan 4, 2022 · 0 comments

Comments

@pnrobinson
Copy link

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}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant