You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 2 Current »
To build OSCAR on JDK 7, you must use the jdk7 profile setup in our maven configuration.
it's defined in the pom.xml.
<profiles> <profile> <id>jdk6</id> <activation> <activeByDefault>true</activeByDefault> <jdk>1.6</jdk> </activation> <dependencies> <dependency> <groupId>org.oscarehr</groupId> <artifactId>datasource-jdk6</artifactId> <version>1.0</version> </dependency> </dependencies> </profile> <profile> <id>jdk7</id> <activation> <activeByDefault>false</activeByDefault> <jdk>1.7</jdk> </activation> <dependencies> <dependency> <groupId>org.oscarehr</groupId> <artifactId>datasource-jdk7</artifactId> <version>1.0</version> </dependency> </dependencies> </profile> </profiles>In order to execute this build profile, pass in the "-P jdk7" flag when running maven.