com.mediaworx.mojo.opencms.ModuleExplodedMojo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opencms-maven-plugin Show documentation
Show all versions of opencms-maven-plugin Show documentation
This plugin packages OpenCms module zips.
The newest version!
package com.mediaworx.mojo.opencms;
/*-
* #%L
* OpenCms Maven Plugin
* %%
* Copyright (C) 2017 - 2018 Silpion IT-Solutions GmbH (https://www.silpion.de/)
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* .
* #L%
*/
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.ResolutionScope;
/**
* Creates the exploded OpenCms module
*/
@Mojo(name = "module-exploded",
defaultPhase = LifecyclePhase.PACKAGE,
requiresProject = true,requiresDependencyResolution = ResolutionScope.RUNTIME)
public class ModuleExplodedMojo extends AbstractOpenCmsMojo {
/**
* Creates an exploded OpenCms module in targetDir.
*
* @throws org.apache.maven.plugin.MojoExecutionException
*
* @throws org.apache.maven.plugin.MojoFailureException
*
*/
public void execute() throws MojoExecutionException, MojoFailureException {
buildModule();
if (addDependencies) {
addDependencies();
}
addManifest();
}
}