forked from apache/incubator-kie-kogito-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
200 lines (197 loc) · 6.98 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<parent>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-apps</artifactId>
<version>8.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>kogito-apps-ui-packages</artifactId>
<name>Kogito Apps :: UI Packages</name>
<properties>
<path.to.root>${project.basedir}</path.to.root> <!-- package.json in root dir-->
<path.to.packages>${path.to.root}/packages</path.to.packages>
<sonar.sources>
${path.to.packages}/common/src,
${path.to.packages}/management-console/src,
${path.to.packages}/task-console/src
</sonar.sources>
<sonar.exclusions>**/__mocks__/**,**/mocks/**,**/*.stories.tsx</sonar.exclusions>
<sonar.test.inclusions>**/*test.ts,**/*test.tsx</sonar.test.inclusions>
<sonar.javascript.lcov.reportPaths>
${path.to.packages}/common/coverage/lcov.info,
${path.to.packages}/management-console/coverage/lcov.info,
${path.to.packages}/task-console/coverage/lcov.info
</sonar.javascript.lcov.reportPaths>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>node_modules</directory>
</fileset>
<fileset>
<directory>packages/common/node_modules</directory>
</fileset>
<fileset>
<directory>packages/management-console/node_modules</directory>
</fileset>
<fileset>
<directory>packages/task-console/node_modules</directory>
</fileset>
<fileset>
<directory>packages/trusty/node_modules</directory>
</fileset>
</filesets>
</configuration>
</plugin>
<!-- frontend related plugins-->
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<configuration>
<workingDirectory>${path.to.root}</workingDirectory>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<!--
Installs node and yarn in the webapp's node and node_modules folders.
Run 'mvn package':
* the first time you have checked out the source.
* whenever the dependencies have been changed in package.json (delete the webapp's node_modules folder first!)
If you want to skip installation of the packages, turn the profile off by setting property `-Dskip.ui.deps`.
-->
<id>install-node-yarn</id>
<activation>
<property><name>!skip.ui.deps</name></property>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<executions>
<execution>
<id>install-node-and-npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<configuration>
<nodeVersion>${version.node}</nodeVersion>
<npmVersion>${version.npm}</npmVersion>
</configuration>
</execution>
<execution>
<id>install-node-and-yarn</id>
<goals>
<goal>install-node-and-yarn</goal>
</goals>
<configuration>
<nodeVersion>${version.node}</nodeVersion>
<yarnVersion>${version.yarn}</yarnVersion>
</configuration>
</execution>
<execution>
<id>npm install lock-treatment-tool</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<npmRegistryURL>${env.NPM_REGISTRY_URL}</npmRegistryURL>
<arguments>install lock-treatment-tool --global-style --no-package-lock --no-save</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>install-ui-deps</id>
<activation>
<property><name>!skip.ui.deps</name></property>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<executions>
<execution>
<id>lock-treatment-tool execution</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<npmRegistryURL>${env.NPM_REGISTRY_URL}</npmRegistryURL>
<arguments>run locktt --</arguments>
</configuration>
</execution>
<execution>
<id>yarn install</id>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<npmRegistryURL>${env.NPM_REGISTRY_URL}</npmRegistryURL>
<arguments>install --fetch-retry-mintimeout=100000 --fetch-retries=10</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!--
Builds the UI package. Can be skipped by using property `-Dskip.ui.build`.
-->
<id>build-ui</id>
<activation>
<property><name>!skip.ui.build</name></property>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<executions>
<execution>
<id>yarn build</id>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<npmRegistryURL>${env.NPM_REGISTRY_URL}</npmRegistryURL>
<arguments>run build:prod</arguments>
<environmentVariables>
<KOGITO_APP_VERSION>${project.version}</KOGITO_APP_VERSION>
</environmentVariables>
</configuration>
</execution>
<execution>
<id>yarn test</id>
<goals>
<goal>yarn</goal>
</goals>
<phase>test</phase>
<configuration>
<npmRegistryURL>${env.NPM_REGISTRY_URL}</npmRegistryURL>
<arguments>run test</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>