FHIR Chat · hapi-fhir: issue 263: Maven build requires JDK version 1.... · hapi

Stream: hapi

Topic: hapi-fhir: issue 263: Maven build requires JDK version 1....


view this post on Zulip Zulip HAPI Bot (Nov 30 2015 at 17:29):

joelsch opened issue 263

When using JDK 1.7, the Maven build fails, and reports an OutOfMemoryError. Example (Mac OS X 10.10):

$ export MAVEN_OPTS="-XX:MaxPermSize=512m -Xmx2g"
$ export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home
$ mvn clean install
...
Exception: java.lang.OutOfMemoryError thrown ...

Changing JAVA_HOME to use JDK 1.8 enables the build to succeed:

$ export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home
$ mvn clean install
...
[INFO] BUILD SUCCESS

I'm considering creating a pull request to add something like this under <plugins> in pom.xml, to make the JDK 1.8 requirement more explicit:

        <plugin>
            <artifactId>maven-enforcer-plugin</artifactId>
            <executions>
                <execution>
                    <id>enforce-java</id>
                    <goals>
                        <goal>enforce</goal>
                    </goals>
                    <configuration>
                        <rules>
                            <requireJavaVersion>
                                <version>[1.8,)</version>
                                <message>
                                    The hapi-fhir Maven build requires JDK version 1.8 or higher.
                                </message>
                            </requireJavaVersion>
                        </rules>
                    </configuration>
                </execution>
            </executions>
        </plugin>

view this post on Zulip Zulip HAPI Bot (Dec 01 2015 at 01:46):

shvoidlee commented on issue 263

I was reported similar issue at
https://groups.google.com/forum/#!topic/hapi-fhir/zfFyrWRV5O0

view this post on Zulip Zulip HAPI Bot (Dec 01 2015 at 12:41):

jamesagnew commented on issue 263

It does seem like at this point the build needs JDK1.8 to proceed. We're still maintaining support for JDK1.6 in the library, but requiring JDK 1.8 to build seems reasonable.

Pull request would certainly be accepted :)

view this post on Zulip Zulip HAPI Bot (Dec 01 2015 at 23:10):

jamesagnew closed issue 263


Last updated: Apr 12 2022 at 19:14 UTC