Having applied both the ear and the maven plugin in my project, the “install” task will not be added.
apply plugin: 'ear'
apply plugin: 'maven'
If I’d add the “java” plugin, the “install” task would be added, but as the project is not a java project, this is not what I want.
I think the MavenPlugin should be extended with another “configureScopeMapping” function in its “apply” method. Something like:
plugins.withType(EarPlugin.class, new Action<EarPlugin>() {
public void execute(EarPlugin earPlugin) {
configureEarScopeMappings(project.getConfigurations(), pluginConvention.getConf2ScopeMappings());
configureInstall(project);
}
});
Does that make sense? Can you add this as change request?