![JAR search and dependency download from the Maven repository](/logo.png)
br.com.softplan.security.zap.maven.StartZapMojo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zap-maven-plugin Show documentation
Show all versions of zap-maven-plugin Show documentation
OWASP Zed Attack Proxy (ZAP) Maven plugin
package br.com.softplan.security.zap.maven;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.Mojo;
import br.com.softplan.security.zap.commons.boot.Zap;
/**
* Starts ZAP.
*
* Normally this goal will be used along with the {@code seleniumAnalyze} goal.
*
* The usual configuration is to use {@code startZap} in the pre-integration-test,
* to make sure ZAP is running during the tests. If the tests are correctly configured,
* they will use ZAP's proxy to run the tests. The goal {@code seleniumAnalyze} can then
* be configured to run in the phase post-integration-test to run a ZAP analysis
* without a Spider (using the navigation done by the tests).
*
* @author pdsec
*/
@Mojo(name="startZap")
public class StartZapMojo extends ZapMojo {
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
Zap.startZap(buildZapInfo());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy