mirror of https://github.com/apache/maven.git
[MNG-7666] Update default binding and lifecycle plugin versions (#956)
Finally use 3.x plugins for all. --- https://issues.apache.org/jira/browse/MNG-7666
This commit is contained in:
parent
2fba4471c9
commit
01ba8291cd
|
@ -28,12 +28,12 @@ import javax.inject.Singleton;
|
|||
@Named(CleanLifecycleProvider.LIFECYCLE_ID)
|
||||
@Singleton
|
||||
public final class CleanLifecycleProvider extends AbstractLifecycleProvider {
|
||||
protected static final String LIFECYCLE_ID = "clean";
|
||||
static final String LIFECYCLE_ID = "clean";
|
||||
|
||||
// START SNIPPET: clean
|
||||
private static final String[] PHASES = {"pre-clean", "clean", "post-clean"};
|
||||
|
||||
private static final String MAVEN_CLEAN_PLUGIN_VERSION = "3.1.0";
|
||||
private static final String MAVEN_CLEAN_PLUGIN_VERSION = "3.2.0";
|
||||
|
||||
private static final String[] BINDINGS = {
|
||||
"clean", "org.apache.maven.plugins:maven-clean-plugin:" + MAVEN_CLEAN_PLUGIN_VERSION + ":clean"
|
||||
|
|
|
@ -28,7 +28,7 @@ import javax.inject.Singleton;
|
|||
@Named(DefaultLifecycleProvider.LIFECYCLE_ID)
|
||||
@Singleton
|
||||
public final class DefaultLifecycleProvider extends AbstractLifecycleProvider {
|
||||
protected static final String LIFECYCLE_ID = "default";
|
||||
static final String LIFECYCLE_ID = "default";
|
||||
|
||||
// START SNIPPET: default
|
||||
private static final String[] PHASES = {
|
||||
|
|
|
@ -28,14 +28,16 @@ import javax.inject.Singleton;
|
|||
@Named(SiteLifecycleProvider.LIFECYCLE_ID)
|
||||
@Singleton
|
||||
public final class SiteLifecycleProvider extends AbstractLifecycleProvider {
|
||||
protected static final String LIFECYCLE_ID = "site";
|
||||
static final String LIFECYCLE_ID = "site";
|
||||
|
||||
// START SNIPPET: site
|
||||
private static final String[] PHASES = {"pre-site", "site", "post-site", "site-deploy"};
|
||||
|
||||
private static final String MAVEN_SITE_PLUGIN_VERSION = "3.12.1";
|
||||
|
||||
private static final String[] BINDINGS = {
|
||||
"site", "org.apache.maven.plugins:maven-site-plugin:3.9.1:site",
|
||||
"site-deploy", "org.apache.maven.plugins:maven-site-plugin:3.9.1:deploy"
|
||||
"site", "org.apache.maven.plugins:maven-site-plugin:" + MAVEN_SITE_PLUGIN_VERSION + ":site",
|
||||
"site-deploy", "org.apache.maven.plugins:maven-site-plugin:" + MAVEN_SITE_PLUGIN_VERSION + ":deploy"
|
||||
};
|
||||
// END SNIPPET: site
|
||||
|
||||
|
|
|
@ -28,12 +28,16 @@ import javax.inject.Singleton;
|
|||
@Named(WrapperLifecycleProvider.LIFECYCLE_ID)
|
||||
@Singleton
|
||||
public final class WrapperLifecycleProvider extends AbstractLifecycleProvider {
|
||||
protected static final String LIFECYCLE_ID = "wrapper";
|
||||
static final String LIFECYCLE_ID = "wrapper";
|
||||
|
||||
// START SNIPPET: wrapper
|
||||
private static final String[] PHASES = {"wrapper"};
|
||||
|
||||
private static final String[] BINDINGS = {"wrapper", "org.apache.maven.plugins:maven-wrapper-plugin:3.1.0:wrapper"};
|
||||
private static final String MAVEN_WRAPPER_PLUGIN_VERSION = "3.1.1";
|
||||
|
||||
private static final String[] BINDINGS = {
|
||||
"wrapper", "org.apache.maven.plugins:maven-wrapper-plugin:" + MAVEN_WRAPPER_PLUGIN_VERSION + ":wrapper"
|
||||
};
|
||||
// END SNIPPET: wrapper
|
||||
|
||||
@Inject
|
||||
|
|
|
@ -34,29 +34,29 @@ import static java.util.Objects.requireNonNull;
|
|||
* Base lifecycle mapping provider, ie per-packaging plugin bindings for {@code default} lifecycle.
|
||||
*/
|
||||
public abstract class AbstractLifecycleMappingProvider implements Provider<LifecycleMapping> {
|
||||
protected static final String RESOURCES_PLUGIN_VERSION = "3.2.0";
|
||||
protected static final String RESOURCES_PLUGIN_VERSION = "3.3.0";
|
||||
|
||||
protected static final String COMPILER_PLUGIN_VERSION = "3.8.1";
|
||||
protected static final String COMPILER_PLUGIN_VERSION = "3.10.1";
|
||||
|
||||
protected static final String SUREFIRE_PLUGIN_VERSION = "3.0.0-M5";
|
||||
protected static final String SUREFIRE_PLUGIN_VERSION = "3.0.0-M8";
|
||||
|
||||
protected static final String INSTALL_PLUGIN_VERSION = "3.0.0-M1";
|
||||
protected static final String INSTALL_PLUGIN_VERSION = "3.1.0";
|
||||
|
||||
protected static final String DEPLOY_PLUGIN_VERSION = "3.0.0-M2";
|
||||
protected static final String DEPLOY_PLUGIN_VERSION = "3.0.0";
|
||||
|
||||
// packaging
|
||||
|
||||
protected static final String JAR_PLUGIN_VERSION = "3.2.0";
|
||||
protected static final String JAR_PLUGIN_VERSION = "3.3.0";
|
||||
|
||||
protected static final String EAR_PLUGIN_VERSION = "3.1.2";
|
||||
protected static final String EAR_PLUGIN_VERSION = "3.3.0";
|
||||
|
||||
protected static final String EJB_PLUGIN_VERSION = "3.1.0";
|
||||
protected static final String EJB_PLUGIN_VERSION = "3.2.1";
|
||||
|
||||
protected static final String PLUGIN_PLUGIN_VERSION = "3.6.0";
|
||||
protected static final String PLUGIN_PLUGIN_VERSION = "3.7.1";
|
||||
|
||||
protected static final String RAR_PLUGIN_VERSION = "2.4"; // TODO: Update!!!
|
||||
protected static final String RAR_PLUGIN_VERSION = "3.0.0";
|
||||
|
||||
protected static final String WAR_PLUGIN_VERSION = "3.3.1";
|
||||
protected static final String WAR_PLUGIN_VERSION = "3.3.2";
|
||||
|
||||
private final LifecycleMapping lifecycleMapping;
|
||||
|
||||
|
|
Loading…
Reference in New Issue