* updates pom-xml and adds Dockerfile to build a web-app image * add depends-on vs links yml examples
		
			
				
	
	
		
			51 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="UTF-8"?>
 | |
| <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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
 | |
|     <modelVersion>4.0.0</modelVersion>
 | |
|     <artifactId>docker-compose</artifactId>
 | |
|     <description>Demo project for Spring Boot and Docker</description>
 | |
| 
 | |
|     <parent>
 | |
|         <groupId>com.baeldung</groupId>
 | |
|         <artifactId>parent-boot-2</artifactId>
 | |
|         <version>0.0.1-SNAPSHOT</version>
 | |
|         <relativePath>../../parent-boot-2</relativePath>
 | |
|     </parent>
 | |
| 
 | |
|     <dependencies>
 | |
|         <dependency>
 | |
|             <groupId>org.springframework.boot</groupId>
 | |
|             <artifactId>spring-boot-starter</artifactId>
 | |
|         </dependency>
 | |
|         <dependency>
 | |
|             <groupId>org.springframework.boot</groupId>
 | |
|             <artifactId>spring-boot-starter-web</artifactId>
 | |
|         </dependency>
 | |
|         <dependency>
 | |
|             <groupId>org.springframework.boot</groupId>
 | |
|             <artifactId>spring-boot-starter-test</artifactId>
 | |
|             <scope>test</scope>
 | |
|         </dependency>
 | |
|     </dependencies>
 | |
| 
 | |
|     <build>
 | |
|         <plugins>
 | |
|             <plugin>
 | |
|                 <groupId>org.springframework.boot</groupId>
 | |
|                 <artifactId>spring-boot-maven-plugin</artifactId>
 | |
|                 <configuration>
 | |
|                     <mainClass>com.baeldung.docker.app.DockAppApplication</mainClass>
 | |
|                 </configuration>
 | |
|                 <executions>
 | |
|                     <execution>
 | |
|                         <goals>
 | |
|                             <goal>repackage</goal>
 | |
|                         </goals>
 | |
|                     </execution>
 | |
|                 </executions>
 | |
|             </plugin>
 | |
|         </plugins>
 | |
|     </build>
 | |
| 
 | |
| </project> |