src/main/java/org/organicelement/deployment/mojo/DeploymentPackageMojo.java
private void addDependencies(DeploymentPackageMetadata dpInfo) {
		List dependencies = project.getDependencies();
		if (dependencies != null) {
			for (Object depObj : dependencies) {
				if (!(depObj instanceof Dependency))
					continue;

				Dependency dep = (Dependency) depObj;
				if (!dep.getType().equals("jar")) // TODO should detect if it is not a bundle
					continue;

				String groupId = dep.getGroupId();
				String artifactId = dep.getArtifactId();
				String version = dep.getVersion();

				BundleResource bres = getDefinedDPResource(groupId, artifactId, dpInfo);
				if (bres == null) {
					bres = new BundleResource();
					dpInfo.getResources().add(bres);
				}

				bres.setGroupId(groupId);
				bres.setArtifactId(artifactId);
				bres.setVersion(version);
				bres.setTargetPath("bundles");
			}
		}
	}
/**
	 * Plugin configuration have been performed before calling this method
	 * 
	 * @param dpInfo current deployment package configuration
	 */
Plugin configuration have been performed before calling this method

@param dpInfo current deployment package configuration
Plugin configuration have been performed before calling this method @param dpInfo current deployment package configuration
private void addDependencies(DeploymentPackageMetadata dpInfo) {
		List dependencies = project.getDependencies();
		if (dependencies != null) {
			for (Object depObj : dependencies) {
				if (!(depObj instanceof Dependency))
					continue;
				Dependency dep = (Dependency) depObj;
				if (!dep.getType().equals("jar")) 
					continue;
				String groupId = dep.getGroupId();
				String artifactId = dep.getArtifactId();
				String version = dep.getVersion();
				BundleResource bres = getDefinedDPResource(groupId, artifactId, dpInfo);
				if (bres == null) {
					bres = new BundleResource();
					dpInfo.getResources().add(bres);
				}
				bres.setGroupId(groupId);
				bres.setArtifactId(artifactId);
				bres.setVersion(version);
				bres.setTargetPath("bundles");
			}
		}
	}
private void addDependencies ( DeploymentPackageMetadata dpInfo ) { List dependencies = project . getDependencies ( ) ; if ( dependencies != null ) { for ( Object depObj : dependencies ) { if ( ! ( depObj instanceof Dependency ) ) continue ; Dependency dep = ( Dependency ) depObj ; if ( ! dep . getType ( ) . equals ( "jar" ) ) continue ; String groupId = dep . getGroupId ( ) ; String artifactId = dep . getArtifactId ( ) ; String version = dep . getVersion ( ) ; BundleResource bres = getDefinedDPResource ( groupId , artifactId , dpInfo ) ; if ( bres == null ) { bres = new BundleResource ( ) ; dpInfo . getResources ( ) . add ( bres ) ; } bres . setGroupId ( groupId ) ; bres . setArtifactId ( artifactId ) ; bres . setVersion ( version ) ; bres . setTargetPath ( "bundles" ) ; } } }
Plugin configuration have been performed before calling this method
Plugin configuration have been performed before calling this method
// TODO should detect if it is not a bundle