Build from Source

Build jars from source

You require the following to build Pcap:

  • Latest stable JDK 1.7 and JDK 11

  • Latest stable Apache Maven, or you can use Maven Wrapper instead.

export JAVA_HOME="PATH_TO_YOUR_JDK_11"
export JAVA_HOME_JDK7="PATH_TO_YOUR_JDK_7"
./mvnw -t .mvn/toolchains.xml package -Plegacy-support -Dmaven.test.skip=true

# Run with test and code coverage requires at least JDK-8
export JAVA_HOME_JDK7="PATH_TO_YOUR_JDK_8"
./mvnw -t .mvn/toolchains.xml package jacoco:report-aggregate -Pcoverage -Plegacy-support

Last updated