Package com.sap.cds.maven.plugin.build
Class CleanMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.sap.cds.maven.plugin.AbstractCdsMojo
com.sap.cds.maven.plugin.build.CleanMojo
- All Implemented Interfaces:
CdsMojoLogger
,org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="clean",
defaultPhase=CLEAN,
aggregator=true)
public class CleanMojo
extends AbstractCdsMojo
Delete generated files and directories of the previous build from the CAP Java project.
Call
This goal deletes the following files and directories from the resource directory of the CAP Java project:
Call
mvn cds:clean
or mvn com.sap.cds:cds-maven-plugin:clean
to execute cleaning from the command
line.This goal deletes the following files and directories from the resource directory of the CAP Java project:
- file: src/main/resources/**/csn.json
- file: src/main/resources/**/schema.sql
- directory: src/main/resources/**/edmx/
- directory: ${codeOutputDirectory}
- Since:
- 1.7.0
-
Field Summary
Fields inherited from class com.sap.cds.maven.plugin.AbstractCdsMojo
buildContext, CDS_SERVICES_GROUPID, mojoExecution, PLUGIN_KEY, project, session, settings
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.sap.cds.maven.plugin.AbstractCdsMojo
ensureCliExecuted, findGoalExecution, findSrvProject, getReactorBaseDirectory, isCliExecuted, logDebug, logDebug, logError, logError, logError, logInfo, logWarn, logWarn, logWarn, scanDirectory, setProperty, strong
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
CleanMojo
public CleanMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-