title: PropertyPlaceholderConfigurer works from Maven command line, but not from Eclipse?
body: <p>I have Eclipse configured to use an external maven instance.  Nonetheless I have an integration test that runs fine from the command line, but fails from within Eclipse.  The error is a class Spring application context bean error:</p>
  
  <pre><code>Cannot convert value of type [java.lang.String] to required type
  </code></pre>
  
  <p>The culprit it a bean that sets property values using a PropertyPlaceholderConfigurer.</p>
  
  <pre><code>&lt;!-- property settings for non-JNDI database connections --&gt;
  &lt;bean id="placeholderConfigUuid" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt;
      &lt;property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" /&gt;
      &lt;property name="location" value="classpath:database.properties" /&gt;
      &lt;property name="placeholderPrefix" value="$DS{" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>I know which bean is failing because it appears in the stack trace and because when I replace the $DS{hibernate.dialect} with a static value it works.</p>
  
  <p>EDIT: Here is where the property values are used:</p>
  
  <pre><code>&lt;bean id="myTestLocalEmf" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"&gt;
      &lt;property name="persistenceUnitName" value="myapp-core" /&gt;
      .......ommitted for brevity.......
      &lt;property name="jpaVendorAdapter"&gt;
          &lt;bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"&gt;
              &lt;property name="showSql" value="true" /&gt;
              &lt;!-- The following use the PropertyPlaceholderConfigurer but it doesn't work in Eclipse --&gt;
              &lt;property name="database" value="$DS{hibernate.database}" /&gt;
              &lt;property name="databasePlatform" value="$DS{hibernate.dialect}" /&gt;
          &lt;/bean&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>I have two questions:</p>
  
  <p>1) Since M2Eclipse is using the same Maven setup as the command line, why does one work and the other fail?
  2) How to fix this?  I really like the ability to run a single jUnit test from within Eclipse on demand.</p>