Closed alexfranken closed 10 years ago
Updated Existing pull request with oib-request-service improvements.
Filtered umls properties (username, password) to enable passing unit tests. For example, mvn clean test -Ddatasource1.password=X -Ddatasource2.password=Y -Dumls.username=A -Dumls.password=B
There was some duplication of files in src/main/resources vs src/main/webapp. I removed the dups from webapp (maven will copy the src/main/resources files to WEB-INF/classes). I also added some filtering to the serviceParams.properties so that I could replace the mysql properties with values specific to my environment. Also, I was interested in quickly launching the service without deploying to a separate tomcat instance, so I included the configuration for the maven tomcat plugin. The following command will launch the infobutton-service in an embedded tomcat and will override default jdbc props with my specific values.
mvn clean tomcat7:run-war -Ddatasource1.password=mypass -Ddatasource2.password=mypass -DskipTests