I think there is a bug in the way Maven filters resources...

 

If the following file content is filtered it will not replace the property
values with the values in the POM unless the comment line for the
"connection.url" is removed:

 

 

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE hibernate-configuration PUBLIC

          "-//Hibernate/Hibernate Configuration DTD 3.0//EN"

 
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd";>

 

<!-- Generated by MyEclipse Hibernate Tools. -->

<hibernate-configuration>

 

       <session-factory>

       

              <!--

              <property
name="connection.url">jdbc:oracle:thin:@test.example.com:1521:TST</property>

              <property name="connection.username">usr</property>

              <property name="connection.password">testpwd</property>

              -->

 

              <property
name="myeclipse.connection.profile">Oracle-TEST</property>

              <property name="connection.url">${dburl}</property>

              <property name="connection.username">${username}</property>

              <property name="connection.password">${password}</property>

              <property
name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>

              <property
name="dialect">org.hibernate.dialect.Oracle9Dialect</property>

 

              <property name="hibernate.c3p0.min_size">1</property>

              <property name="hibernate.c3p0.max_size">1</property>

              <property name="hibernate.c3p0.timeout">800</property>

              <property name="hibernate.c3p0.max_statements">50</property>

              <property name="hibernate.max_fetch_depth">1</property>

 

              <mapping resource="org/nemours/clab/model/Test.hbm.xml" />

 

       </session-factory>

 

</hibernate-configuration>

 

 

 

Reply via email to