title: Activating Spring Profile active JVM arguments in GWT hosted mode
body: <p>I have a spring profile configuration as shown below</p>
  
  <pre><code>&lt;beans profile="dev"&gt;
      &lt;bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"&gt;
          &lt;property name="driverClass" value="${db.driverClassName}" /&gt;
          &lt;property name="jdbcUrl" value="dfgdfg" /&gt;
          &lt;property name="user" value="${db.username}" /&gt;
          &lt;property name="password" value="${db.password}" /&gt;
      &lt;/bean&gt;
  &lt;/beans&gt;
  
  &lt;beans profile="prod"&gt;
      &lt;jee:jndi-lookup id="dataSource" jndi-name="jdbc/Test"/&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <p>I am trying to make one of this active via the VM argument <code>-Dspring.profiles.active="dev"</code> . This works in Tomcat and so does the <code>context-param</code> route in Hosted mode via the gwt-maven-plugin but I can't get the VM arguments to work . I tried <code>mvn -Dspring.profiles.active="dev" gwt:run</code> also tried to pass <code>-Dspring.profiles.active="dev"</code> via the VM arguments under the JRE tab in run configurations along with the goal <code>gwt:run</code> . I also tried the environment tab and even <code>-Dspring.profiles.active=dev</code> but the <code>NoSuchBeanDefinitionException</code> doesn't budge . Is this because of the limited capability of the embedded server ? </p>