class MavenPathComponent implements PathComponent {

    public static final String MAVEN_BASE_DIR = "maven.baseDir";
    
    private final String mavenBaseDir;
    private final ProjectComponent projectComponent;

    public MavenPathComponent(
        @Config(name=MAVEN_BASE_DIR, value="") final String mavenBaseDir,
        final ProjectComponent projectComponent
    ) {
        this.mavenBaseDir = requireNonNull(mavenBaseDir);
        this.projectComponent = requireNonNull(projectComponent);
    }

    @Override
    public Path baseDir() {<FILL_FUNCTION_BODY>}

    @Override
    public Path packageLocation() {
        final Project project = projectComponent.getProject();
        return baseDir().resolve(project.getPackageLocation());
    }

}

        if (mavenBaseDir.isEmpty()) {
            return Paths.get(System.getProperty("user.home"));
        } else {
            return Paths.get(mavenBaseDir);
        }
    
<no_super_class>