title: How to include custom classes in GWT
body: <p>I am trying to include my own package in a GWT bundle. If I try to use the Java class from my own custom package/class in GWT application I am getting the error <em>"No source code is available for the type. Did you forget to inherit a required module"</em> while building with maven.</p>
  
  <p>I tried the solutions below to resolve the above mentioned problem:</p>
  
  <ol>
  <li>I inherited the custom package in <code>gwt.xml</code></li>
  <li>I included the custom package in <code>pom.xml</code> of GWT application for maven</li>
  <li>Installed the jar in repository</li>
  </ol>
  
  <p>But i'm still getting the above mentioned error.</p>
  
  <p><strong>Note: I am not getting this error in eclipse only during command line maven build.</strong></p>
  
  <p>How can I include my own package in a GWT bundle using maven?</p>
  
  <p><strong>wmc.gwt.xml</strong></p>
  
  <pre><code>?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;module rename-to='wmc'&gt;
  
    &lt;!-- Inherit the core Web Toolkit stuff.                        --&gt;
    &lt;inherits name='com.google.gwt.user.User'/&gt;
  
  
    &lt;!-- Inherit the default GWT style sheet.  You can change       --&gt;
    &lt;!-- the theme of your GWT application by uncommenting          --&gt;
    &lt;!-- any one of the following lines.                            --&gt;
    &lt;inherits name='com.google.gwt.user.theme.clean.Clean'/&gt;
    &lt;!-- &lt;inherits name='com.google.gwt.user.theme.standard.Standard'/&gt; --&gt;
    &lt;!-- &lt;inherits name='com.google.gwt.user.theme.chrome.Chrome'/&gt; --&gt;
    &lt;!-- &lt;inherits name='com.google.gwt.user.theme.dark.Dark'/&gt;     --&gt;
    &lt;inherits name="com.smartgwtpro.SmartGwtProNoTheme" /&gt;
    &lt;inherits name="com.smartgwtpro.tools.Tools" /&gt;
  
    &lt;inherits name="com.smartgwt.SmartGwtNoTheme"/&gt;    
    &lt;inherits name="com.smartclient.theme.enterprise.Enterprise"/&gt;
    &lt;inherits name="com.smartclient.theme.enterprise.EnterpriseResources"/&gt;
  
    &lt;inherits name='com.extjs.gxt.ui.GXT'/&gt;
    &lt;inherits name='com.googlecode.gchart.GChart'/&gt;
    &lt;inherits name='pl.balon.gwt.diagrams.Diagrams'/&gt;
    &lt;inherits name='com.google.gwt.visualization.Visualization'/&gt;
    &lt;inherits name='com.allen_sauer.gwt.dnd.gwt-dnd'/&gt;
  
     &lt;!-- inherit the customized package for accessing the method of that bundle --&gt;
    &lt;inherits name='com.bf.service.management'/&gt;
  
    &lt;!-- Specify the app entry point class.                         --&gt;
    &lt;entry-point class='com.isoft.web.viaductWebConsole.client.MonitorConsole'/&gt;
  
    &lt;!-- Specify the paths for translatable code                    --&gt;
    &lt;source path='wmc/client'/&gt;
    &lt;source path='wmc'/&gt;
    &lt;source path='web'/&gt;
  </code></pre>
  
  <p>The above mentioned is the gwt.xml , where you'll find <code>&lt;inherits name='com.bf.service.management'/&gt;</code> - this is my customized package which I need to use in the GWT application but when I try to build the GWT code I am getting the <strong>"Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.5.1 : compile  on project wmc: GWT Module com.bf.service.management not found in project sources or resources"</strong></p>