public void addDependency(Dependency dependency) { plugin.addDependency(dependency); }
dep.setArtifactId(Constants.getArtifactId(flavour)); dep.setVersion(Constants.getVersion()); plugin.addDependency(dep);
private Plugin bndPlugin() { log.info("using maven-bundle-plugin v" + pluginArtifactIdToVersionMap.get("maven-bundle-plugin")); // AMPS-1211: maven-bundle-plugin 2.5.3 broke manifest. Add bndlib dependency for work around solution final Plugin bndPlugin = plugin( groupId("org.apache.felix"), artifactId("maven-bundle-plugin"), version(defaultArtifactIdToVersionMap.get("maven-bundle-plugin")) ); final Dependency bndLib = new Dependency(); bndLib.setGroupId(groupId("biz.aQute.bnd")); bndLib.setArtifactId(artifactId("bndlib")); bndLib.setVersion(defaultArtifactIdToVersionMap.get("bndlib")); bndPlugin.addDependency(bndLib); return bndPlugin; }
/** * Add a dependency for the plugin. * * @param groupId The groupId * @param artifactId The artifactId * @param version The version */ protected final void addDependency( final String groupId, final String artifactId, final String version ) { final Dependency dependency = new Dependency(); dependency.setGroupId(groupId); dependency.setArtifactId(artifactId); dependency.setVersion(version); getPlugin().addDependency(dependency); } }
plugin.setArtifactId("datanucleus-maven-plugin"); plugin.setVersion(DATANUCLEUS_VERSION); plugin.addDependency(enhancer_api.equals("JDO") ? JDO_DEPENDENCY : JPA_DEPENDENCY); for (Dependency transitiveDep : project.getDependencies()) { plugin.addDependency(transitiveDep);
plugin.setArtifactId("datanucleus-maven-plugin"); plugin.setVersion(DATANUCLEUS_VERSION); plugin.addDependency(enhancer_api.equals("JDO") ? JDO_DEPENDENCY : JPA_DEPENDENCY); for (Dependency transitiveDep : project.getDependencies()) { plugin.addDependency(transitiveDep);