From 836983c00542f240751f853a9b7dc6b51a037df9 Mon Sep 17 00:00:00 2001 From: Navaneeth Mysore Govindarajan Date: Fri, 9 Feb 2024 08:27:52 -0500 Subject: [PATCH] Get runtime-agent working with pet clinic tests --- pom.xml | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 76 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index 8a3d6f151..b9f861d0e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,17 +4,24 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 org.springframework.samples - spring-petclinic + spring-petclinic-runtime-agent 3.2.0-SNAPSHOT org.springframework.boot spring-boot-starter-parent - 3.2.1 + 3.2.0 - petclinic + petclinic-runtime-agent + + 1.0.8-SNAPSHOT + 2.45.0-01 + http://ec2-107-23-150-171.compute-1.amazonaws.com:8070/ + ec2-107-23-150-171.compute-1.amazonaws.com + stage-release + false 17 @@ -38,6 +45,14 @@ + + + com.sonatype.data + runtime-agent + ${runtime-agent.version} + + + org.springframework.boot @@ -143,6 +158,59 @@ + + + org.apache.maven.plugins + maven-dependency-plugin + + + dependency-copy-dependencies + generate-resources + + copy-dependencies + + + ${project.build.directory}/lib + true + compile + + + + + + + + com.sonatype.clm + clm-maven-plugin + ${clm.maven.plugin.version} + + ${artifactId} + stage-release + ${clm.skip} + + + + package + + index + evaluate + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + -javaagent:${project.build.directory}/lib/runtime-agent.jar -Djdk.attach.allowAttachSelf=true -Dsonatype.runtime.agent.enabled=true -Dsonatype.runtime.agent.debugMode=false -Dsonatype.runtime.agent.iq.protocol=http -Dsonatype.runtime.agent.iq.host=ec2-107-23-150-171.compute-1.amazonaws.com -Dsonatype.runtime.agent.iq.port=8070 -Dsonatype.runtime.agent.iq.user=1hPhFMQ2 -Dsonatype.runtime.agent.iq.password=EBuCs4fMF3M81UNrJEZqKPK6wgn41JjC6AMvXBlzngZ5 -Dsonatype.runtime.agent.iq.applicationId=spring-petclinic-runtime-agent -Dsonatype.runtime.agent.isIqApplicationIdPublic=true -Dsonatype.runtime.agent.blockedRunOnStartup=true -Dsonatype.runtime.agent.scanClasspath=false -Dsonatype.runtime.agent.fetchVulnerableClassesFromIQ=true -Dsonatype.runtime.agent.vulnerableMethodDetectionEnabled=true + + + + org.apache.maven.plugins maven-enforcer-plugin @@ -201,7 +269,8 @@ src/checkstyle/nohttp-checkstyle-suppressions.xml ${basedir} **/* - **/.git/**/*,**/.idea/**/*,**/target/**/,**/.flattened-pom.xml,**/*.class + + pom.xml,**/.git/**/*,**/.idea/**/*,**/target/**/,**/.flattened-pom.xml,**/*.class check @@ -218,7 +287,7 @@ spring-boot-maven-plugin - build-info @@ -376,7 +445,7 @@ - org.eclipse.m2e @@ -434,4 +503,4 @@ - \ No newline at end of file +