-
Homada.Boumedane authored
change scm tag
Homada.Boumedane authoredchange scm tag
pom.xml 3.55 KiB
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
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>ch.dlcm</groupId>
<artifactId>dlcm-portal</artifactId>
<packaging>pom</packaging>
<version>1.0.0-SNAPSHOT</version>
<properties>
<!-- Base web context used for the Angular application -->
<web.context.root>undefined</web.context.root>
<!-- Specify environment used to build the Angular application -->
<environment>production</environment>
<maven-release-plugin.version>2.5.3</maven-release-plugin.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<scm>
<connection>scm:git:git@gitlab.unige.ch:dlcm/ui/dlcm-portal.git</connection>
<tag>master</tag>
</scm>
<distributionManagement>
<snapshotRepository>
<id>nexus_deploy</id>
<name>Nexus snapshot repo</name>
<url>https://packages.dlcm.ch/repository/angular-snapshots/</url>
</snapshotRepository>
<repository>
<id>nexus_release</id>
<name>Nexus release repo</name>
<url>https://packages.dlcm.ch/repository/angular-releases/</url>
</repository>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>${maven-release-plugin.version}</version>
<configuration>
<checkModificationExcludes>
<checkModificationExclude>package-lock.json</checkModificationExclude>
</checkModificationExcludes>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.4.0</version>
<executions>
<execution>
<id>npm install</id>
<goals>
<goal>exec</goal>
</goals>
<phase>initialize</phase>
<configuration>
<executable>npm</executable>
<arguments>
<argument>install</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>npm build</id>
<goals>
<goal>exec</goal>
</goals>
<phase>package</phase>
<configuration>
<executable>npm</executable>
<arguments>
<argument>run</argument>
<argument>build</argument>
<argument>--</argument>
<argument>--configuration=${environment}</argument>
<argument>--base-href</argument>
<argument>/${web.context.root}/</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>zip-build</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptor>assembly/zip-build.xml</descriptor>
<finalName>${project.artifactId}-${project.version}</finalName>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>