mirror of
https://github.com/Febbweiss/springboot-react-webpack.git
synced 2026-03-04 22:25:34 +00:00
180 lines
5.0 KiB
XML
180 lines
5.0 KiB
XML
<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>com.opengroupe.cloud.saas</groupId>
|
|
<artifactId>catalog-ui</artifactId>
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
<name>UI service project</name>
|
|
<description>Default tools to build UI BFF</description>
|
|
<packaging>${packaging.type}</packaging>
|
|
<url>http://www.open-groupe.com</url>
|
|
|
|
<scm>
|
|
<developerConnection>scm:git:TOFILL</developerConnection>
|
|
</scm>
|
|
|
|
<parent>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
<version>1.3.3.RELEASE</version>
|
|
</parent>
|
|
|
|
<properties>
|
|
<java.version>1.8</java.version>
|
|
<maven.deploy.skip>true</maven.deploy.skip>
|
|
<project.scm.id>jazzhub</project.scm.id>
|
|
<docker.image.prefix>opensaas</docker.image.prefix>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<!-- Spring Boot Core -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
<!-- View templating -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
|
</dependency>
|
|
<!-- Monitoring -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
</dependency>
|
|
<!-- Hot swapping for dev purposes -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-devtools</artifactId>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<finalName>${project.artifactId}</finalName>
|
|
<resources>
|
|
<resource>
|
|
<directory>${project.basedir}/src/main/resources</directory>
|
|
</resource>
|
|
</resources>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.github.eirslett</groupId>
|
|
<artifactId>frontend-maven-plugin</artifactId>
|
|
<version>0.0.29</version>
|
|
<configuration>
|
|
<workingDirectory>${project.build.directory}</workingDirectory>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>install node and npm</id>
|
|
<goals>
|
|
<goal>install-node-and-npm</goal>
|
|
</goals>
|
|
<configuration>
|
|
<nodeVersion>v5.6.0</nodeVersion>
|
|
<npmVersion>3.7.1</npmVersion>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>npm install</id>
|
|
<goals>
|
|
<goal>npm</goal>
|
|
</goals>
|
|
<configuration>
|
|
<arguments>install</arguments>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<goals>
|
|
<goal>npm</goal>
|
|
</goals>
|
|
<phase>generate-resources</phase>
|
|
<configuration>
|
|
<arguments>run-script dev-build</arguments>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
</plugin>
|
|
<!-- Release -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-release-plugin</artifactId>
|
|
<version>2.5.3</version>
|
|
</plugin>
|
|
<!-- Deployment -->
|
|
<plugin>
|
|
<groupId>org.cloudfoundry</groupId>
|
|
<artifactId>cf-maven-plugin</artifactId>
|
|
<version>1.1.3</version>
|
|
<!-- <configuration>
|
|
<server>bluemix</server>
|
|
<target>https://api.eu-gb.bluemix.net </target>
|
|
<org>open-groupe.com</org>
|
|
<space>dev</space>
|
|
<appname>TOFILL</appname>
|
|
<url>TOFILL</url>
|
|
<buildpack>https://github.com/cloudfoundry/java-buildpack.git</buildpack>
|
|
<memory>512</memory>
|
|
<diskQuota>1024</diskQuota>
|
|
<instances>1</instances>
|
|
</configuration> -->
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>webapp</id>
|
|
<activation>
|
|
<activeByDefault>true</activeByDefault>
|
|
</activation>
|
|
<properties>
|
|
<packaging.type>war</packaging.type>
|
|
</properties>
|
|
</profile>
|
|
<profile>
|
|
<id>docker</id>
|
|
<properties>
|
|
<packaging.type>jar</packaging.type>
|
|
</properties>
|
|
<build>
|
|
<finalName>app</finalName>
|
|
<plugins>
|
|
<!-- Docker -->
|
|
<plugin>
|
|
<groupId>com.spotify</groupId>
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
<version>0.2.3</version>
|
|
<configuration>
|
|
<goal>package</goal>
|
|
<imageName>${docker.image.prefix}/${project.artifactId}</imageName>
|
|
<dockerDirectory>src/main/docker</dockerDirectory>
|
|
<resources>
|
|
<resource>
|
|
<targetPath>/</targetPath>
|
|
<directory>${project.build.directory}</directory>
|
|
<include>${project.build.finalName}.jar</include>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>build-image</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>build</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
</project> |