diff --git a/plugins/hypervisors/ovm3/pom.xml b/plugins/hypervisors/ovm3/pom.xml
index 546e7e7423b..24ef6a4bac9 100644
--- a/plugins/hypervisors/ovm3/pom.xml
+++ b/plugins/hypervisors/ovm3/pom.xml
@@ -49,6 +49,21 @@
${basedir}/src/test/resources
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.3
+
+ true
+ true
+
+ -verbose
+ -Xlint:all,-options,-path
+
+
+
+
diff --git a/plugins/hypervisors/ovm3/src/test/java/com/cloud/hypervisor/ovm3/resources/helpers/Ovm3ConfigurationTest.java b/plugins/hypervisors/ovm3/src/test/java/com/cloud/hypervisor/ovm3/resources/helpers/Ovm3ConfigurationTest.java
index 5faff8fafb7..5cbb2b72082 100644
--- a/plugins/hypervisors/ovm3/src/test/java/com/cloud/hypervisor/ovm3/resources/helpers/Ovm3ConfigurationTest.java
+++ b/plugins/hypervisors/ovm3/src/test/java/com/cloud/hypervisor/ovm3/resources/helpers/Ovm3ConfigurationTest.java
@@ -29,7 +29,7 @@ import com.cloud.hypervisor.ovm3.objects.XmlTestResultTest;
public class Ovm3ConfigurationTest {
XmlTestResultTest results = new XmlTestResultTest();
private Ovm3Configuration ovm3config;
- private static Map params;
+ private static HashMap params;
static {
params = new HashMap();
params.put("agentusername", "oracle");
@@ -55,7 +55,7 @@ public class Ovm3ConfigurationTest {
params.put("max.template.iso.size", "50");
params.put("host", "ovm-1");
params.put("com.cloud.network.Networks.RouterPrivateIpStrategy",
- "DcGlobal");
+ "DcGlobal");
params.put("agentport", "8899");
params.put("Host.OS.Kernel.Version", "2.6.39-300.22.2.el5uek");
params.put("migratewait", "3600");
@@ -83,13 +83,13 @@ public class Ovm3ConfigurationTest {
@Test(expected = ConfigurationException.class)
public void testFailedParams() throws ConfigurationException {
- Map par = new HashMap(params);
+ HashMap par = new HashMap(params);
par.put("pod", null);
ovm3config = new Ovm3Configuration(par);
}
@Test
public void testValidatePool() throws ConfigurationException {
- Map par = new HashMap(params);
+ HashMap par = new HashMap(params);
par.put("cluster", "1");
par.put("ovm3vip", "this is not an IP!");
ovm3config = new Ovm3Configuration(par);
@@ -99,7 +99,7 @@ public class Ovm3ConfigurationTest {
}
@Test
public void testAgentPort() throws ConfigurationException {
- Map par = new HashMap(params);
+ HashMap par = new HashMap(params);
String altPort="6333";
par.put("agentport", altPort);
ovm3config = new Ovm3Configuration(par);