Hi All,
I am new to HAPI and trying to get the initial local setup up and running on my Mac. I tried using Eclipse and IntelliJ IDE and I am getting the following compilation error with maven compile lifecycle. I also tried put the POM configurations for Tinder (http://jamesagnew.github.io/hapi-fhir/doc_tinder.html).
I would appreciate any help!
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project hapi-tinder-plugin: Compilation failure
[ERROR] /Users/GajenSunthara/Documents/workspace/IntelliJ IDEA/hapi-fhir/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/HumanNameDt.java:[67,8] ca.uhn.fhir.model.dstu.composite.HumanNameDt is not abstract and does not override abstract method getTextElement() in ca.uhn.fhir.model.base.composite.BaseHumanNameDt
Only thing I added to the POM is the following for the tinder plugin:
--
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/24126249-f8b4-4be9-a1e3-af043ed5cb50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks James that explains! I am getting another maven error with hapi-fhir-structures-dstu plugin. I updated the new code. Error messages are below.
Thanks again for your help!
[INFO] Reactor Summary:[INFO] [INFO] HAPI-FHIR .......................................... SUCCESS [  0.379 s][INFO] HAPI FHIR - Deployable Artifact Parent POM ......... SUCCESS [  0.008 s][INFO] HAPI FHIR - Core Library ........................... SUCCESS [  4.658 s][INFO] HAPI Tinder Plugin ................................. SUCCESS [  4.294 s][INFO] HAPI FHIR Structures - DSTU (FHIR 0.80) ............ FAILURE [  7.219 s][INFO] HAPI FHIR - Minimal Dependency Test ................ SKIPPED[INFO] HAPI Tinder Plugin - Test Project .................. SKIPPED[INFO] HAPI FHIR Structures - DEV (FHIR Latest) ........... SKIPPED[INFO] HAPI FHIR JPA Server ............................... SKIPPED[INFO] HAPI FHIR JPA Server - Test Project ................ SKIPPED[INFO] HAPI FHIR TestPage Overlay ......................... SKIPPED[INFO] HAPI FHIR Sample RESTful Server .................... SKIPPED[INFO] HAPI FHIR Sample RESTful Server - Tests ............ SKIPPED[INFO] HAPI FHIR - fhirtest.uhn.ca Deployable WAR ......... SKIPPED[INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE[INFO] ------------------------------------------------------------------------[INFO] Total time: 16.843 s[INFO] Finished at: 2014-12-10T13:29:54-05:00[INFO] Final Memory: 24M/123M[INFO] ------------------------------------------------------------------------[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project hapi-fhir-structures-dstu: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test failed: There was an error in the forked process[ERROR] java.lang.UnsupportedClassVersionError: javax/servlet/Servlet : Unsupported major.minor version 51.0[ERROR] at java.lang.ClassLoader.defineClass1(Native Method)[ERROR] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)[ERROR] at java.lang.ClassLoader.defineClass(ClassLoader.java:621)[ERROR] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)[ERROR] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)[ERROR] at java.net.URLClassLoader.access$000(URLClassLoader.java:58)[ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:197)[ERROR] at java.security.AccessController.doPrivileged(Native Method)[ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)[ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)[ERROR] at java.lang.Class.getDeclaredMethods0(Native Method)[ERROR] at java.lang.Class.privateGetDeclaredMethods(Class.java:2484)[ERROR] at java.lang.Class.getMethod0(Class.java:2727)[ERROR] at java.lang.Class.getMethod(Class.java:1639)[ERROR] at org.apache.maven.surefire.util.ReflectionUtils.tryGetMethod(ReflectionUtils.java:57)[ERROR] at org.apache.maven.surefire.common.junit3.JUnit3TestChecker.isSuiteOnly(JUnit3TestChecker.java:64)[ERROR] at org.apache.maven.surefire.common.junit3.JUnit3TestChecker.isValidJUnit3Test(JUnit3TestChecker.java:59)[ERROR] at org.apache.maven.surefire.common.junit3.JUnit3TestChecker.accept(JUnit3TestChecker.java:54)[ERROR] at org.apache.maven.surefire.common.junit4.JUnit4TestChecker.accept(JUnit4TestChecker.java:52)[ERROR] at org.apache.maven.surefire.util.DefaultScanResult.applyFilter(DefaultScanResult.java:97)[ERROR] at org.apache.maven.surefire.junit4.JUnit4Provider.scanClassPath(JUnit4Provider.java:206)[ERROR] at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:103)[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)[ERROR] -> [Help 1][ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.[ERROR] Re-run Maven using the -X switch to enable full debug logging.[ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles:[ERROR] [ERROR] After correcting the problems, you can resume the build with the command[ERROR]   mvn <goals> -rf :hapi-fhir-structures-dstu
Ah that's an easy one.
The HAPI build requires Java 7+ to run the unit tests (due to a dependency from Jetty). HAPI itself only requires Java 6+ to run but the build needs a bit higher..
James
sent from my phone.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/5bffcb7c-dc2d-4682-8515-3ce224d871b9%40googlegroups.com.
/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/bin/java -Dmaven.home=/Applications/apache-maven-3.2.3 -Dclassworlds.conf=/Applications/apache-maven-3.2.3/bin/m2.conf -Didea.launcher.port=7534 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 14.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/apache-maven-3.2.3/boot/plexus-classworlds-2.5.1.jar:/Applications/IntelliJ IDEA 14.app/Contents/lib/idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=14.0.2 --offline clean[INFO] Scanning for projects...[INFO] HAPI-FHIR .......................................... FAILURE [  0.375 s][INFO] HAPI FHIR - Deployable Artifact Parent POM ......... SKIPPED[INFO] HAPI FHIR - Core Library ........................... SKIPPED[INFO] HAPI Tinder Plugin ................................. SKIPPED[INFO] HAPI FHIR Structures - DSTU (FHIR 0.80) ............ SKIPPED[INFO] HAPI FHIR - Minimal Dependency Test ................ SKIPPED[INFO] HAPI Tinder Plugin - Test Project .................. SKIPPED[INFO] HAPI FHIR Structures - DEV (FHIR Latest) ........... SKIPPED[INFO] HAPI FHIR JPA Server ............................... SKIPPED[INFO] HAPI FHIR JPA Server - Test Project ................ SKIPPED[INFO] HAPI FHIR TestPage Overlay ......................... SKIPPED[INFO] HAPI FHIR Sample RESTful Server .................... SKIPPED[INFO] HAPI FHIR Sample RESTful Server - Tests ............ SKIPPED[INFO] HAPI FHIR - fhirtest.uhn.ca Deployable WAR ......... SKIPPED[INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE[INFO] ------------------------------------------------------------------------[INFO] Total time: 0.664 s[INFO] Finished at: 2014-12-10T14:15:37-05:00[INFO] Final Memory: 9M/245M[INFO] ------------------------------------------------------------------------[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy (default-deploy) on project hapi-fhir: Cannot deploy artifacts when Maven is in offline mode -> [Help 1][ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.[ERROR] Re-run Maven using the -X switch to enable full debug logging.[ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles:
Process finished with exit code 1