diff --git a/home/src/main/resources/config/example.applicationSetup.n3 b/home/src/main/resources/config/default.applicationSetup.n3 similarity index 100% rename from home/src/main/resources/config/example.applicationSetup.n3 rename to home/src/main/resources/config/default.applicationSetup.n3 diff --git a/home/src/main/resources/config/example.runtime.properties b/home/src/main/resources/config/default.runtime.properties similarity index 93% rename from home/src/main/resources/config/example.runtime.properties rename to home/src/main/resources/config/default.runtime.properties index b0fb959e..f55ffa9f 100644 --- a/home/src/main/resources/config/example.runtime.properties +++ b/home/src/main/resources/config/default.runtime.properties @@ -19,27 +19,6 @@ # BASIC PROPERTIES # ----------------------------------------------------------------------------- - # - # This namespace will be used when generating URIs for objects created in the - # editor. In order to serve linked data, the default namespace must be composed - # as follows (optional elements in parentheses): - # - # scheme + server_name (+ port) (+ servlet_context) + "/individual/" - # - # For example, Cornell's default namespace is: - # - # http://vivo.cornell.edu/individual/ - # -Vitro.defaultNamespace = http://vivo.mydomain.edu/individual/ - - # - # The email address of the root user for the VIVO application. The password - # for this user is initially set to "rootPassword", but you will be asked to - # change the password the first time you log in. - # -rootUser.emailAddress = vivo_root@mydomain.edu - - # # Argon2 password hashing parameters for time, memory and parallelism required to # compute a hash. @@ -79,13 +58,12 @@ email.replyTo = vivoAdmin@mydomain.edu # # URL of Solr context used in local VIVO search. This will usually consist of: # scheme + server_name + port + vivo_webapp_name + "solr" - # In the standard installation, the Solr context will be on the same server as VIVO, - # and in the same Tomcat instance. The path will be the VIVO webapp.name (specified - # in build.properties) + "solr" + # In the standard installation, the Solr context will be on the same server as VIVO + # as a standalone service. # Example: - # vitro.local.solr.url = http://localhost:8080/vivosolr + # vitro.local.solr.url = http://localhost:8983/solr/vivocore # -vitro.local.solr.url = http://localhost:8080/vivosolr +vitro.local.solr.url = http://localhost:8983/solr/vivocore # ----------------------------------------------------------------------------- diff --git a/installer/example-settings.xml b/installer/example-settings.xml deleted file mode 100644 index 0007c79c..00000000 --- a/installer/example-settings.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - defaults - - vivo - - /usr/local/vivo/home - /usr/local/tomcat - - wilma - - - - - - defaults - - diff --git a/installer/home/pom.xml b/installer/home/pom.xml index b0a9deee..19ffe5e5 100644 --- a/installer/home/pom.xml +++ b/installer/home/pom.xml @@ -23,80 +23,24 @@ wilma - - - install - - vivo-dir - - - - - maven-assembly-plugin - - - src/main/assembly/home.xml - - false - - - - package - - single - - - - - - maven-antrun-plugin - - - remove-webapp - verify - - run - - - - - - - - - - - maven-resources-plugin - - - install - install - - copy-resources - - - ${vivo-dir} - - - ${project.build.directory}/${project.build.finalName} - - - - - - - - - - - - maven-install-plugin + maven-assembly-plugin - true + + src/main/assembly/home.xml + + false + + + package + + single + + + diff --git a/installer/home/src/main/assembly/home.xml b/installer/home/src/main/assembly/home.xml index 6de97e21..34f447c0 100644 --- a/installer/home/src/main/assembly/home.xml +++ b/installer/home/src/main/assembly/home.xml @@ -4,6 +4,7 @@ home dir + tar false diff --git a/installer/pom.xml b/installer/pom.xml index ceb494bd..26535206 100644 --- a/installer/pom.xml +++ b/installer/pom.xml @@ -13,6 +13,7 @@ VIVO Installer + vivo ${project.version} true UTF-8 @@ -28,12 +29,6 @@ UTF-8 - - maven-install-plugin - - true - - org.apache.maven.plugins maven-gpg-plugin @@ -157,12 +152,6 @@ - - maven-dependency-plugin - - true - - maven-resources-plugin 2.6 @@ -186,45 +175,6 @@ - - maven-war-plugin - - - default-war - - - - - - - - - install - - vivo-dir - - - - - maven-enforcer-plugin - - - enforce-properties - validate - - enforce - - - - - app-name - You must provide an application name (app-name) - - - - - - diff --git a/installer/webapp/pom.xml b/installer/webapp/pom.xml index ca682a1d..49ea060b 100644 --- a/installer/webapp/pom.xml +++ b/installer/webapp/pom.xml @@ -19,116 +19,9 @@ VIVO Install Web App - - - package - - app-name - - - ${app-name} - - - org.apache.maven.plugins - maven-war-plugin - - - - true - - - false - - - org.vivoweb - vivo-webapp - war - - - - - - - src/main/webResources - true - - - - - - - - - install - - tomcat-dir - - - - - maven-antrun-plugin - - - remove-webapp - verify - - run - - - - - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - install - install - - unpack - - - - - ${project.groupId} - ${project.artifactId} - ${project.version} - war - true - ${tomcat-dir}/webapps/${project.build.finalName} - - - - - - - - - - - + ${app-name} - - maven-install-plugin - - true - - maven-clean-plugin @@ -139,6 +32,75 @@ + + org.apache.maven.plugins + maven-dependency-plugin + + + false + + + + include-home + process-resources + + copy + + + + + org.vivoweb + vivo-installer-home + ${project.version} + tar + vivo-home.tar + ${project.build.directory}/home-files + + + + + + + + org.apache.maven.plugins + maven-war-plugin + + + + true + + + false + + + org.vivoweb + vivo-webapp + war + + + + + + + src/main/webResources + true + + + ${project.build.directory}/home-files/ + WEB-INF/resources/home-files/ + + + + diff --git a/installer/webapp/src/main/webResources/META-INF/context.xml b/installer/webapp/src/main/webResources/META-INF/context.xml index f4af100a..ea944913 100644 --- a/installer/webapp/src/main/webResources/META-INF/context.xml +++ b/installer/webapp/src/main/webResources/META-INF/context.xml @@ -1,9 +1,52 @@ + + + + + + + + + + + diff --git a/installer/webapp/src/main/webResources/WEB-INF/classes/log4j.properties b/installer/webapp/src/main/webResources/WEB-INF/classes/log4j.properties index 7bd470d5..17c0c8ff 100644 --- a/installer/webapp/src/main/webResources/WEB-INF/classes/log4j.properties +++ b/installer/webapp/src/main/webResources/WEB-INF/classes/log4j.properties @@ -24,7 +24,7 @@ # debug.log4j.properties exists will be used instead, if it exists, but is not stored in Subversion. log4j.appender.AllAppender=org.apache.log4j.RollingFileAppender -log4j.appender.AllAppender.File= ${catalina.base}/logs/${app-name}.all.log +log4j.appender.AllAppender.File= ${catalina.base}/logs/vivo.all.log log4j.appender.AllAppender.MaxFileSize=10MB log4j.appender.AllAppender.MaxBackupIndex=10 log4j.appender.AllAppender.layout=org.apache.log4j.PatternLayout diff --git a/pom.xml b/pom.xml index 63dc7825..050bf25e 100644 --- a/pom.xml +++ b/pom.xml @@ -56,6 +56,7 @@ + vivo ${project.version} ${basedir} yyyy-MM-dd HH:mm:ss