diff options
Diffstat (limited to 'vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/DeployMojo.java')
-rw-r--r-- | vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/DeployMojo.java | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/DeployMojo.java b/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/DeployMojo.java index 69d4d6001d0..3ca628cdc84 100644 --- a/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/DeployMojo.java +++ b/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/DeployMojo.java @@ -38,19 +38,10 @@ public class DeployMojo extends AbstractVespaDeploymentMojo { @Override protected void doExecute() throws MojoFailureException, MojoExecutionException { - try { - controller.compileVersion(id); - } - catch (IllegalArgumentException e) { - throw new MojoFailureException( "The application " + id.tenant() + "." + id.application() + " does not exist, " - + "or you do not have the required privileges to access it; " - + "please visit the Vespa cloud web UI and make sure the application exists and you have access!"); - } - loggable = DeploymentLog.Level.valueOf(vespaLogLevel); Deployment deployment = Deployment.ofPackage(Paths.get(firstNonBlank(applicationZip, projectPathOf("target", "application.zip")))); - if (!isNullOrBlank(vespaVersion)) deployment = deployment.atVersion(vespaVersion); + if ( ! isNullOrBlank(vespaVersion)) deployment = deployment.atVersion(vespaVersion); ZoneId zone = zoneOf(environment, region); DeploymentResult result = controller.deploy(deployment, id, zone); |