本文整理了Java中org.apache.maven.model.Plugin.getExecutionsAsMap()
方法的一些代码示例,展示了Plugin.getExecutionsAsMap()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Plugin.getExecutionsAsMap()
方法的具体详情如下:
包路径:org.apache.maven.model.Plugin
类名称:Plugin
方法名:getExecutionsAsMap
暂无
代码示例来源:origin: org.apache.maven/maven-project
private void forcePluginExecutionIdCollision( final Model model, final ModelValidationResult result )
{
Build build = model.getBuild();
if ( build != null )
{
List plugins = build.getPlugins();
if ( plugins != null )
{
for ( Iterator it = plugins.iterator(); it.hasNext(); )
{
Plugin plugin = (Plugin) it.next();
// this will force an IllegalStateException, even if we don't have to do inheritance assembly.
try
{
plugin.getExecutionsAsMap();
}
catch ( IllegalStateException collisionException )
{
result.addMessage( collisionException.getMessage() );
}
}
}
}
}
代码示例来源:origin: apache/maven
PluginExecution execution = plugin.getExecutionsAsMap().get( executionId );
if ( execution != null )
代码示例来源:origin: org.apache.maven/maven-project
Map profileExecutions = profilePlugin.getExecutionsAsMap();
代码示例来源:origin: org.apache.maven/maven-project
PluginExecution execution = (PluginExecution) plugin.getExecutionsAsMap().get( executionId );
if ( execution != null )
代码示例来源:origin: org.apache.maven/maven-project
Map childExecutions = child.getExecutionsAsMap();
代码示例来源:origin: apache/maven
Map<String, PluginExecution> childExecutions = child.getExecutionsAsMap();
代码示例来源:origin: lewisd32/lint-maven-plugin
public Map<String, PluginExecution> getExecutionsAsMap() {
return plugin.getExecutionsAsMap();
}
代码示例来源:origin: org.spockframework/spock-maven
private ConfigurationContainer getSurefireConfigurationContainer() throws MojoExecutionException {
@SuppressWarnings("unchecked")
List<Plugin> plugins = project.getBuildPlugins();
for (Plugin plugin : plugins) {
if (!plugin.getGroupId().equals("org.apache.maven.plugins")) continue;
if (!plugin.getArtifactId().equals("maven-surefire-plugin")) continue;
if (surefireExecutionId == null) return plugin;
PluginExecution execution = (PluginExecution) plugin.getExecutionsAsMap().get(surefireExecutionId);
if (execution == null) throw new MojoExecutionException(
String.format("Cannot find Surefire execution with ID '%s'", surefireExecutionId));
return execution;
}
throw new MojoExecutionException("Surefire plugin not found; make sure it is bound to a lifecycle phase");
}
代码示例来源:origin: fabric8io/fabric8-maven-plugin
private boolean isSpringBootRepackage() {
MavenProject project = getProject();
Plugin plugin = MavenUtil.getPluginOfAnyGroupId(project, SpringBootConfigurationHelper.SPRING_BOOT_MAVEN_PLUGIN_ARTIFACT_ID);
if (plugin != null) {
Map<String, PluginExecution> executionsAsMap = plugin.getExecutionsAsMap();
if (executionsAsMap != null) {
for (PluginExecution execution : executionsAsMap.values()) {
List<String> goals = execution.getGoals();
if (goals.contains("repackage")) {
log.verbose("Using fat jar packaging as the spring boot plugin is using `repackage` goal execution");
return true;
}
}
}
}
return false;
}
代码示例来源:origin: maoo/maven-tiles
public void merge( Model target, Model source, boolean sourceDominant, Map<?, ?> hints ) {
Map<Object, Object> context = new HashMap<Object, Object>();
if ( hints != null )
{
context.putAll( hints );
}
super.merge(target, source, sourceDominant, hints);
if (source.getBuild() != null) {
super.merge(target, source, sourceDominant,context);
for(Plugin sourcePlugin : source.getBuild().getPlugins()) {
Plugin targetPlugin = target.getBuild().getPluginsAsMap().get(sourcePlugin.getKey());
super.mergePlugin(targetPlugin, sourcePlugin, sourceDominant, context);
Set<Entry<String, PluginExecution>> entrySet = targetPlugin.getExecutionsAsMap().entrySet();
for (Entry<String, PluginExecution> entry : entrySet) {
PluginExecution execution = entry.getValue();
if (execution.getConfiguration() == null) {
execution.setConfiguration(sourcePlugin.getConfiguration());
}
}
}
}
}
}
代码示例来源:origin: io.teecube.t3/t3-common
PluginExecution oldEx = this.plugin.getExecutionsAsMap().get(id);
if (oldEx != null) {
ex.setConfiguration(Xpp3Dom.mergeXpp3Dom((Xpp3Dom) oldEx.getConfiguration(), (Xpp3Dom) ex.getConfiguration()));
ex.setPriority(oldEx.getPriority());
this.plugin.getExecutionsAsMap().put(id, ex);
for (ListIterator<PluginExecution> it = this.plugin.getExecutions().listIterator(); it.hasNext();) {
PluginExecution pluginExecution = it.next();
代码示例来源:origin: org.codehaus.mevenide/nb-project
PluginExecution exec = (PluginExecution)assPlugin.getExecutionsAsMap().get("nb"); //NOI18N
if (exec == null) {
exec = new PluginExecution();
内容来源于网络,如有侵权,请联系作者删除!