From 0c0a3cab16d899a747784af7a53245eba0ad9de5 Mon Sep 17 00:00:00 2001 From: Grzegorz Piwowarek Date: Fri, 13 Apr 2018 07:08:55 +0200 Subject: [PATCH] Adjust config (#3979) * Adjust config * Adjust config * Adjust config * fix * fix * Rename MetricTypeTest * Rename MetricTypeTest * Rename MetricTypeTest * Rename MetricTypeTest * Install custom pmd jar to local maven repo during maven validate phase, so that it becomes available during project build * maven install plugin - adding base path * changed the phase for maven directory plugin to validate to make sure that the base directory variable is available to maven install plugin * pmd violation flag back to false --- .gitignore | 2 - custom-pmd-0.0.1.jar | Bin 0 -> 3288 bytes custom-pmd/pom.xml | 4 +- ...ypeTest.java => MetricTypeManualTest.java} | 2 +- pmd/custom-pmd-0.0.1.jar | Bin 0 -> 3288 bytes pom.xml | 59 ++++++++++++++---- 6 files changed, 51 insertions(+), 16 deletions(-) create mode 100644 custom-pmd-0.0.1.jar rename metrics/src/test/java/com/baeldung/metrics/servo/{MetricTypeTest.java => MetricTypeManualTest.java} (99%) create mode 100644 pmd/custom-pmd-0.0.1.jar diff --git a/.gitignore b/.gitignore index 693a35c176..51f3d69d9f 100644 --- a/.gitignore +++ b/.gitignore @@ -34,8 +34,6 @@ spring-security-openid/src/main/resources/application.properties spring-all/*.log -*.jar - SpringDataInjectionDemo/.mvn/wrapper/maven-wrapper.properties spring-call-getters-using-reflection/.mvn/wrapper/maven-wrapper.properties diff --git a/custom-pmd-0.0.1.jar b/custom-pmd-0.0.1.jar new file mode 100644 index 0000000000000000000000000000000000000000..4ad69338657fa4a0da39a243e8bc151987b9cd19 GIT binary patch literal 3288 zcmb7H2{@E%8y;DkES2mg$}+Z@##mCKlx?;!mP5!oi7;bkNW~GAeFig%%33HwmnBPn zN=$Y_<)p=~K}uTGulT zVt_B>@S+&J_1$}P-k27td~jV1A^!yU{>eOfiqR!JwH9A$^wFLz)hHt^GfRF;<^nC( zxOyr)K#fGQ*UBtbX9#`EaCam4dItLcUFxR)PbK+zt}qMy*~XJ$S*~Wl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k+t*C zrX(4oniBS1SKFTFA^ga%9h0VyA6>Y}=v2P1I3=$-36W&u9BX?>s3=!m8(lPaDJV|$ zh3tC;i_l)MyDd@g8LGIE^d#ZU9LwxKUpF67*{s}Rd+o9~Hv8$;YDRv#<7|Dx+wIMi ziAL@5Ik)Xe{Q149`u*#)&AAv+N624}3}mWx&3@J|P_C!Jd`a*`a7v!B`!;aCjQJL9 zw>6Zw&{??Haiw#RVXD~W&EIt^K7lP->R90coeF|HjVT)5I+-4y4TQVz+bDDA{Omsz}w+HWY^c-@X?;C`@S zgI*-Q`m|J6i`aXXK8bbhElZiMn>x~-U{Tt-z`eZKmtMlg_xd6Jz=9zG$F5&rI3zNW zL?BbW2^8xfiw+D7t%1T>nHSj1;50BDBY5E!6s@UqIb0JfX!e_I(DG@FlcNCO0@&ir{0VkLTjkCU@=%YSF2Krc*^L@ z$p~XEOAOb#E!;o1WWY>-*a(_7;#^mD@ORkS7LAk4iJWjKa9)A^VA#Ghtlq&K1GN;K z8@B<&B|G)=QaOfdDL9B}V8}r%3kD!HKZkM*)>3ewlEB{o3v@{$mf>p~u4RIpaI>}G z|7^ehu0D=(F2zRB;^F|HODpYM*3sqaR(Dc<84EnZ#YI8BRp2#r_2+CHWnBsm8~R_c z{Y7V&iPu)zW$K)8=C2Wd)7|eqTzf-)=WiGI=QjLMIEVlH_O!(C0_A}~8-R}{Hwcu( I`QrlmAGi3mZ2$lO literal 0 HcmV?d00001 diff --git a/custom-pmd/pom.xml b/custom-pmd/pom.xml index 7438ec0a34..f9ae961f3a 100644 --- a/custom-pmd/pom.xml +++ b/custom-pmd/pom.xml @@ -3,7 +3,7 @@ 4.0.0 org.baeldung.pmd custom-pmd - 0.0.1-SNAPSHOT + 0.0.1 jar custom-pmd http://maven.apache.org @@ -40,4 +40,4 @@ - \ No newline at end of file + diff --git a/metrics/src/test/java/com/baeldung/metrics/servo/MetricTypeTest.java b/metrics/src/test/java/com/baeldung/metrics/servo/MetricTypeManualTest.java similarity index 99% rename from metrics/src/test/java/com/baeldung/metrics/servo/MetricTypeTest.java rename to metrics/src/test/java/com/baeldung/metrics/servo/MetricTypeManualTest.java index 237092b1c3..d810de155a 100644 --- a/metrics/src/test/java/com/baeldung/metrics/servo/MetricTypeTest.java +++ b/metrics/src/test/java/com/baeldung/metrics/servo/MetricTypeManualTest.java @@ -32,7 +32,7 @@ import com.netflix.servo.monitor.StepCounter; import com.netflix.servo.monitor.Stopwatch; import com.netflix.servo.stats.StatsConfig; -public class MetricTypeTest { +public class MetricTypeManualTest { @Test public void givenDefaultCounter_whenManipulate_thenCountValid() { diff --git a/pmd/custom-pmd-0.0.1.jar b/pmd/custom-pmd-0.0.1.jar new file mode 100644 index 0000000000000000000000000000000000000000..f7ae74ae2ebb586c8c3413ae0a3e4c8523e0bc3e GIT binary patch literal 3288 zcmb7H2Uru?8Vyp7AS%*{pp?)OArw&*MQLdQp)3eUjR+DFl7OhNc94<)2?{Dr1r$VF ziWGgI7$Sr!L}kT74F<6w7WC=Dn=A&{1>dfJzL|T!f!$ z{+xV2Ed@rbt*bQ*xzldF)AuwfkSvf^7Voo-4E!7q9INN2VXb!}?QC6K;aI!(*tS*- z8V2u@LBsSr+Bz$6Mh{H-d1OOWN3$Uswp~hcINv>8!QhTobZr*Ogo2`G>t9<9Mzl_} zu1Z3nfiIJAa%h~(ox61L1dehMxIO`2bO3zsV4()Z`W%j0hby=K)(AipDv zfP^)I{;UxwYc|Ay8Ic@3dlw5cWWHwv_~XNZBE$b*>dL>Tk_bVw%rpHtcsS3`9=NCy z&_k2O(%r&CsIGVlb*DceBs_QrF+2(%P7NW3<08ZG@W3#C3Z=k(4EMx+#gy3Z3|dX& zQHEED12Ry95* zIoNw!wC%^q9@oi-)7*R*!>AngQ~Zc!SH0e=)UoBp#;6=$lj7uCQ4W0CO@iS{{yN#9 zvky7kWN1}QDjm8e9uB=;1cQ?Dk9~|ml0w9G^SxqdPSIfyX7XtHHWinV!Q|Fsehs@5*6*9|q=NhewB2K5J<3;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)PUrNeQ%d|m-_;mMj> zMp3rcL_^BEbPwGR0# zR%(q`+{OCtMO(2f;&8P`lsh@{AJ~>8_T_hM9lCkuP+N*)dCQcjaIw$4gx64QLc)Os zLjsPCKfiEDWFiSqriS1tE>Vu{Xc)>6iFI};b{)qWqT7dX%Q?DkBtu=Cktxo|s2cIx zZwPZIQk2YcXCs7BWxxJ+&trDqK z{}4X*s$^(Ix0Uu*g5GYOX#|891Kq;>P literal 0 HcmV?d00001 diff --git a/pom.xml b/pom.xml index 9942381f0b..64744eb2da 100644 --- a/pom.xml +++ b/pom.xml @@ -39,7 +39,6 @@ - custom-pmd parent-boot-5 asm atomix @@ -362,7 +361,6 @@ - org.codehaus.mojo exec-maven-plugin @@ -371,8 +369,7 @@ maven - - + org.apache.maven.plugins maven-surefire-plugin ${maven-surefire-plugin.version} @@ -388,7 +385,6 @@ - org.apache.maven.plugins maven-compiler-plugin @@ -398,7 +394,6 @@ 1.8 - true false true @@ -420,7 +415,7 @@ UTF-8 1.8 - ${user.dir}/baeldung-pmd-rules.xml + ${tutorialsproject.basedir}/baeldung-pmd-rules.xml @@ -432,7 +427,49 @@ ---> + + org.commonjava.maven.plugins + directory-maven-plugin + 0.3.1 + + + directories + + directory-of + + validate + + tutorialsproject.basedir + + com.baeldung + parent-modules + + + + + + + org.apache.maven.plugins + maven-install-plugin + 2.5.1 + + org.baeldung.pmd + custom-pmd + 0.0.1 + jar + ${tutorialsproject.basedir}/custom-pmd-0.0.1.jar + true + + + + install-jar-lib + + install-file + + validate + + + @@ -444,4 +481,4 @@ - + \ No newline at end of file