Issue
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 compile
stage with reason that it cannot find certain packages/classes. Howerver the dependincy is resolved fine.
here is the dependency from module's pom.xml:
<dependency>
<groupId>org.picocontainer</groupId>
<artifactId>com.springsource.org.picocontainer</artifactId>
<version>1.2.0</version>
</dependency>
the part of maven's build error:
...\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
...\geotools-osgi\modules\extension\xsd\xsd-core\src\main\java\org\geotools\xml\AbstractComplexBinding.java:[20,24] package org.picocon tainer does not exist
...\geotools-osgi\modules\extension\xsd\xsd-core\src\main\java\org\geotools\xml\ComplexBinding.java:[21,24] package org.picocontainer does not exist
if I change the pom.xml dependecy - it fails with some kind of "cannot resolve bundle".
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?
Solution
Well, the actual reason was that the target computer had the restricted access to the internet, so the restricted access to the maven repos. With some black magic it did not fail with some kind of 'cannot download artifact' (maybe because of manual install of some jar files). So we got the server with normal access, set it up as a mirror, configured our maven to use the mirror and that solved the problem. Thanks @Samuel for participating in my problem, but as I can see that it was not possible to determine the problem from the problem description.
Answered By - Alex Stybaev
Answer Checked By - Marilyn (JavaFixing Volunteer)