Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

Page Tree
rootDevelopers Corner
startDepthsearchBox2true