File tree Expand file tree Collapse file tree 2 files changed +31
-7
lines changed
src/main/java/com/ericsson/ei/frontend Expand file tree Collapse file tree 2 files changed +31
-7
lines changed Original file line number Diff line number Diff line change 3
3
4
4
<groupId >com.github.ericsson</groupId >
5
5
<artifactId >eiffel-intelligence-frontend</artifactId >
6
- <version >0.0.1-SNAPSHOT </version >
7
- <packaging >jar </packaging >
6
+ <version >0.0.2 </version >
7
+ <packaging >war </packaging >
8
8
9
9
<parent >
10
10
<groupId >org.springframework.boot</groupId >
28
28
<dependency >
29
29
<groupId >org.springframework.boot</groupId >
30
30
<artifactId >spring-boot-starter-web</artifactId >
31
+ <exclusions >
32
+ <exclusion >
33
+ <groupId >org.springframework.boot</groupId >
34
+ <artifactId >spring-boot-starter-tomcat</artifactId >
35
+ </exclusion >
36
+ </exclusions >
31
37
</dependency >
32
38
<dependency >
33
39
<groupId >org.springframework.boot</groupId >
42
48
<groupId >org.apache.httpcomponents</groupId >
43
49
<artifactId >httpclient</artifactId >
44
50
<version >4.5.3</version >
45
- </dependency >
51
+ </dependency >
52
+ <dependency >
53
+ <groupId >org.springframework.boot</groupId >
54
+ <artifactId >spring-boot-starter-tomcat</artifactId >
55
+ <scope >provided</scope >
56
+ </dependency >
46
57
</dependencies >
47
58
<build >
48
59
<plugins >
49
60
<plugin >
50
61
<groupId >org.springframework.boot</groupId >
51
62
<artifactId >spring-boot-maven-plugin</artifactId >
52
63
</plugin >
53
- </plugins >
54
- </build >
64
+ <plugin >
65
+ <groupId >org.apache.maven.plugins</groupId >
66
+ <artifactId >maven-war-plugin</artifactId >
67
+ <configuration >
68
+ <failOnMissingWebXml >false</failOnMissingWebXml >
69
+ </configuration >
70
+ </plugin >
71
+ </plugins >
72
+ </build >
55
73
</project >
56
-
Original file line number Diff line number Diff line change 24
24
import org .slf4j .LoggerFactory ;
25
25
import org .springframework .boot .SpringApplication ;
26
26
import org .springframework .boot .autoconfigure .SpringBootApplication ;
27
+ import org .springframework .boot .builder .SpringApplicationBuilder ;
28
+ import org .springframework .boot .web .support .SpringBootServletInitializer ;
27
29
28
30
@ SpringBootApplication
29
- public class EIFrontendApplication {
31
+ public class EIFrontendApplication extends SpringBootServletInitializer {
32
+
33
+ @ Override
34
+ protected SpringApplicationBuilder configure (SpringApplicationBuilder application ) {
35
+ return application .sources (EIFrontendApplication .class );
36
+ }
30
37
31
38
public static final Logger log = LoggerFactory .getLogger (EIFrontendApplication .class );
32
39
You can’t perform that action at this time.
0 commit comments