public void execute()

in taverna-maven-plugin/src/main/java/org/apache/taverna/mavenplugin/TavernaPluginPrepareBundlesMojo.java [62:78]


	public void execute() throws MojoExecutionException, MojoFailureException {
		osgiUtils = new MavenOsgiUtils(project, repositorySystemSession,
				projectDependenciesResolver, getLog());
		outputDirectory.mkdirs();

		Set<BundleArtifact> bundleDependencies = osgiUtils.getBundleDependencies(
				Artifact.SCOPE_COMPILE, Artifact.SCOPE_RUNTIME);
		try {
			for (BundleArtifact bundleArtifact : bundleDependencies) {
				Artifact artifact = bundleArtifact.getArtifact();
				FileUtils.copyFileToDirectory(bundleArtifact.getArtifact().getFile(), new File(
						outputDirectory, artifact.getGroupId()));
			}
		} catch (IOException e) {
			throw new MojoExecutionException("Error copying dependecies to archive directory", e);
		}
	}