private static final String DEFAULT_VIRTUAL_M1_M2 = "default_virtual_m1_m2";
private static final String DEFAULT_GROUP = "default_group";
public TemplateSet getTemplates() {
TemplateSet templates = new TemplateSet(null);
try {
templates.add(new Maven2HostedRepositoryTemplate(this, DEFAULT_HOSTED_RELEASE,
"Maven2 (hosted, release)", RepositoryPolicy.RELEASE));
templates.add(new Maven2HostedRepositoryTemplate(this, DEFAULT_HOSTED_SNAPSHOT,
"Maven2 (hosted, snapshot)",
RepositoryPolicy.SNAPSHOT));
templates.add(new Maven2ProxyRepositoryTemplate(this, DEFAULT_PROXY_RELEASE,
"Maven2 (proxy, release)", RepositoryPolicy.RELEASE));
templates.add(new Maven2ProxyRepositoryTemplate(this, DEFAULT_PROXY_SNAPSHOT,
"Maven2 (proxy, snapshot)", RepositoryPolicy.SNAPSHOT));
templates.add(new Maven1Maven2ShadowRepositoryTemplate(this, DEFAULT_VIRTUAL_M1_M2,
"Maven1 to Maven2 (virtual)"));
templates.add(new Maven2Maven1ShadowRepositoryTemplate(this, DEFAULT_VIRTUAL_M2_M1,
"Maven2 to Maven1 (virtual)"));
templates.add(new Maven1HostedRepositoryTemplate(this, "maven1_hosted_release",
"Maven1 (hosted, release)", RepositoryPolicy.RELEASE));
templates.add(new Maven1HostedRepositoryTemplate(this, "maven1_hosted_snapshot",
"Maven1 (hosted, snapshot)",
RepositoryPolicy.SNAPSHOT));
templates.add(new Maven1ProxyRepositoryTemplate(this, "maven1_proxy_release",
"Maven1 (proxy, release)", RepositoryPolicy.RELEASE));
templates.add(new Maven1ProxyRepositoryTemplate(this, "maven1_proxy_snapshot",
"Maven1 (proxy, snapshot)", RepositoryPolicy.SNAPSHOT));
templates.add(new Maven1GroupRepositoryTemplate(this, "maven1_group", "Maven1 (group)"));
templates.add(new Maven2GroupRepositoryTemplate(this, DEFAULT_GROUP, "Maven2 (group)"));
}
catch (Exception e) {
// will not happen
}