From 380ebb31c8942f0c29f1912eabed2fbeee6c73d3 Mon Sep 17 00:00:00 2001 From: Karsten Klein Date: Thu, 27 Jun 2024 08:56:11 +0200 Subject: [PATCH] Providing template for integrated scanner configuration --- scanners/example-scanner/pom.xml | 29 ++-- scanners/scanner-template/pom.xml | 161 ++++++++++++++++++ .../src/analysis/component-patterns.xls | Bin 0 -> 24576 bytes .../src/analysis/reference-inventory.xls | Bin 0 -> 24064 bytes .../src/analysis/scan-control.properties | 34 ++++ 5 files changed, 208 insertions(+), 16 deletions(-) create mode 100755 scanners/scanner-template/pom.xml create mode 100755 scanners/scanner-template/src/analysis/component-patterns.xls create mode 100755 scanners/scanner-template/src/analysis/reference-inventory.xls create mode 100755 scanners/scanner-template/src/analysis/scan-control.properties diff --git a/scanners/example-scanner/pom.xml b/scanners/example-scanner/pom.xml index 4f55071..2f110cc 100755 --- a/scanners/example-scanner/pom.xml +++ b/scanners/example-scanner/pom.xml @@ -14,28 +14,26 @@ pom - - ${project.basedir}/../../extractors/dependency-extractors/ae-dependency-extractor/target/scan - + 0.113.0 + 0.106.0 1.7.0 + + - - org.apache.maven.plugins - maven-dependency-plugin - + org.metaeffekt.core ae-inventory-maven-plugin + com.metaeffekt.artifact.analysis ae-artifact-analysis-plugin - ${ae.artifact.analysis.version} @@ -77,20 +75,20 @@ ${project.build.directory}/scan false - true + true + true false false - false - false - false - false false + false + false false + false + false false false false - false + + + + + + + + + + + + org.metaeffekt.core + ae-inventory-maven-plugin + + + + + com.metaeffekt.artifact.analysis + ae-artifact-analysis-plugin + + + + + + + + + org.metaeffekt.core + ae-inventory-maven-plugin + ${ae.core.version} + + + + prepare-scan-directory + + prepare-scan-directory + + generate-sources + + ${source.dir} + ${project.build.directory}/scan + + **/* + + + ---nothing--- + + + + + + create-scan-report + + create-directory-report + + process-sources + + ${project.build.directory}/scan + + false + true + true + + false + false + false + false + false + false + false + false + false + false + false + + + + ${project.basedir}/src/analysis + component-patterns.xls + + **/* + -none- + + + ${project.build.directory}/inventory + + + + + + + com.metaeffekt.artifact.analysis + ae-artifact-analysis-plugin + ${ae.artifact.analysis.version} + + + extract + + extract-artifacts + + compile + + + ${project.basedir}/src/analysis/ + component-patterns.xls + + + + scan + + scan-artifacts + report-artifacts + + compile + + + ${project.basedir}/src/analysis + reference-inventory.xls + + + + + ${project.artifactId} + + ${project.basedir}/src/analysis/scan-control.properties + + com.metaeffekt.universe + ae-metaeffekt-universe + ${ae.universe.version} + + ${universe.consumer.password} + ${universe.consumer.keys} + + + + + + + diff --git a/scanners/scanner-template/src/analysis/component-patterns.xls b/scanners/scanner-template/src/analysis/component-patterns.xls new file mode 100755 index 0000000000000000000000000000000000000000..62b64c35aacac1413b568bcd6d3f9004d9c7fe7e GIT binary patch literal 24576 zcmeHPdvH|OdH?S2O1k1HiHCWLMLZ-xB0`ce36B+E96JWg_z^ocj;zNnQV}b$zv4ex{j?)PV@{A`=X5_TfiR*?ksnemEX6z=Iwv#5sx&8gl z*|U51-rXy!#+_-iXXo5|&v(xEIN$lscOLiL{hPn8e&Y-07X4T}VVi{I*G{FByWkd{ z*PC>eAm4GAH1{Sv15^tChcr-Wqan-7W zyykr8-ip>|d757o6!U1#BH$%_i-qJnIYMe<#gcaDFCrjAf%ZI_hvNvHJ7 z|5`4poX>ZyL?BN_D&)?zcFVAIL#`f37L^Y}#!g8h70*g(i>iZX?AU7g&6=fE# z71mC)!XfF(SPbo@F|UMIBay(|OR&xybuTXMv@KBXX#u&GRA%LNQ?89HkuqpnRy3|y z(Y!xex3X^Y{-#`_HnJQe!jioF2kwmbJeXgoPAX(+rqKH4d^#pw8>tst>b#}g)N(~P z%Uane($TawniHm@39@+rEK%1~rzA&yM^k%8Q*ESC)=0ez-HoYADWqKaozf`VT;+`* zZafz(!!#E2ux*od@_~FZ9tt_;u~?3Mt9%JYsBDgW)`iQlG|OoLV(_uK zM%9#fH9{PeuS#nnA&ArgODM)XKR=(TKhLoH9eEmB46Jhy(_D>nrSe&u`sU{w_Dkd$ z`W!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;y*Cre=`ODq>AH+h{S&fk@r$~?;5xh2fg`S zOB7!U@eBPFj)YGo%*X#c8!2cZu#?nomA(+ atxRqPhi)Z<{*Q#I$+PKyQ2$jf{{IaYeTrZJ literal 0 HcmV?d00001 diff --git a/scanners/scanner-template/src/analysis/reference-inventory.xls b/scanners/scanner-template/src/analysis/reference-inventory.xls new file mode 100755 index 0000000000000000000000000000000000000000..2f990aa3a0ef2f42c22d3ab8ff0b2e6f698e3122 GIT binary patch literal 24064 zcmeHP3vg7|dH(M{q!r>JA;6f2Sj0DaED3I~r2X__W(n%KedqhojK20YVAoEf?8bmDPCnbhgfOf&Yxn5L5^1G)Xa zbN1}sy?5`GsYz$r?$MmP_x$I7o&WsjKaV}yzyG_&x4-iIf**@3ZIiJ4+OCrt2i(GY zyD2va>TR1v^Vx=XfU4<#kp=2v=*XI=+;{sMwcnSJ)Wk%7jL&aJUc*!5Uy%37A(NRu>6nJ zqRHiQ*GL5V6tqI^469qlq#t?>K(n~q0v&rLgHo!fWlU5XJiK%Z>jG=%1k_s6DX+3q zDsr}@E}%9f*9CBnh?dI^DQ~~lxzU%l&9Y>ZuiQvr?RofsKke%hk?BgVpH|y^wW23= z2G(u~sI?^N)1qb>ENfA%wG+Mnp!5|yRr{$WF&}zu&1n^7H%Asp6ul(N+LkR_zc1dh zyk+yg_EMoavJ^AIqO$t????^oFGp&TT3K8`TDQKOk101tRzbxUHlnP4`mGE~;n{0F78%3OS4p>2G zGU*cADQo2;)-j5*(8%rPL;>nKr%)FP)Da|{xOXBi(3SFlJ z;{SgcZea+QlD20p0Ll(86>1`1R`&P8zvTn}rVsqI5B#JL{5c=^vp(=I`M@9bf&1y> z$Nxpe2b&U?eg4=7uJ!TaYkj=%ulewK-Ut4Y5Bxhm@JD>$f9V6iT7CXP@tJ4r^F(9g znI&hINaTcqPjkSZtbelJz_FXFIPNS&Fy)8;2?Uk2e>UM=!NFhi(S9=Dz<+=xsBBw; zy_%9c-N0SrdZvLF{apL4h1gX|?reka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