From bc7bf875e317391b8d8893e9080821848325282a Mon Sep 17 00:00:00 2001 From: Graham Triggs Date: Thu, 26 Nov 2015 15:46:57 +0000 Subject: [PATCH] Add enforcer for app-name setting, better structure of installer poms, ensure web app removal before installing --- installer/pom.xml | 31 +++++++++++++++++++++++++++++++ installer/solr/pom.xml | 35 ++++++++++++++++++++++++++++++++--- installer/webapp/pom.xml | 35 ++++++++++++++++++++++++++++++++--- 3 files changed, 95 insertions(+), 6 deletions(-) diff --git a/installer/pom.xml b/installer/pom.xml index 7e029e8b..62d9ee4b 100644 --- a/installer/pom.xml +++ b/installer/pom.xml @@ -89,5 +89,36 @@ + + install + + vivo-dir + + + + + maven-enforcer-plugin + 1.4.1 + + + enforce-properties + validate + + enforce + + + + + app-name + You must provide an application name (app-name) + + + + + + + + + diff --git a/installer/solr/pom.xml b/installer/solr/pom.xml index 1846d0a6..db3c1978 100644 --- a/installer/solr/pom.xml +++ b/installer/solr/pom.xml @@ -21,11 +21,12 @@ - install + package - vivo-dir + app-name + ${app-name}solr maven-war-plugin @@ -52,6 +53,34 @@ + + + + + pinstall + + tomcat-dir + + + + + maven-antrun-plugin + 1.3 + + + remove-webapp + verify + + run + + + + + + + + + org.apache.maven.plugins maven-dependency-plugin @@ -71,7 +100,7 @@ ${project.version} war true - ${tomcat-dir}/webapps/${app-name}solr + ${tomcat-dir}/webapps/${build.finalName} diff --git a/installer/webapp/pom.xml b/installer/webapp/pom.xml index e3b75a58..fce1452f 100644 --- a/installer/webapp/pom.xml +++ b/installer/webapp/pom.xml @@ -21,11 +21,12 @@ - install + package - vivo-dir + app-name + ${app-name} org.apache.maven.plugins @@ -53,6 +54,34 @@ + + + + + pinstall + + tomcat-dir + + + + + maven-antrun-plugin + 1.3 + + + remove-webapp + verify + + run + + + + + + + + + org.apache.maven.plugins maven-dependency-plugin @@ -72,7 +101,7 @@ ${project.version} war true - ${tomcat-dir}/webapps/${app-name} + ${tomcat-dir}/webapps/${build.finalName}