protected IdeDependency[] doDependencyResolution() throws MojoExecutionException {
IdeDependency[] deps = super.doDependencyResolution();
if (ignoreOsgiBundle) {
for (int i = 0; i < deps.length; i++) {
IdeDependency dep = deps[i];
if (dep.isOsgiBundle()) {
deps[i] = new IdeDependency(dep.getGroupId(),
dep.getArtifactId(),
dep.getVersion(),
dep.getClassifier(),
dep.isReferencedProject(),
dep.isTestDependency(),
dep.isSystemScoped(),
dep.isProvided(),
dep.isAddedToClasspath(),
dep.getFile(),
dep.getType(),
false, // force to be false
null,
-1,
dep.getEclipseProjectName());
}
}
}
if (isPdeProject() && libdir != null) {
for (int j = 0; j < deps.length; j++) {
IdeDependency dep = deps[j];
if (!dep.isProvided() && !dep.isReferencedProject() && !dep.isTestDependency() && !dep.isOsgiBundle() && dep.getFile() != null) {
File lib = new File(getProject().getBasedir(), libdir);
File srcfile = dep.getFile();
getLog().info("Copying " + srcfile.getName() + " to " + lib.getAbsolutePath());
try {
FileUtils.copyFileToDirectory(srcfile, lib);