I am trying to follow a guide explaining how to do resource filtering. I have a hibernate properties file which now has the following properties;
<!-- db connection properties -->
<property name="hibernate.connection.url">${hibernate.connection.url}</property>
<property name="hibernate.connection.username">${hibernate.connection.username}</property>
<property name="hibernate.connection.password">${hibernate.connection.password}</property>
and my maven pom has the following profiles;
<profiles>
<profile>
<id>DEV</id>
<properties>
<hibernate.connection.url>devurl:port</hibernate.connection.url>
<hibernate.connection.username>user</hibernate.connection.username>
<hibernate.connection.password>password</hibernate.connection.password>
</properties>
</profile>
<profile>
<id>PROD</id>
<properties>
<hibernate.connection.url>produrl</hibernate.connection.url>
<hibernate.connection.username>user</hibernate.connection.username>
<hibernate.connection.password>pass</hibernate.connection.password>
</properties>
</profile>
</profiles>
My maven build url in jenkins looked as follows before the changes;
clean package org.jacoco:jacoco-maven-plugin:prepare-agent install -Dmaven.test.failure.ignore=true
And I have modified this too look as follows;
clean package -P DEV org.jacoco:jacoco-maven-plugin:prepare-agent install -Dmaven.test.failure.ignore=true
It seems as though I have followed everything in the guide so something I have done above must be incorrect because when i do a build i am getting a mass of errors such as java.lang.UnsupportedOperationException: The application must supply JDBC connections
. Is anyone able to see what I have done wrong?
Thanks