forked from teiid/beetle-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
246 lines (231 loc) · 10.2 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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<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"
>
<!-- ================================================================== -->
<!-- Self -->
<!-- ================================================================== -->
<artifactId>beetle-studio</artifactId>
<description>Web tooling supporting the Teiid project.</description>
<groupId>org.jboss.teiid</groupId>
<modelVersion>4.0.0</modelVersion>
<name>BeETLe Studio</name>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<url>http://http://teiid.jboss.org/</url>
<!-- ================================================================== -->
<!-- Organization -->
<!-- ================================================================== -->
<organization>
<name>JBoss, a division of Red Hat</name>
<url>http://www.jboss.org</url>
</organization>
<!-- ================================================================== -->
<!-- Licenses -->
<!-- ================================================================== -->
<licenses>
<license>
<name>Apache License Version 2.0</name>
<url>http://repository.jboss.org/licenses/apache-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<!-- ================================================================== -->
<!-- SCM and Issue Management-->
<!-- ================================================================== -->
<scm>
<connection>scm:git:git@github.com:teiid/beetle-studio.git</connection>
<developerConnection>scm:git:git@github.com:teiid/beetle-studio.git</developerConnection>
<url>scm:git:git@github.com:teiid/beetle-studio.git</url>
</scm>
<issueManagement>
<system>GitHub</system>
<url>https://github.com/teiid/beetle-studio/issues</url>
</issueManagement>
<!-- ================================================================== -->
<!-- Developers -->
<!-- ================================================================== -->
<developers>
<developer>
<name>Mark Drilling</name>
<id>mdrillin</id>
<email>mdrillin@redhat.com</email>
<organization>Red Hat</organization>
<roles>
<role>Project Lead</role>
<role>Developer</role>
</roles>
<timezone>-6</timezone>
</developer>
<developer>
<name>Dan Florian</name>
<id>elvisisking</id>
<email>dflorian@redhat.com</email>
<organization>Red Hat</organization>
<roles>
<role>Developer</role>
</roles>
<timezone>-6</timezone>
</developer>
<developer>
<name>Ted Jones</name>
<id>tejones</id>
<email>tejones@redhat.com</email>
<organization>Red Hat</organization>
<roles>
<role>Developer</role>
</roles>
<timezone>-6</timezone>
</developer>
</developers>
<!-- ================================================================== -->
<!-- Properties -->
<!-- ================================================================== -->
<properties>
<target.src.dir>${basedir}/target/copy-src</target.src.dir>
<maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<timestamp>${maven.build.timestamp}</timestamp>
<version.exec-maven-plugin>1.5.0</version.exec-maven-plugin>
<version.maven-antrun-plugin>1.8</version.maven-antrun-plugin>
<version.maven-clean-plugin>3.0.0</version.maven-clean-plugin>
<version.maven-compiler-plugin>3.5.1</version.maven-compiler-plugin>
<version.maven-resources-plugin>2.7</version.maven-resources-plugin>
<version.maven-war-plugin>2.6</version.maven-war-plugin>
<finalName>beetle-studio</finalName>
</properties>
<!-- ================================================================== -->
<!-- Build -->
<!-- ================================================================== -->
<build>
<finalName>${finalName}</finalName>
<plugins>
<!-- Copy the Angular UI sources to target to build. -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<version>${version.maven-resources-plugin}</version>
<executions>
<execution>
<id>copy-angular-sources</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${target.src.dir}</outputDirectory>
<resources>
<resource>
<directory>src/main/ngapp</directory>
<includes>
<include>**/*</include>
</includes>
<excludes>
<exclude>**/node_modules/**</exclude>
</excludes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<!-- Make the 'ng' command executable. Will run after npm-install below due to phase -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>${version.maven-antrun-plugin}</version>
<executions>
<execution>
<id>chmod-ng-cmd</id>
<phase>process-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<echo>run chmod in ${basedir}</echo>
<chmod file="${target.src.dir}/node_modules/@angular/cli/bin/ng" perm="777"/>
</target>
</configuration>
</execution>
</executions>
</plugin>
<!-- Call npm install to resolve the dependencies of the Angular UI in package.json. -->
<plugin>
<artifactId>exec-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<version>${version.exec-maven-plugin}</version>
<executions>
<execution>
<id>npm-install</id>
<goals>
<goal>exec</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<executable>npm</executable>
<arguments>
<argument>install</argument>
</arguments>
<workingDirectory>${target.src.dir}</workingDirectory>
<target>
<echo message="npm install" />
</target>
</configuration>
</execution>
<!-- Build the Angular UI with Angular CLI. -->
<execution>
<id>angular-cli-build</id>
<goals>
<goal>exec</goal>
</goals>
<phase>compile</phase>
<configuration>
<executable>node_modules/@angular/cli/bin/ng</executable>
<arguments>
<argument>build</argument>
<argument>--prod</argument>
<argument>--bh</argument>
<argument>./</argument>
</arguments>
<workingDirectory>${target.src.dir}</workingDirectory>
</configuration>
</execution>
<!-- Run tests. -->
<execution>
<id>karmaTest</id>
<goals>
<goal>exec</goal>
</goals>
<phase>test</phase>
<configuration>
<executable>ng</executable>
<arguments>
<argument>test</argument>
</arguments>
<workingDirectory>${target.src.dir}</workingDirectory>
</configuration>
</execution>
</executions>
</plugin>
<!-- Build the war. -->
<plugin>
<artifactId>maven-war-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<version>${version.maven-war-plugin}</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<webResources>
<resource>
<directory>${target.src.dir}/dist</directory>
<includes>
<include>**/*.*</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
</plugins>
</build>
</project>