1<?xml version="1.0" encoding="UTF-8"?> 2 3<project xmlns="http://maven.apache.org/POM/4.0.0" 4 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 5 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 6 <modelVersion>4.0.0</modelVersion> 7 8 <artifactId>cldr-keyboard-charts</artifactId> 9 <packaging>pom</packaging> 10 <name>CLDR Keyboard Charts</name> 11 12 <url>https://unicode.org/cldr</url> 13 14 <scm> 15 <connection>scm:git:https://github.com/unicode-org/cldr.git</connection> 16 </scm> 17 18 19 <parent> 20 <groupId>org.unicode.cldr</groupId> 21 <artifactId>cldr-all</artifactId> 22 <version>45.0</version> 23 <relativePath>../../../tools/pom.xml</relativePath> 24 </parent> 25 26 <build> 27 <plugins> 28 <plugin> 29 <!-- to get the node version--> 30 <artifactId>maven-antrun-plugin</artifactId> 31 <executions> 32 <execution> 33 <phase>initialize</phase> 34 <configuration> 35 <target> 36 <concat append="no" destfile="${project.basedir}/target/node-version.properties">node.version=</concat> 37 <concat append="yes" destfile="${project.basedir}/target/node-version.properties"> 38 <fileset dir="${project.basedir}/../../.."> 39 <include name=".node-version" /> 40 </fileset> 41 </concat> 42 </target> 43 </configuration> 44 <goals> 45 <goal>run</goal> 46 </goals> 47 </execution> 48 </executions> 49 </plugin> 50 <plugin> 51 <groupId>org.codehaus.mojo</groupId> 52 <artifactId>properties-maven-plugin</artifactId> 53 <executions> 54 <execution> 55 <phase>initialize</phase> 56 <goals> 57 <goal>read-project-properties</goal> 58 </goals> 59 <configuration> 60 <files> 61 <file>${project.basedir}/target/node-version.properties</file> 62 </files> 63 </configuration> 64 </execution> 65 </executions> 66 </plugin> 67 <plugin> 68 <groupId>com.github.eirslett</groupId> 69 <artifactId>frontend-maven-plugin</artifactId> 70 <executions> 71 <execution> 72 <id>install node and npm</id> 73 <goals> 74 <goal>install-node-and-npm</goal> 75 </goals> 76 <phase>integration-test</phase> 77 </execution> 78 <execution> 79 <id>npm install</id> 80 <goals> 81 <goal>npm</goal> 82 </goals> 83 <phase>integration-test</phase> 84 </execution> 85 <execution> 86 <id>npm run build</id> 87 <goals> 88 <goal>npm</goal> 89 </goals> 90 <configuration> 91 <arguments>run build</arguments> 92 </configuration> 93 <phase>integration-test</phase> 94 </execution> 95 </executions> 96 <configuration> 97 <nodeVersion>${node.version}</nodeVersion> 98 <!-- run in project sourcedir --> 99 <workingDirectory>${project.basedir}</workingDirectory> 100 </configuration> 101 </plugin> 102 </plugins> 103 </build> 104 105 106 <profiles> 107 <profile> 108 <id>build-keyboard-charts</id> 109 </profile> 110 </profiles> 111 112</project> 113