title: How to change GWT.xml with maven profile by a GWT project
body: <p>Currently, i am working on a gwt-maven project. As every GWT project, it has the following gwt.xml</p>
  
  <p><p></p>
  
  <pre><code>&lt;module rename-to='myProject'&gt;
  &lt;!-- Inherit the core Web Toolkit stuff. --&gt;
  &lt;inherits name='com.google.gwt.user.User' /&gt;
     .
     .    
     ...
  </code></pre>
  
  <p><p>
  I created another gwt.xml to set configuration for continous integration. (as defined <a href="http://jgonian.wordpress.com/2011/02/24/efficient-gwt-development-swap-your-gwt-xml-with-maven/" rel="nofollow">here</a>.)</p>
  
  <pre><code>&lt;module rename-to='myProject'&gt;
      &lt;!-- Inherit the core Web Toolkit stuff. --&gt;
      &lt;inherits name='com.myCompany.myProject' /&gt;
     .
     .    
     ...
  </code></pre>
  
  <p><p>
  and here is my pom to manage the profiles and change the gwt.xml.</p>
  
  <pre><code>&lt;profile&gt;
    &lt;id&gt;ci&lt;/id&gt;
      &lt;build&gt;
        &lt;plugins&gt;
          &lt;plugin&gt;
            &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
            &lt;artifactId&gt;gwt-maven-plugin&lt;/artifactId&gt;
            &lt;configuration&gt;
                    &lt;module&gt;com.myCompany.myProject&lt;/module&gt;
                    &lt;style&gt;OBF&lt;/style&gt;
            &lt;/configuration&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
   &lt;/build&gt;
  
  &lt;/profile&gt;
  </code></pre>
  
  <p><p></p>
  
  <p>If i try to package the project with profile ci (mvn package -Pci), i get the following error.</p>
  
  <pre><code>[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.3.0-1:compile (default) on project MyProject: GWT Module com.myCompany.myProject not found in project sources or resources. -&gt; [Help 1]
  </code></pre>
  
  <p><p></p>
  
  <p>How can i solve it?</p>