title: Maven build failure: package does not exist
body: <p>I have two maven modules, AppManager and myApp. These are in the same directory locally and are not available in the company's online repo as they are for testing purposes. In IntelliJ I have no problem using the fields and methods of AppManager and there are no error messages. I am exporting com.mycompany.appManager in my impl pom file for myApp. However, when I build outside of the IDE, i.e. <code>mvn clean install</code>, there is an error for the package <code>com.mycompany.appManager</code> does not exist and then associated errors for unresolved symbols for usage of public fields defined in appManager. How can I resolve this problem? I've tried the exporting and adding a dependency, but these two solutions do not work.</p>
  
  <p>pom.xml:</p>
  
  <pre><code>&lt;moduleVersion&gt;4.0.0&lt;/moduleVersion&gt;
  &lt;parent&gt;
      &lt;groupId&gt;com.myCompany&lt;/groupId&gt;
      &lt;artifactId&gt;myApp&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;/parent&gt;
  
  &lt;groupId&gt;com.myCompany.myApp&lt;/groupId&gt;
  &lt;artifactId&gt;com.myCompany.myApp.impl&lt;/artifactId&gt;
  &lt;packaging&gt;bundle&lt;/packaging&gt;
  &lt;name&gt;My App Implementation&lt;/name&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
               &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
               &lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt;
               &lt;extensions&gt;true&lt;/extensions&gt;
               &lt;configuration&gt;
                   &lt;instructions&gt;
                       &lt;Export-Package&gt;
                            com.myCompany.appmanager
                       &lt;/Export-Package&gt;
                       &lt;Bundle-Activator&gt;com.mycompany.myapp.impl.component&lt;/Bundle-Activator&gt;
                   &lt;/instructions&gt;
               &lt;/configuration&gt;
           &lt;/plugin&gt;
       &lt;/plugin&gt;
   &lt;/build&gt;
  </code></pre>
  
  <p>Compilation Error: </p>
  
  <pre><code>[ERROR] /root/Desktop/apps/myapp/impl/src/main/java/com/mycompany/myApp/impl/component.java:[11,49] package com.mycompany.appmanager does not exist
  [ERROR] /root/Desktop/apps/myapp/impl/src/main/java/com/mycompany/myApp/impl/component.java:[64,49] cannot find symbol
      symbol: variable AppManagerModule
      location: class com/mycompany/myApp/impl/component
  </code></pre>