integrate in a single Maven call the compilation and installation of (#242)

Integrate in a single Maven call the compilation and installation of VIVO-Languages and Vitro-Languages in VIVO.
This commit is contained in:
Michel Héon 2021-06-04 10:17:17 -04:00 committed by GitHub
parent 631986a2d5
commit e3027841aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 20 deletions

View file

@ -1,5 +1,6 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <settings xmlns="http://maven.apache.org/SETTINGS/1.1.0"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
<profiles> <profiles>
<profile> <profile>
@ -17,5 +18,10 @@
<activeProfiles> <activeProfiles>
<activeProfile>defaults</activeProfile> <activeProfile>defaults</activeProfile>
<!-- <activeProfile>i18n</activeProfile> -->
<!-- Replace the "defaults" activeProfile with "i18n" to include
the Vitro-languages and VIVO-Languages repos in the Maven compilation and
installation process -->
</activeProfiles> </activeProfiles>
</settings> </settings>

45
pom.xml
View file

@ -1,6 +1,4 @@
<project <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
@ -43,11 +41,9 @@
</developer> </developer>
</developers> </developers>
<!-- <!-- The SCM repository location is used by Continuum to update against
The SCM repository location is used by Continuum to update against when changes have occurred. This spawns a new build cycle and releases snapshots
when changes have occurred. This spawns a new build cycle and releases into the snapshot repository below. -->
snapshots into the snapshot repository below.
-->
<scm> <scm>
<connection>scm:git:git@github.com:vivo-project/VIVO.git</connection> <connection>scm:git:git@github.com:vivo-project/VIVO.git</connection>
<developerConnection>scm:git:git@github.com:vivo-project/VIVO.git</developerConnection> <developerConnection>scm:git:git@github.com:vivo-project/VIVO.git</developerConnection>
@ -73,6 +69,16 @@
<profiles> <profiles>
<profile> <profile>
<id>i18n</id>
<modules>
<module>../Vitro-languages</module>
<module>../VIVO-languages</module>
<module>api</module>
<module>webapp</module>
<module>home</module>
</modules>
</profile>
<profile>
<id>vitro</id> <id>vitro</id>
<activation> <activation>
<file> <file>
@ -335,7 +341,8 @@
</configuration> </configuration>
</plugin> </plugin>
<!-- Used to validate all code style rules in source code using Checkstyle --> <!-- Used to validate all code style rules in source code using
Checkstyle -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId> <artifactId>maven-checkstyle-plugin</artifactId>
@ -343,7 +350,8 @@
<executions> <executions>
<execution> <execution>
<id>verify-style</id> <id>verify-style</id>
<!-- Bind to verify so it runs after package & unit tests, but before install --> <!-- Bind to verify so it runs after package & unit
tests, but before install -->
<phase>verify</phase> <phase>verify</phase>
<goals> <goals>
<goal>check</goal> <goal>check</goal>
@ -352,10 +360,10 @@
</executions> </executions>
<configuration> <configuration>
<configLocation> <configLocation>
duraspace-checkstyle/checkstyle.xml duraspace-checkstyle/checkstyle.xml
</configLocation> </configLocation>
<suppressionsLocation> <suppressionsLocation>
vitro-checkstyle/checkstyle-suppressions.xml vitro-checkstyle/checkstyle-suppressions.xml
</suppressionsLocation> </suppressionsLocation>
<encoding>UTF-8</encoding> <encoding>UTF-8</encoding>
<consoleOutput>true</consoleOutput> <consoleOutput>true</consoleOutput>
@ -475,9 +483,11 @@
<report>test-javadoc</report> <report>test-javadoc</report>
</reports> </reports>
</reportSet> </reportSet>
<reportSet><!-- aggregate reportSet, to define in poms having modules --> <reportSet><!-- aggregate reportSet, to define in poms
having modules -->
<id>aggregate</id> <id>aggregate</id>
<inherited>false</inherited><!-- don't run aggregate in child modules --> <inherited>false</inherited><!-- don't run aggregate
in child modules -->
<reports> <reports>
<report>aggregate</report> <report>aggregate</report>
</reports> </reports>
@ -501,10 +511,9 @@
</plugins> </plugins>
</reporting> </reporting>
<!-- <!-- Add a custom repository, which is actually just a simple GitHub
Add a custom repository, which is actually just a simple GitHub project project in order to distribute some dependencies that aren't part of Maven
in order to distribute some dependencies that aren't part of Maven central central -->
-->
<repositories> <repositories>
<repository> <repository>
<id>vivo-dependencies</id> <id>vivo-dependencies</id>