All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.permazen.maven.AbstractMainSchemaMojo Maven / Gradle / Ivy

The newest version!

/*
 * Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
 */

package io.permazen.maven;

import java.io.File;
import java.util.List;

import org.apache.maven.artifact.DependencyResolutionRequiredException;
import org.apache.maven.plugins.annotations.Parameter;

/**
 * Provides data appropriate for "main" tasks (as opposed to test tasks).
 */
public abstract class AbstractMainSchemaMojo extends AbstractSchemaMojo {

    @Parameter(defaultValue = "${project.build.outputDirectory}", readonly = true)
    private File outputDirectory;

    @Override
    protected File getClassOutputDirectory() {
        return this.outputDirectory;
    }

    @Override
    @SuppressWarnings("unchecked")
    protected void addDependencyClasspathElements(List elements) throws DependencyResolutionRequiredException {
        elements.addAll((List)this.project.getCompileClasspathElements());
        elements.addAll((List)this.project.getRuntimeClasspathElements());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy