Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

StepAction

Editing ./core/pom.xml

Add lines 6 to 11 in the <depedencies> section of the POM file


Code Block
languagexml
themeConfluence
linenumberstrue
...
    <artifactId>vitro-languages-webapp-es</artifactId>
    <version>${project.version}</version>
    <type>war</type>
</dependency>
<dependency>
    <groupId>org.vivoweb</groupId>
    <artifactId>vitro-languages-webapp-fr_CA</artifactId>
    <version>${project.version}</version>
    <type>war</type>
</dependency>
<dependency>
    <groupId>org...


Create the following pom file:

./fr_CA/web_app/src/pom.xml


Pay particular attention to the version number which must correspond to the version currently under development.


Code Block
languagexml
linenumberstrue
collapsetrue
<project 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">


    <modelVersion>4.0.0</modelVersion>


    <groupId>org.vivoweb</groupId>


    <artifactId>vitro-languages-webapp-fr_CA</artifactId>


    <version>1.11.2-SNAPSHOT</version>


    <packaging>war</packaging>


    <parent>


        <groupId>org.vivoweb</groupId>


        <artifactId>vitro-languages-fr_CA</artifactId>


        <version>1.11.2-SNAPSHOT</version>


        <relativePath>..</relativePath>


    </parent>


    <name>Vitro Languages for Web App fr_CA</name>


    <build>


        <plugins>


            <plugin>


                <groupId>org.apache.maven.plugins</groupId>


                <artifactId>maven-war-plugin</artifactId>


                <configuration>


                    <failOnMissingWebXml>false</failOnMissingWebXml>


                    <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>


                    <archiveClasses>false</archiveClasses>


                    <archive>


                        <manifest>


                            <addClasspath>true</addClasspath>


                        </manifest>


                    </archive>


                </configuration>


            </plugin>


            <plugin>


                <artifactId>maven-clean-plugin</artifactId>


                <configuration>


                    <filesets>


                        <fileset>


                            <directory>overlays</directory>


                        </fileset>


                    </filesets>


                </configuration>


            </plugin>


        </plugins>


    </build>


</project>


Editing ./pom.xml

Add the following line which is in bold

...

</distributionManagement>
<modules>
    <module>core</module>
    <module>en_CA</module>
    <module>en_US</module>
    <module>es</module>
    <module>fr_CA</module>
    <module>pt_BR</module>
    <module>de_DE</module>
</modules>
</project>

...

StepAction

Editing ./core/home/pom.xml

Add the dependency (in bold) in the POM file

. . .
<dependency>
    <groupId>org.vivoweb</groupId>
    <artifactId>vivo-languages-home-es</artifactId>
    <version>${project.version}</version>
    <type>tar.gz</type>
</dependency>
<dependency>
    <groupId>org.vivoweb</groupId>
    <artifactId>vivo-languages-home-fr_CA</artifactId>
    <version>${project.version}</version>
    <type>tar.gz</type>
</dependency>
<dependency>
    <groupId>org.vivoweb</groupId>
    <artifactId>vivo-languages-home-pt_BR</artifactId>

Editing ./core/webapp/pom.xml

Add the dependency (in bold) in the POM file

. . .
<dependency>
    <groupId>org.vivoweb</groupId>
    <artifactId>vivo-languages-webapp-es</artifactId>
    <version>${project.version}</version>
    <type>war</type>
</dependency>
<dependency>
    <groupId>org.vivoweb</groupId>
    <artifactId>vivo-languages-webapp-fr_CA</artifactId>
    <version>${project.version}</version>
    <type>war</type>
</dependency>
<dependency>
    <groupId>org.vivoweb</groupId>
    <artifactId>vivo-languages-webapp-pt_BR</artifactId>

Adding ./fr_CA/home/pom.xml

Pay particular attention to the version number which must correspond to the version currently under development.


Code Block
languagexml
linenumberstrue
collapsetrue
<project 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">


    <modelVersion>4.0.0</modelVersion>


    <groupId>org.vivoweb</groupId>


    <artifactId>vivo-languages-home-fr_CA</artifactId>


    <version>1.11.2-SNAPSHOT</version>


    <packaging>pom</packaging>


    <parent>


        <groupId>org.vivoweb</groupId>


        <artifactId>vivo-languages-fr_CA</artifactId>


        <version>1.11.2-SNAPSHOT</version>


        <relativePath>..</relativePath>


    </parent>


    <name>VIVO Languages for Home fr_CA</name>


    <build>


        <plugins>


            <plugin>


                <artifactId>maven-assembly-plugin</artifactId>


                <configuration>


                    <tarLongFileMode>posix</tarLongFileMode>


                    <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>


                <groupId>org.codehaus.mojo</groupId>


                <artifactId>build-helper-maven-plugin</artifactId>


                <extensions>true</extensions>


                <executions>


                    <execution>


                        <id>attach-artifacts</id>


                        <phase>package</phase>


                        <goals>


                            <goal>attach-artifact</goal>


                        </goals>


                        <configuration>


                            <artifacts>


                                <artifact>


                                    <file>target/${project.artifactId}-${project.version}.tar.gz</file>


                                    <type>tar.gz</type>


                                    <!-- classifier>optional</classifier -->


                                </artifact>


                            </artifacts>


                        </configuration>


                    </execution>


                </executions>


            </plugin>


        </plugins>


    </build>


</project>


Adding ./fr_CA/webapp/pom.xml

Pay particular attention to the version number which must correspond to the version currently under development. (Line 7 and 13)


Code Block
languagexml
linenumberstrue
collapsetrue
<project 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">

    <modelVersion>4.0.0</modelVersion>

    <groupId>org.vivoweb</groupId>
    <artifactId>vivo-languages-webapp-fr_CA</artifactId>
    <version>1.11.2-SNAPSHOT</version>
    <packaging>war</packaging>

    <parent>
        <groupId>org.vivoweb</groupId>
        <artifactId>vivo-languages-fr_CA</artifactId>
        <version>1.11.2-SNAPSHOT</version>
        <relativePath>..</relativePath>
    </parent>

    <name>VIVO Languages for Web App fr_CA</name>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
                    <failOnMissingWebXml>false</failOnMissingWebXml>
                    <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
                    <archiveClasses>false</archiveClasses>
                    <archive>
                        <manifest>
                            <addClasspath>true</addClasspath>
                        </manifest>
                    </archive>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-clean-plugin</artifactId>
                <configuration>
                    <filesets>
                        <fileset>
                            <directory>overlays</directory>
                        </fileset>
                    </filesets>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>


Editing ./pom.xml

Add the following line which is in boldlines


Code Block
languagexml
linenumberstrue
collapsetrue
<project 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">

    <modelVersion>4.0.0</modelVersion>

    <groupId>org.vivoweb</groupId>
    <artifactId>vivo-languages-fr_CA</artifactId>
    <version>1.11.2-SNAPSHOT</version>
    <packaging>pom</packaging>

    <name>VIVO Languages fr_CA</name>
    <description>VIVO Languages</description>
    <url>http://vivoweb.org/</url>
    <parent>
        <groupId>org.vivoweb</groupId>
        <artifactId>vivo-languages</artifactId>
        <version>1.11.2-SNAPSHOT</version>
        <relativePath>..</relativePath>
    </parent>
    <licenses>
        <license>
            <name>BSD 3-Clause License</name>
            <url>https://raw.github.com/vivo-project/VIVO/develop/LICENSE</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
    <scm>
        <connection>scm:git:git@github.com:vivo-project/VIVO-languages.git</connection>
<developerConnection>scm:git        <developerConnection>scm:git:git@github.com:vivo-project/VIVO-languages.git</developerConnection>
        <url>git@github.com:vivo-project/VIVO-languages.git</url>
        <tag>HEAD</tag>
    </scm>

    <properties>
        <vitro-version>${project.version}</vitro-version>
        <vivo-dir>${basedir}</vivo-dir>
        <maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format>
        <build.timestamp>${maven.build.timestamp}</build.timestamp>
        <maven-site-plugin.skip>false</maven-site-plugin.skip>
        <stagingBase>/</stagingBase>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <modules>
        <module>home</module>
        <module>webapp</module>
    </modules>

<profiles>
<profile>
    <profiles>
        <profile>
            <id>release-sign-artifacts</id>
            <activation>
                <property>
                    <name>performRelease</name>
                    <value>true</value>
                </property>
</activation>
<build>
<plugins>
<plugin>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach                        <executions>
                            <execution>
                                <id>attach-sources</id>
<goals>
<goal>jar                                <goals>
                                    <goal>jar-no-fork</goal>
                                </goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.sonatype.plugins</groupId>
<artifactId>nexus                        <artifactId>nexus-staging-maven-plugin</artifactId>
                        <extensions>true</extensions>
                        <configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
                            <serverId>ossrh</serverId>
                            <nexusUrl>https://oss.sonatype.org/</nexusUrl>
                            <autoReleaseAfterClose>true</autoReleaseAfterClose>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>buildnumber-maven-plugin</artifactId>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
<configuration>
<doCheck>false</doCheck>
<doUpdate>false</doUpdate>
<shortRevisionLength>7</shortRevisionLength>
<revisionOnScmFailure>Detached</revisionOnScmFailure>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile> 
</profiles>

<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.1.1</version>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<plugin>
                        <executions>
                            <execution>
                                <phase>validate</phase>
                                <goals>
                                    <goal>create</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <doCheck>false</doCheck>
                            <doUpdate>false</doUpdate>
                            <shortRevisionLength>7</shortRevisionLength>
                            <revisionOnScmFailure>Detached</revisionOnScmFailure>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile> 
    </profiles>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <version>3.1.1</version>
                </plugin>
                <plugin>
                    <artifactId>maven-clean-plugin</artifactId>
                    <version>3.1.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-jar-plugin</artifactId>
<version>3.1.2</version>
</plugin>
<plugin>
                    <version>3.1.2</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-gpg-plugin</artifactId>
                    <version>1.6</version>
</plugin>
<plugin>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>3.1.0</version>
</plugin>
<plugin>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-war-plugin</artifactId>
                    <version>3.2.3</version>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
/groupId>
                    <artifactId>build-helper-maven-plugin</artifactId>
                    <version>3.0.0</version>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
                    <artifactId>buildnumber-maven-plugin</artifactId>
                    <version>1.4</version>
                </plugin>
                <plugin>
                    <groupId>org.sonatype.plugins</groupId>
                    <artifactId>nexus-staging-maven-plugin</artifactId>
                    <version>1.6.8</version>
/version>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

    <distributionManagement>
        <site>
            <id>vivo-project</id>
            <url>https://vivo-project.github.io/</url>
        </site>
        <snapshotRepository>
            <id>ossrh</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
    </distributionManagement>
</project>



...