Creating a JAR for the Sample Application
This section describes the typical steps required to create a JAR file for the Sample Application.
Ensure that Maven 3.6 or later and Open JDK 1.8 are installed on the machine on which you are creating the JAR file.
To create a JAR file for the Sample Application:
Extract the installation package.
For more information about extract the installation package, refer to the section Extracting the Linux Installation Package.
Run the following command to extract the files from the ApplicationProtector-SAMPLE-APP_SRC_<Build_version>.tgz file to a directory.
tar -xvf ApplicationProtector-SAMPLE-APP\_SRC\_<Build\_version>.tgz -C <dir>Switch to the directory where you have extracted the ApplicationProtector-SAMPLE-APP_SRC_<Build_version>.tgz package.
Execute the following command in the directory.
mvn clean installThe apjava-springboot-0.1.0.jar file appears in the ./target directory.
You need to copy the apjava-springboot-0.1.0.jar file to the /opt/protegrity directory in step 7 of the section Creating a Linux AMI for the Sample Application.
Feedback
Was this page helpful?