Loading in IntelliJ

167 views
Skip to first unread message

eve...@gmail.com

unread,
Aug 8, 2018, 2:41:43 PM8/8/18
to HAPI FHIR
I'm trying to load HAPI FHIR into IntelliJ, but am getting errors when doing so.
I have the latest version of IntelliJ installed, the community edition.
I opened the root "master" hapi-fhir directory in IntelliJ, and I'm getting a bunch of build errors when I try to build "hapi-fhir-jpaserver-example" or "hapi-fhir-jpaserver-base".

The first error I got was something along the lines of: "Cannot find symbol QuantityDt"
I discovered a post later that said I should first run "mvn install" on the root to generate a bunch of the classes that were dependencies.
After doing that, I continued to get the same error in IntelliJ. So, I modified the "Project Structure" to add in the hapi-fhir-structures-dstu2 project as a library.

Now, I am getting the following error(s):
 
C:\lcg-hapi-fhir\hapi-fhir-jpaserver-base\src\main\java\ca\uhn\fhir\jpa\provider\dstu3\JpaResourceProviderDstu3.java 
Error:(33, 31) java: package org.hl7.fhir.convertors does not exist
 
Another error:

C:\lcg-hapi-fhir\hapi-fhir-jpaserver-base\src\main\java\ca\uhn\fhir\jpa\dao\FhirResourceDaoDstu2.java
 Error:(7, 45) java: package org.hl7.fhir.instance.hapi.validation does not exist
 
Error:(53, 17) java: cannot find symbol
  symbol:   class IValidationSupport
  location: class ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<T>

Can someone help explain what I'm missing... There seems to be a step I'm not aware of.
Kindly appreciate any  help! 

James Agnew

unread,
Aug 8, 2018, 2:52:05 PM8/8/18
to eve...@gmail.com, HAPI FHIR
This isn't an error I've seen before, and I've imported HAPI into lots of IntelliJ installs. :)

I might recommend starting from scratch, assuming that you have now already run the command line build from start-to-end successfully. Close IntelliJ, delete all of the .idea directories and any .idea directories and .iml files, then reopen IJ and reimport.

Cheers,
James



--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/4aaaabf8-d42b-4c9e-a498-7ceec79c1c77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

eve...@gmail.com

unread,
Aug 10, 2018, 12:43:35 PM8/10/18
to HAPI FHIR
To my surprise... it worked.

I removed the entire directory, re-cloned, ran "mvn install" at the root... I got some errors about hapi-fhir-structures-dstu2 again, so I ran "mvn install" directly on hapi-fhir-structures-dstu2, then ran "mvn install" at the root again, and it successfully built.
Then, I opened the directory in IntelliJ, and was able to manually build the modules.

Thanks,
Sean
Reply all
Reply to author
Forward
0 new messages