Unable to import HAPI-FHIR in Eclipse

73 views
Skip to first unread message

David Otasek

unread,
Jun 21, 2022, 12:27:57 PM6/21/22
to HAPI FHIR
Myself and one other developer have been unable to import HAPI-FHIR into Eclipse using the steps in the HAPI-FHIR hacking guide:

https://hapifhir.io/hapi-fhir/docs/contributing/hacking_guide.html

I have tried with Eclipse 2021-09 and 2022-06.

In both cases, the following plugins were installed:
  • lombok-1.18.24
  • Kotlin Plugin for Eclipse 0.8.22
I also installed the recommended m2e connectors, and ignored one build step that Eclipse appears unable to handle:

Screen Shot 2022-06-21 at 11.03.37 AM.png

The import reports failures once it is done, and gives a 100+ long list of various errors.

Screen Shot 2022-06-20 at 5.39.33 PM.png
Selecting 'Maven -> Update Project' on hapi-fhir and updating dependencies on all the projects doesn't help. 

The only mild improvement I get on building modules is switching Java to 17 in the build path (see below, where the default is still 11, which refuses to build).

Screen Shot 2022-06-21 at 12.25.10 PM.png

'mvn clean install -DskipTests' works on the command line. Importing into IntellliJ IDEA appears to work fine as well. However, there doesn't appear to be a clean way for those used to working in Eclipse to contribute. 


David Otasek

unread,
Jun 21, 2022, 12:29:59 PM6/21/22
to HAPI FHIR
Note: Switching to Java 17 in the Java build path would have to be done individually per project, so feels like a bad solution. If there's a clean way to do this automatically, I can try it, and see if it gets me any further.

Oliver Egger

unread,
Jun 21, 2022, 3:31:53 PM6/21/22
to David Otasek, HAPI FHIR
Hi David

Not sure if it helps much, but I have an eclipse setup working with hapi-fhir with
2020-03 (Eclipse Java Development Tools Version: 3.18.300.v20200305-0155).

I noticed when installing a new version that it did not work, so I continued working
in the old version ...

Best regards
Oliver
 

mobile: +41765795005

ahdis ag
c/o The Hub Zürich Association
Sihlquai 131
8005 Zürich
Switzerland




--
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 view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/ec0ee12c-44f1-4174-b643-27b57794de43n%40googlegroups.com.

tomo yamano

unread,
Jun 22, 2022, 9:08:48 AM6/22/22
to David Otasek, HAPI FHIR
Helllo David, 

Have you tried to do troubleshooting mentioned in the guide?

Thanks. 

On Jun 22, 2022, at 1:28 AM, David Otasek <david....@smilecdr.com> wrote:


Myself and one other developer have been unable to import HAPI-FHIR into Eclipse using the steps in the HAPI-FHIR hacking guide:


I have tried with Eclipse 2021-09 and 2022-06.

In both cases, the following plugins were installed:
  • lombok-1.18.24
  • Kotlin Plugin for Eclipse 0.8.22
I also installed the recommended m2e connectors, and ignored one build step that Eclipse appears unable to handle:

<Screen Shot 2022-06-21 at 11.03.37 AM.png>

The import reports failures once it is done, and gives a 100+ long list of various errors.

<Screen Shot 2022-06-20 at 5.39.33 PM.png>
Selecting 'Maven -> Update Project' on hapi-fhir and updating dependencies on all the projects doesn't help. 

The only mild improvement I get on building modules is switching Java to 17 in the build path (see below, where the default is still 11, which refuses to build).

<Screen Shot 2022-06-21 at 12.25.10 PM.png>

'mvn clean install -DskipTests' works on the command line. Importing into IntellliJ IDEA appears to work fine as well. However, there doesn't appear to be a clean way for those used to working in Eclipse to contribute. 




--
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.

David Otasek

unread,
Jun 22, 2022, 3:48:05 PM6/22/22
to HAPI FHIR
Thanks for the feedback;


> I noticed when installing a new version that it did not work, so I continued working
> in the old version 

Dropping down to older versions isn't something I can endorse. Good to know it worked at some point in Eclipse's history; thanks Oliver!


> Have you tried to do troubleshooting mentioned in the guide?

I have. I started with fresh git clone's of the project each time, and even blasted away all the eclipse generated files and tried re-importing:

find . -name ".classpath" -delete
find . -name ".project" -delete
find . -name ".settings" -exec rm -rf {} +

None of this made a difference.

tomo yamano

unread,
Jun 26, 2022, 8:42:15 AM6/26/22
to David Otasek, HAPI FHIR

Interesting .. Have you raised the issue in the git ?

That might be a quickest way to be fixed or looked into. Also, i am curious to reproduce the error although I would use idea intellij.

Thanks. 

Reply all
Reply to author
Forward
0 new messages