/
NikolayIvkin
/
tutorials1
Обзор
Документация
Войти
/
NikolayIvkin
/
tutorials1
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
spring-boot-modules/spring-boot-react/pom.xml
250 строк
10 KB
Bipin kumar
JAVA-30986: Changes made for Upgrade spring-boot-react (#16180)
21 мар 2024, 00:57
Не верифицирован
21 мар 2024, 00:57
e8f4907
Код
Авторство
О чём код?
<?xml version="1.0" encoding="UTF-8"?> <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> <artifactId>spring-boot-react</artifactId> <parent> <artifactId>spring-boot-modules</artifactId> <groupId>com.baeldung.spring-boot-modules</groupId> <version>1.0.0-SNAPSHOT</version> </parent> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <version>${spring-boot.version}</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> <version>${spring-boot.version}</version> </dependency> <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <scope>runtime</scope> </dependency> <dependency> <groupId>com.github.javafaker</groupId> <artifactId>javafaker</artifactId> <version>${javafaker.version}</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <version>${spring-boot.version}</version> <scope>test</scope> </dependency> </dependencies> <profiles> <profile> <id>default-jdk9-and-above</id> <build> <plugins> <plugin> <groupId>com.github.eirslett</groupId> <artifactId>frontend-maven-plugin</artifactId> <executions> <execution> <id>install node</id> <goals> <goal>install-node-and-yarn</goal> </goals> <configuration> <skip>true</skip> <nodeVersion>${node.version}</nodeVersion> <yarnVersion>${yarn.version}</yarnVersion> </configuration> </execution> <execution> <id>yarn install</id> <goals> <goal>yarn</goal> </goals> <phase>none</phase> <configuration> <skip>true</skip> </configuration> </execution> <execution> <id>yarn test</id> <goals> <goal>yarn</goal> </goals> <phase>none</phase> <configuration> <arguments>test</arguments> <environmentVariables> <CI>true</CI> </environmentVariables> </configuration> </execution> <execution> <id>yarn build</id> <goals> <goal>yarn</goal> </goals> <phase>compile</phase> <configuration> <skip>true</skip> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>integration-jdk9-and-above</id> <build> <plugins> <plugin> <groupId>com.github.eirslett</groupId> <artifactId>frontend-maven-plugin</artifactId> <executions> <execution> <id>install node</id> <goals> <goal>install-node-and-yarn</goal> </goals> <configuration> <skip>true</skip> <nodeVersion>${node.version}</nodeVersion> <yarnVersion>${yarn.version}</yarnVersion> </configuration> </execution> <execution> <id>yarn install</id> <goals> <goal>yarn</goal> </goals> <phase>none</phase> <configuration> <skip>true</skip> </configuration> </execution> <execution> <id>yarn test</id> <goals> <goal>yarn</goal> </goals> <phase>none</phase> <configuration> <arguments>test</arguments> <environmentVariables> <CI>true</CI> </environmentVariables> </configuration> </execution> <execution> <id>yarn build</id> <goals> <goal>yarn</goal> </goals> <phase>compile</phase> <configuration> <skip>true</skip> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> <build> <plugins> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>${maven-resources-plugin.version}</version> <executions> <execution> <id>copy-resources</id> <phase>process-classes</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${basedir}/target/classes/static</outputDirectory> <resources> <resource> <directory>frontend/build</directory> </resource> </resources> </configuration> </execution> </executions> </plugin> <plugin> <groupId>com.github.eirslett</groupId> <artifactId>frontend-maven-plugin</artifactId> <version>${frontend-maven-plugin.version}</version> <configuration> <workingDirectory>frontend</workingDirectory> </configuration> <executions> <execution> <id>install node</id> <goals> <goal>install-node-and-yarn</goal> </goals> <configuration> <nodeVersion>${node.version}</nodeVersion> <yarnVersion>${yarn.version}</yarnVersion> </configuration> </execution> <execution> <id>yarn install</id> <goals> <goal>yarn</goal> </goals> <phase>generate-resources</phase> </execution> <execution> <id>yarn test</id> <goals> <goal>yarn</goal> </goals> <phase>test</phase> <configuration> <arguments>test</arguments> <environmentVariables> <CI>true</CI> </environmentVariables> </configuration> </execution> <execution> <id>yarn build</id> <goals> <goal>yarn</goal> </goals> <phase>compile</phase> <configuration> <arguments>build</arguments> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> <properties> <maven.compiler.source>11</maven.compiler.source> <maven.compiler.target>11</maven.compiler.target> <maven-resources-plugin.version>3.1.0</maven-resources-plugin.version> <frontend-maven-plugin.version>1.6</frontend-maven-plugin.version> <node.version>v14.18.0</node.version> <yarn.version>v1.12.1</yarn.version> <javafaker.version>1.0.2</javafaker.version> </properties> </project>