/maven-amps-plugin/src/main/java/com/atlassian/maven/plugins/amps/pdk/TestInstallMojo.java
https://bitbucket.org/mmeinhold/amps · Java · 30 lines · 27 code · 3 blank · 0 comment · 1 complexity · bdf844063e6b1c5cdce5bb40d785bf8b MD5 · raw file
- package com.atlassian.maven.plugins.amps.pdk;
- import com.atlassian.maven.plugins.amps.PdkParams;
- import com.atlassian.maven.plugins.amps.product.ProductHandler;
- import org.apache.maven.plugin.MojoExecutionException;
- import org.apache.maven.plugin.MojoFailureException;
- import org.apache.maven.plugins.annotations.Mojo;
- @Mojo(name = "test-install")
- public class TestInstallMojo extends AbstractPdkMojo
- {
- public void execute() throws MojoExecutionException, MojoFailureException
- {
- if(shouldBuildTestPlugin())
- {
- ensurePluginKeyExists();
- final ProductHandler product = createProductHandler(getProductId());
- getMavenGoals().installPlugin(new PdkParams.Builder()
- .testPlugin(true)
- .pluginKey(pluginKey)
- .server(server)
- .port(getHttpPort(product))
- .contextPath(getContextPath(product))
- .username(username)
- .password(password)
- .build());
- }
- }
- }