Caching Maven Dependencies with Docker - improvements

This commit is contained in:
Mladen Savic
2022-02-20 22:51:08 +01:00
parent 7f84f87902
commit fb851d088c
15 changed files with 107 additions and 103 deletions

View File

@@ -0,0 +1,25 @@
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>multi-module-caching</artifactId>
<groupId>com.baeldung</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>core</artifactId>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
</dependencies>
</project>

View File

@@ -0,0 +1,14 @@
package com.baeldung.maven_caching;
import com.google.common.io.Files;
public class CoreClass {
public String method(){
return "Hello from core module!!";
}
public String dependencyMethod(){
return Files.simplifyPath("/home/app/test");
}
}