public void setPackaging(String packaging) { wrapped.setPackaging(packaging); }
public void setPackaging( String packaging ) { getMavenProject().setPackaging( packaging ); }
public void setPackaging(final String s) { getDelegate().setPackaging(s); }
protected Pom createDummyPom( ArtifactRepository localRepository ) { Pom pom = new Pom(); MavenProject minimalProject = createMinimalProject( localRepository ); // we nulled out these fields to allow inheritance when creating poms, but the dummy // needs to be a valid pom, so set them back to something that's OK to resolve minimalProject.setGroupId( "org.apache.maven" ); minimalProject.setArtifactId( "super-pom" ); minimalProject.setVersion( "2.0" ); minimalProject.setPackaging( "pom" ); pom.setMavenProject( minimalProject ); return pom; }
private MavenProject prepareBW6Module() throws MojoExecutionException, IOException, XmlPullParserException, BundleException, UnknownRepositoryLayoutException { mavenProject.setPackaging("eclipse-plugin"); // change packaging of the POM to "eclipse-plugin" (used by tycho plugins) PluginConfigurator.updatePluginsConfiguration(mavenProject, session, true, BW6PackagingConvertor.class, logger, BW6LifecycleParticipant.pluginKey); processRequiredCapabilites(getRequiredCapabilities(mavenProject)); // will update builtinCapabilities and customCapabilities updateTychoTargetPlatformPlugin(); updateProjectDependencies(); addBW6P2Repository(); addProjectP2Repository(); // Maven p2 repository is filled by dependencies of Maven model such as shared module (with bw6-shared-module packaging) return mavenProject; }
this.project.setPackaging( "pom" );
this.project.setPackaging( "pom" );
toBuild.setArtifactId(config.getArtifactId()); toBuild.setVersion(project.getVersion()); toBuild.setPackaging("pom"); toBuild.setName(config.getName()); toBuild.setDescription(config.getDescription());
mavenProject.setPackaging(BW6CommonMojo.BW6_APPLICATION_PACKAGING); // change packaging of the POM from "pom" to "bw6-application"
toGenerate.setArtifactId(config.getArtifactId()); toGenerate.setVersion(project.getVersion()); toGenerate.setPackaging("pom"); toGenerate.setName(config.getName()); toGenerate.setDescription(config.getDescription());
protected void addMavenBundlePlugin(MavenProject artifactMavenProject, Artifact artifact) throws FactoryConfigurationError { artifactMavenProject.setPackaging(CAppMavenUtils.BUNDLE_PACKAGING_TYPE); artifactMavenProject.getModel().addProperty(CAppUtils.PROPERTY_CAPP_TYPE, getArtifactType()); Plugin plugin = CAppMavenUtils.createPluginEntry(artifactMavenProject, "org.apache.felix", "maven-bundle-plugin", "2.3.4", true);
protected void addRestrictedMavenBundlePlugin(MavenProject artifactMavenProject, Artifact artifact) throws FactoryConfigurationError { artifactMavenProject.setPackaging(CAppMavenUtils.BUNDLE_PACKAGING_TYPE); artifactMavenProject.getModel().addProperty(CAppUtils.PROPERTY_CAPP_TYPE, getArtifactType()); Plugin plugin = CAppMavenUtils.createPluginEntry(artifactMavenProject, "org.apache.felix", "maven-bundle-plugin", "2.3.4", true);