1+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
3+ <modelVersion >4.0.0</modelVersion >
4+ <artifactId >spring-security-react</artifactId >
5+ <version >0.1-SNAPSHOT</version >
6+
7+ <name >spring-security-react</name >
8+ <packaging >war</packaging >
9+
10+ <parent >
11+ <groupId >com.baeldung</groupId >
12+ <artifactId >parent-spring-4</artifactId >
13+ <version >0.0.1-SNAPSHOT</version >
14+ <relativePath >../parent-spring-4</relativePath >
15+ </parent >
16+
17+ <dependencies >
18+
19+ <!-- Spring Security -->
20+
21+ <dependency >
22+ <groupId >org.springframework.security</groupId >
23+ <artifactId >spring-security-web</artifactId >
24+ <version >${org.springframework.security.version} </version >
25+ </dependency >
26+ <dependency >
27+ <groupId >org.springframework.security</groupId >
28+ <artifactId >spring-security-config</artifactId >
29+ <version >${org.springframework.security.version} </version >
30+ </dependency >
31+ <dependency >
32+ <groupId >org.springframework.security</groupId >
33+ <artifactId >spring-security-taglibs</artifactId >
34+ <version >${org.springframework.security.version} </version >
35+ </dependency >
36+
37+ <!-- Spring -->
38+
39+ <dependency >
40+ <groupId >org.springframework</groupId >
41+ <artifactId >spring-core</artifactId >
42+ <version >${org.springframework.version} </version >
43+ </dependency >
44+ <dependency >
45+ <groupId >org.springframework</groupId >
46+ <artifactId >spring-context</artifactId >
47+ <version >${org.springframework.version} </version >
48+ </dependency >
49+ <dependency >
50+ <groupId >org.springframework</groupId >
51+ <artifactId >spring-beans</artifactId >
52+ <version >${org.springframework.version} </version >
53+ </dependency >
54+ <dependency >
55+ <groupId >org.springframework</groupId >
56+ <artifactId >spring-aop</artifactId >
57+ <version >${org.springframework.version} </version >
58+ </dependency >
59+
60+ <dependency >
61+ <groupId >org.springframework</groupId >
62+ <artifactId >spring-web</artifactId >
63+ <version >${org.springframework.version} </version >
64+ </dependency >
65+ <dependency >
66+ <groupId >org.springframework</groupId >
67+ <artifactId >spring-webmvc</artifactId >
68+ <version >${org.springframework.version} </version >
69+ </dependency >
70+
71+ <!-- web -->
72+
73+ <dependency >
74+ <groupId >javax.servlet</groupId >
75+ <artifactId >javax.servlet-api</artifactId >
76+ <version >${javax.servlet.version} </version >
77+ <scope >provided</scope >
78+ </dependency >
79+ <dependency >
80+ <groupId >javax.servlet</groupId >
81+ <artifactId >jstl</artifactId >
82+ <version >${jstl.version} </version >
83+ <scope >runtime</scope >
84+ </dependency >
85+
86+ </dependencies >
87+
88+ <build >
89+ <finalName >spring-security-react</finalName >
90+ <resources >
91+ <resource >
92+ <directory >src/main/resources</directory >
93+ <filtering >true</filtering >
94+ </resource >
95+ </resources >
96+
97+ <plugins >
98+
99+ <plugin >
100+ <groupId >org.apache.maven.plugins</groupId >
101+ <artifactId >maven-war-plugin</artifactId >
102+ <version >${maven-war-plugin.version} </version >
103+ <configuration >
104+ <warSourceExcludes >
105+ WEB-INF/view/react/node/**,
106+ WEB-INF/view/react/node_modules/**,
107+ WEB-INF/view/react/public/**,
108+ WEB-INF/view/react/src/**,
109+ WEB-INF/view/react/*
110+ </warSourceExcludes >
111+ </configuration >
112+ </plugin >
113+
114+ <plugin >
115+ <groupId >com.github.eirslett</groupId >
116+ <artifactId >frontend-maven-plugin</artifactId >
117+ <version >${frontend-maven-plugin.version} </version >
118+ <configuration >
119+ <nodeVersion >${node.version} </nodeVersion >
120+ <npmVersion >${npm.version} </npmVersion >
121+ <workingDirectory >src/main/webapp/WEB-INF/view/react</workingDirectory >
122+ </configuration >
123+ <executions >
124+ <execution >
125+ <id >install node and npm</id >
126+ <goals >
127+ <goal >install-node-and-npm</goal >
128+ </goals >
129+ </execution >
130+ <execution >
131+ <id >npm install</id >
132+ <goals >
133+ <goal >npm</goal >
134+ </goals >
135+ </execution >
136+ <execution >
137+ <id >npm run build</id >
138+ <goals >
139+ <goal >npm</goal >
140+ </goals >
141+ <configuration >
142+ <arguments >run build</arguments >
143+ </configuration >
144+ </execution >
145+ </executions >
146+ </plugin >
147+
148+ <plugin >
149+ <groupId >org.eclipse.jetty</groupId >
150+ <artifactId >jetty-maven-plugin</artifactId >
151+ <version >9.4.11.v20180605</version >
152+ </plugin >
153+
154+ </plugins >
155+
156+ </build >
157+
158+ <properties >
159+ <!-- Spring -->
160+ <org .springframework.version>4.3.6.RELEASE</org .springframework.version>
161+ <org .springframework.security.version>4.2.1.RELEASE</org .springframework.security.version>
162+
163+ <!-- various -->
164+ <javax .servlet.version>3.1.0</javax .servlet.version>
165+ <jstl .version>1.2</jstl .version>
166+
167+ <!-- util -->
168+ <guava .version>19.0</guava .version>
169+ <commons-lang3 .version>3.5</commons-lang3 .version>
170+
171+ <!-- Maven plugins -->
172+ <maven-war-plugin .version>2.6</maven-war-plugin .version>
173+ <maven-resources-plugin .version>2.7</maven-resources-plugin .version>
174+ <frontend-maven-plugin .version>1.6</frontend-maven-plugin .version>
175+ <jetty .version>9.4.11.v20180605</jetty .version>
176+
177+ <!-- frontend -->
178+ <node .version>v8.11.3</node .version>
179+ <npm .version>6.1.0</npm .version>
180+
181+ </properties >
182+
183+ </project >
0 commit comments