KevanSoon commited on
Commit
5203b31
·
1 Parent(s): 86def8e

java dockerfile

Browse files
Files changed (1) hide show
  1. pom.xml +10 -0
pom.xml CHANGED
@@ -16,6 +16,7 @@
16
  </parent>
17
 
18
  <dependencies>
 
19
  <dependency>
20
  <groupId>org.springframework.boot</groupId>
21
  <artifactId>spring-boot-starter-web</artifactId>
@@ -23,10 +24,19 @@
23
  </dependencies>
24
 
25
  <build>
 
 
 
26
  <plugins>
 
27
  <plugin>
28
  <groupId>org.springframework.boot</groupId>
29
  <artifactId>spring-boot-maven-plugin</artifactId>
 
 
 
 
 
30
  </plugin>
31
  </plugins>
32
  </build>
 
16
  </parent>
17
 
18
  <dependencies>
19
+ <!-- Spring Boot Web -->
20
  <dependency>
21
  <groupId>org.springframework.boot</groupId>
22
  <artifactId>spring-boot-starter-web</artifactId>
 
24
  </dependencies>
25
 
26
  <build>
27
+ <!-- Look for Java files in root folder -->
28
+ <sourceDirectory>${basedir}</sourceDirectory>
29
+
30
  <plugins>
31
+ <!-- Spring Boot Maven Plugin -->
32
  <plugin>
33
  <groupId>org.springframework.boot</groupId>
34
  <artifactId>spring-boot-maven-plugin</artifactId>
35
+ <version>3.2.5</version>
36
+ <configuration>
37
+ <!-- Specify main class -->
38
+ <mainClass>DemoApplication</mainClass>
39
+ </configuration>
40
  </plugin>
41
  </plugins>
42
  </build>