title: maven resolves dependecy but cannot find package/classes in it
body: <p>In custom geotools platform compilation (in fact OSGi-based) one of the modules compiles properly when I try to build it separetly. But when I build the whole project - it fails on <code>compile</code> stage with reason that it cannot find certain packages/classes. Howerver the dependincy is resolved fine.</p>
  <p>here is the dependency from module's pom.xml:</p>
  <pre><code>&lt;dependency&gt;
     &lt;groupId&gt;org.picocontainer&lt;/groupId&gt;
     &lt;artifactId&gt;com.springsource.org.picocontainer&lt;/artifactId&gt;
     &lt;version&gt;1.2.0&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  <p>the part of maven's build error:</p>
  <blockquote>
  <p>...\geotools-osgi\modules\extension\xsd\xsd-core\src\main\java\org\geotools\xs\bindings\XSGroupBinding.java:[19,24]
  package org.picocon tainer does not exist</p>
  <p>...\geotools-osgi\modules\extension\xsd\xsd-core\src\main\java\org\geotools\xml\AbstractComplexBinding.java:[20,24] package org.picocon tainer does not exist</p>
  <p>...\geotools-osgi\modules\extension\xsd\xsd-core\src\main\java\org\geotools\xml\ComplexBinding.java:[21,24]
  package org.picocontainer does not exist</p>
  </blockquote>
  <p>if I change the pom.xml dependecy - it fails with some kind of &quot;cannot resolve bundle&quot;.</p>
  <p>The project is really big and the number of bundles and child/parent poms. So I can't post all of them here.
  So my question is: what is the possible reason for this kind of trouble? Could it be a dependency conflict between parent/child?</p>