Class MavenPath

java.lang.Object
org.eolang.jeo.MavenPath

public final class MavenPath extends Object
Maven file path resolver. Substitutes ${} expressions with concrete values. This class was created to mitigate the following issue: 1373 We could have use ${basedir}/target/classes instead of ${project.build.outputDirectory} but it is not guaranteed that output directory is always 'target/classes' and the basedir might be different from '.'. Thus, we just handle the case when we run plugin in the folder with pom.xml file.
Since:
0.15.0
  • Constructor Details

    • MavenPath

      public MavenPath(File path)
      Ctor.
      Parameters:
      path - The file path
  • Method Details

    • resolve

      public Path resolve()
      Resolve the path.
      Returns:
      The resolved path