本文整理了Java中org.apache.maven.model.Plugin.setExtensions()
方法的一些代码示例,展示了Plugin.setExtensions()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Plugin.setExtensions()
方法的具体详情如下:
包路径:org.apache.maven.model.Plugin
类名称:Plugin
方法名:setExtensions
[英]Set whether to load Maven extensions (such as packaging and type handlers) from this plugin. For performance reasons, this should only be enabled when necessary. Note: While the type of this field is String
for technical reasons, the semantic type is actually Boolean
. Default value is false
.
[中]设置是否从此插件加载Maven扩展(例如打包和类型处理程序)。出于性能原因,只有在必要时才应启用此功能。注意:由于技术原因,该字段的类型为String
,而语义类型实际上为Boolean
。默认值为false
。
代码示例来源:origin: apache/maven
protected void mergePlugin_Extensions( Plugin target, Plugin source, boolean sourceDominant,
Map<Object, Object> context )
{
String src = source.getExtensions();
if ( src != null )
{
if ( sourceDominant || target.getExtensions() == null )
{
target.setExtensions( src );
target.setLocation( "extensions", source.getLocation( "extensions" ) );
}
}
}
代码示例来源:origin: org.apache.maven/maven-project
modelPlugin.setExtensions( true );
代码示例来源:origin: org.apache.maven/maven-project
child.setExtensions( true );
代码示例来源:origin: apache/maven
child.setExtensions( true );
代码示例来源:origin: takari/polyglot-maven
public PluginBuilder extensions(boolean extensions) {
plugin.setExtensions(extensions);
return this;
}
代码示例来源:origin: apache/maven
plugin.setExtensions( interpolatedTrimmed( parser.nextText(), "extensions" ) );
代码示例来源:origin: org.apache.maven/maven-project
public static Plugin clonePlugin( Plugin src )
{
Plugin result = null;
if ( src != null )
{
result = new Plugin();
result.setArtifactId( src.getArtifactId() );
result.setConfiguration( cloneConfiguration( src.getConfiguration() ) );
result.setDependencies( cloneList( src.getDependencies(), DEPENDENCY_CLONER ) );
result.setExecutions( cloneList( src.getExecutions(), PLUGIN_EXECUTION_CLONER ) );
result.setExtensions( src.isExtensions() );
result.setGroupId( src.getGroupId() );
result.setInherited( src.getInherited() );
result.setVersion( src.getVersion() );
}
return result;
}
代码示例来源:origin: apache/maven
plugin.setExtensions( interpolatedTrimmed( parser.nextText(), "extensions" ) );
代码示例来源:origin: lewisd32/lint-maven-plugin
public void setExtensions(String extensions) {
plugin.setExtensions(extensions);
}
代码示例来源:origin: lewisd32/lint-maven-plugin
public void setExtensions(boolean extensions) {
plugin.setExtensions(extensions);
}
代码示例来源:origin: takari/polyglot-maven
plugin.setExtensions( getTrimmedValue( value ) );
代码示例来源:origin: org.kie.workbench.services/kie-wb-common-compiler-core
public static Plugin getPlugin(String groupdID, String artifactID, String version, Boolean extensions) {
Plugin plugin = new Plugin();
plugin.setGroupId(groupdID);
plugin.setArtifactId(artifactID);
plugin.setVersion(version);
plugin.setExtensions(extensions);
return plugin;
}
代码示例来源:origin: org.kie.workbench.services/kie-wb-common-services-backend
private Plugin getKieMavenPlugin() {
Plugin kieMavenPlugin = new Plugin();
kieMavenPlugin.setGroupId(KIE_PKG);
kieMavenPlugin.setArtifactId(KIE_MAVEN_PLUGIN_ARTIFACT_ID);
kieMavenPlugin.setVersion(kieVersion);
kieMavenPlugin.setExtensions(true);
return kieMavenPlugin;
}
代码示例来源:origin: io.tesla.maven/maven-model
protected void mergePlugin_Extensions( Plugin target, Plugin source, boolean sourceDominant,
Map<Object, Object> context )
{
String src = source.getExtensions();
if ( src != null )
{
if ( sourceDominant || target.getExtensions() == null )
{
target.setExtensions( src );
target.setLocation( "extensions", source.getLocation( "extensions" ) );
}
}
}
代码示例来源:origin: org.wso2.maven/org.wso2.maven.core
public static Plugin createPluginEntry(MavenProject project, String groupId, String artifactId, String version,boolean isExtension){
Plugin plugin = new Plugin();
plugin.setGroupId(groupId);
plugin.setArtifactId(artifactId);
plugin.setVersion(version);
if (isExtension){
plugin.setExtensions(true);
}
MavenUtils.createMainConfigurationNode(plugin);
project.getBuild().addPlugin(plugin);
return plugin;
}
代码示例来源:origin: org.uberfire/uberfire-project-backend
private Plugin update(final org.guvnor.common.services.project.model.Plugin from,
final Plugin to) {
to.setGroupId(from.getGroupId());
to.setArtifactId(from.getArtifactId());
to.setVersion(from.getVersion());
// false is the default value, so we only set it if value is true
if (from.isExtensions()) {
to.setExtensions(from.isExtensions());
} else {
to.setExtensions(null);
}
new DependencyUpdater(to.getDependencies()).updateDependencies(from.getDependencies());
return to;
}
}
代码示例来源:origin: org.guvnor/guvnor-project-backend
private Plugin update(final org.guvnor.common.services.project.model.Plugin from,
final Plugin to) {
to.setGroupId(from.getGroupId());
to.setArtifactId(from.getArtifactId());
to.setVersion(from.getVersion());
// false is the default value, so we only set it if value is true
if (from.isExtensions()) {
to.setExtensions(from.isExtensions());
} else {
to.setExtensions(null);
}
new DependencyUpdater(to.getDependencies()).updateDependencies(from.getDependencies());
return to;
}
}
代码示例来源:origin: kiegroup/appformer
private Plugin update(final org.guvnor.common.services.project.model.Plugin from,
final Plugin to) {
to.setGroupId(from.getGroupId());
to.setArtifactId(from.getArtifactId());
to.setVersion(from.getVersion());
// false is the default value, so we only set it if value is true
if (from.isExtensions()) {
to.setExtensions(from.isExtensions());
} else {
to.setExtensions(null);
}
new DependencyUpdater(to.getDependencies()).updateDependencies(from.getDependencies());
return to;
}
}
代码示例来源:origin: apache/maven-release
if ( plugin.getExtensions() != null )
releasePlugin.setExtensions( plugin.isExtensions() );
代码示例来源:origin: com.github.htfv.maven.plugins/build-configurator-core
/**
* Interpolates elements of the {@link Plugin} object.
*
* @param plugin
* {@link Plugin} object whose elements to interpolate.
*/
private void interpolatePlugin(final Plugin plugin)
{
plugin.setArtifactId(
interpolateString(plugin.getArtifactId()));
plugin.setExtensions(
interpolateString(plugin.getExtensions()));
plugin.setGroupId(
interpolateString(plugin.getGroupId()));
plugin.setInherited(
interpolateString(plugin.getInherited()));
plugin.setVersion(
interpolateString(plugin.getVersion()));
interpolateDOM((Xpp3Dom) plugin.getConfiguration());
interpolateDependencies(plugin.getDependencies());
interpolateExecutions(plugin.getExecutions());
}
内容来源于网络,如有侵权,请联系作者删除!