-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
133 lines (115 loc) · 4.14 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?xml version="1.0"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>longhorn-js-client</artifactId>
<groupId>net.sf.okapi.longhorn</groupId>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Okapi Longhorn JavaScript Client</name>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:git:ssh://[email protected]/okapiframework/longhorn-js-client.git</connection>
<developerConnection>scm:git:ssh://[email protected]/okapiframework/longhorn-js-client.git</developerConnection>
<url>https://bitbucket.org/okapiframework/longhorn-js-client.git</url>
<tag>HEAD</tag>
</scm>
<properties>
<maven-replacer-plugin.version>1.5.3</maven-replacer-plugin.version>
<frontend-maven-plugin.version>1.6</frontend-maven-plugin.version>
<frontend-maven-plugin.nodeVersion>v8.5.0</frontend-maven-plugin.nodeVersion>
<frontend-maven-plugin.npmVersion>5.5.1</frontend-maven-plugin.npmVersion>
<public-url>/okapi-longhorn</public-url>
<react-app-longhorn-url>/okapi-longhorn</react-app-longhorn-url>
</properties>
<build>
<resources>
<resource>
<directory>build</directory>
<targetPath>${project.artifactId}</targetPath>
</resource>
</resources>
<plugins>
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>${maven-replacer-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>replace</goal>
</goals>
<phase>generate-resources</phase>
</execution>
</executions>
<configuration>
<basedir>${project.basedir}</basedir>
<file>package.json</file>
<replacements>
<replacement>
<token>"version": "(.*)",</token>
<value>"version": "${project.version}",</value>
</replacement>
</replacements>
</configuration>
</plugin>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>${frontend-maven-plugin.version}</version>
<configuration>
<nodeVersion>${frontend-maven-plugin.nodeVersion}</nodeVersion>
<npmVersion>${frontend-maven-plugin.npmVersion}</npmVersion>
<workingDirectory>src</workingDirectory>
<installDirectory>target</installDirectory>
<environmentVariables>
<PUBLIC_URL>${public-url}</PUBLIC_URL>
<REACT_APP_LONGHORN_URL>${react-app-longhorn-url}</REACT_APP_LONGHORN_URL>
</environmentVariables>
</configuration>
<executions>
<execution>
<id>install-node-and-npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<phase>generate-resources</phase>
</execution>
<execution>
<id>npm-run-build</id>
<goals>
<goal>npm</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<arguments>run build</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptor>utils/maven-assembly.xml</descriptor>
<finalName>${project.artifactId}-${pom.version}</finalName>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>