-
Notifications
You must be signed in to change notification settings - Fork 2
/
pom.xml
128 lines (115 loc) · 5.35 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
<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>
<groupId>ulcambridge.foundations.viewer</groupId>
<artifactId>viewer-ui</artifactId>
<version>4.1.3-SNAPSHOT</version>
<packaging>jar</packaging>
<name>CUDL Viewer UI</name>
<url>https://github.com/cambridge-collection/cudl-viewer-ui</url>
<properties>
<project.build.directory>built</project.build.directory>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<cudl.webpack-output-dir>${project.build.directory}</cudl.webpack-output-dir>
<cudl.webpack-resources-dir>${cudl.webpack-output-dir}/resources</cudl.webpack-resources-dir>
<cudl.outputPath>ulcambridge/foundations/viewer/viewer-ui</cudl.outputPath>
<!-- The path in the resource jar (i.e. namespace) to store the built assets -->
<cudl.outputAssetPath>${cudl.outputPath}/assets</cudl.outputAssetPath>
</properties>
<scm>
<connection>scm:git:ssh://[email protected]/cambridge-collection/cudl-viewer-ui.git</connection>
<developerConnection>scm:git:ssh://[email protected]/cambridge-collection/cudl-viewer-ui.git</developerConnection>
<url>https://github.com/cambridge-collection/cudl-viewer-ui</url>
<tag>4.0.0</tag>
</scm>
<build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.14.0</version>
<executions>
<execution>
<id>Install Node and NPM</id>
<goals><goal>install-node-and-npm</goal></goals>
<configuration>
<nodeVersion>v16.20.2</nodeVersion>
<npmVersion>8.19.4</npmVersion>
</configuration>
</execution>
<execution>
<id>Install NPM packages</id>
<goals><goal>npm</goal></goals>
</execution>
<execution>
<id>Run Webpack build</id>
<goals><goal>webpack</goal></goals>
<configuration>
<arguments>--mode production --output-path ${cudl.webpack-output-dir}</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>Create servlet resource jar</id>
<goals>
<goal>single</goal>
</goals>
<phase>package</phase>
<configuration>
<descriptors>
<descriptor>resources.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<!-- Don't automatically push changes to the remote repo
while executing release:prepare. -->
<pushChanges>false</pushChanges>
<tagNameFormat>@{project.version}</tagNameFormat>
<!-- Use the local repo with release:perform instead of the
upstream repository specified in <scm>. -->
<!-- <localCheckout>true</localCheckout>-->
</configuration>
</plugin>
</plugins>
<resources>
<!-- Include the JSON file webpack generates as a classpath resource -->
<resource>
<directory>built/resources</directory>
<filtering>false</filtering>
<targetPath>${cudl.outputPath}</targetPath>
</resource>
<!-- Include the deps.json which contains a dependancy graph to
resolve the common chunks required by an entry chunk. -->
<resource>
<directory>src/resources</directory>
<filtering>false</filtering>
</resource>
</resources>
<extensions>
<extension>
<groupId>org.springframework.build</groupId>
<artifactId>aws-maven</artifactId>
<version>5.0.0.RELEASE</version>
</extension>
</extensions>
</build>
<!-- Use CUDL's private repo to deploy artifacts -->
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub cambridge-collection Apache Maven Packages</name>
<url>https://maven.pkg.github.com/cambridge-collection/cudl-viewer-ui</url>
</repository>
</distributionManagement>
</project>