zap-maven-plugin
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.cryptable.zap</groupId>
<artifactId>zap-maven-plugin</artifactId>
<version>1.6</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.cryptable.zap</groupId>
<artifactId>zap-maven-plugin</artifactId>
<version>1.6</version>
<packaging>maven-plugin</packaging>
<name>${project.groupId}:${project.artifactId}</name>
<description>A maven plugin to run automatic penetration tests using Zed Attack Proxy</description>
<url>https://github.com/ddt-tdd/zap-maven-plugin</url>
<licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<developers>
<developer>
<name>David Tillemans</name>
<email>david.tillemans@cryptable.org</email>
<organization>Cryptable</organization>
<organizationUrl>http://www.cryptable.org</organizationUrl>
</developer>
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<mavenVersion>3.2.1</mavenVersion>
<mavenPluginVersion>3.4</mavenPluginVersion>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>3.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.0.8</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>${mavenVersion}</version>
</dependency>
<dependency>
<groupId>org.zaproxy</groupId>
<artifactId>clientapi</artifactId>
<version>2.4</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.4</version>
</dependency>
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.4</version>
<classifier>jdk15</classifier>
</dependency>
<dependency>
<groupId>xom</groupId>
<artifactId>xom</artifactId>
<version>1.1</version>
</dependency>
</dependencies>
<scm>
<connection>scm:git:git@github.com:ddt-tdd/zap-maven-plugin.git</connection>
<url>scm:git:git@github.com:ddt-tdd/zap-maven-plugin.git</url>
<developerConnection>scm:git:git@github.com:ddt-tdd/zap-maven-plugin.git</developerConnection>
</scm>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.4</version>
<executions>
<execution>
<id>mojo-descriptor</id>
<goals>
<goal>descriptor</goal>
</goals>
</execution>
<execution>
<id>help-goal</id>
<goals>
<goal>helpmojo</goal>
</goals>
</execution>
</executions>
<configuration>
<goalPrefix>zap</goalPrefix>
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
</configuration>
</plugin>
<plugin>
<groupId>external.atlassian.jgitflow</groupId>
<artifactId>jgitflow-maven-plugin</artifactId>
<version>1.0-m5.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>test</id>
<build>
<plugins>
<plugin>
<groupId>org.cryptable.zap</groupId>
<artifactId>zap-maven-plugin</artifactId>
<version>${project.version}</version>
<executions>
<execution>
<id>startZAP</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start-zap</goal>
</goals>
</execution>
<execution>
<id>processZAP</id>
<phase>post-integration-test</phase>
<goals>
<goal>process-zap</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- Windows -->
<!-- <zapProgram>C:\Program Files\OWASP\Zed Attack Proxy\zap.bat</zapProgram> -->
<!-- Mac OS X -->
<!-- <zapProgram>/Users/cryptable/Tools/ZAP/zap.sh</zapProgram> -->
<!-- Linux -->
<!-- zapProgram>D:/projects/zaproxy-read-only/build/zap/zap.bat</zapProgram-->
<zapProgram>D:/tools/OWASP/Zed Attack Proxy/zap.bat</zapProgram>
<zapProxyHost>localhost</zapProxyHost>
<zapProxyPort>8080</zapProxyPort>
<apiKEY>COPY API KEY FROM ZAProxy in here</apiKEY>
<targetURL>http://localhost:8070/</targetURL>
<saveSession>false</saveSession>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<!-- Build release for the Sonatype repository -->
<profile>
<id>release</id>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.3</version>
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.3</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
<!-- Verify the release on Nexus:
- mvn nexus-staging:release (if OK)
- mvn nexus-staging:drop (if Not OK)
-->
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>