1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.lifecycle.providers;
20
21 import javax.inject.Inject;
22 import javax.inject.Named;
23 import javax.inject.Singleton;
24
25
26
27
28 @Named(SiteLifecycleProvider.LIFECYCLE_ID)
29 @Singleton
30 public final class SiteLifecycleProvider extends AbstractLifecycleProvider {
31 static final String LIFECYCLE_ID = "site";
32
33
34 private static final String[] PHASES = {"pre-site", "site", "post-site", "site-deploy"};
35
36 private static final String MAVEN_SITE_PLUGIN_VERSION = "3.12.1";
37
38 private static final String[] BINDINGS = {
39 "site", "org.apache.maven.plugins:maven-site-plugin:" + MAVEN_SITE_PLUGIN_VERSION + ":site",
40 "site-deploy", "org.apache.maven.plugins:maven-site-plugin:" + MAVEN_SITE_PLUGIN_VERSION + ":deploy"
41 };
42
43
44 @Inject
45 public SiteLifecycleProvider() {
46 super(LIFECYCLE_ID, PHASES, BINDINGS);
47 }
48 }