Enable war deployment model (#197)
* Add 'home' files into build war artifact Related to: https://jira.lyrasis.org/browse/VIVO-1443 * Disable copying exploded war to Tomcat dir - hardcode vivo.all.log file name - must now set system property: -Dvivo-dir=/opt/vivo/home/ Related to: https://jira.lyrasis.org/browse/VIVO-1443 * Ensure build does not remove and re-add VIVO_HOME/rdf Related to: https://jira.lyrasis.org/browse/VIVO-1443 * Remove unnecessary profile from installer/pom.xml Related to: https://jira.lyrasis.org/browse/VIVO-1443 * Rename example config files to have 'default' prefix Related to: https://jira.lyrasis.org/browse/VIVO-1443 * Require common properties to be in JNDI Properties include: - vitro/home - vitro/appName - vitro/rootUserAddress - vitro/defaultNamespace Related to: https://jira.lyrasis.org/browse/VIVO-1443 * VIVO-1443: app name (#2) * Non-functional change to comment in example.applicationSetup.n3 Related to: https://jira.lyrasis.org/browse/VIVO-1741 * Update orcidConfirm.ftl (#199) * remove example-settings.xml * simplify war name and afford override during build * default app name to vivo and pass into context.xml Co-authored-by: Andrew Woods <awoods@duraspace.org> Co-authored-by: L.O <53535673+lb-ov@users.noreply.github.com> Co-authored-by: Andrew Woods <awoods@duraspace.org> Co-authored-by: William Welling <wwelling@library.tamu.edu> Co-authored-by: L.O <53535673+lb-ov@users.noreply.github.com>
This commit is contained in:
parent
c54f8a105b
commit
01776ee692
10 changed files with 134 additions and 276 deletions
|
@ -23,80 +23,24 @@
|
|||
<default-theme>wilma</default-theme>
|
||||
</properties>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>install</id>
|
||||
<activation>
|
||||
<property><name>vivo-dir</name></property>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<configuration>
|
||||
<descriptors>
|
||||
<descriptor>src/main/assembly/home.xml</descriptor>
|
||||
</descriptors>
|
||||
<appendAssemblyId>false</appendAssemblyId>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>remove-webapp</id>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<target>
|
||||
<delete dir="${vivo-dir}/rdf" />
|
||||
</target>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>install</id>
|
||||
<phase>install</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${vivo-dir}</outputDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>${project.build.directory}/${project.build.finalName}</directory>
|
||||
</resource>
|
||||
</resources>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-install-plugin</artifactId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<configuration>
|
||||
<skip>true</skip>
|
||||
<descriptors>
|
||||
<descriptor>src/main/assembly/home.xml</descriptor>
|
||||
</descriptors>
|
||||
<appendAssemblyId>false</appendAssemblyId>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<id>home</id>
|
||||
<formats>
|
||||
<format>dir</format>
|
||||
<format>tar</format>
|
||||
</formats>
|
||||
<includeBaseDirectory>false</includeBaseDirectory>
|
||||
<dependencySets>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue