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
This commit is contained in:
parent
23162f16a9
commit
0c0a3cab16
2
.gitignore
vendored
2
.gitignore
vendored
@ -34,8 +34,6 @@ spring-security-openid/src/main/resources/application.properties
|
|||||||
|
|
||||||
spring-all/*.log
|
spring-all/*.log
|
||||||
|
|
||||||
*.jar
|
|
||||||
|
|
||||||
SpringDataInjectionDemo/.mvn/wrapper/maven-wrapper.properties
|
SpringDataInjectionDemo/.mvn/wrapper/maven-wrapper.properties
|
||||||
|
|
||||||
spring-call-getters-using-reflection/.mvn/wrapper/maven-wrapper.properties
|
spring-call-getters-using-reflection/.mvn/wrapper/maven-wrapper.properties
|
||||||
|
BIN
custom-pmd-0.0.1.jar
Normal file
BIN
custom-pmd-0.0.1.jar
Normal file
Binary file not shown.
@ -3,7 +3,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.baeldung.pmd</groupId>
|
<groupId>org.baeldung.pmd</groupId>
|
||||||
<artifactId>custom-pmd</artifactId>
|
<artifactId>custom-pmd</artifactId>
|
||||||
<version>0.0.1-SNAPSHOT</version>
|
<version>0.0.1</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>custom-pmd</name>
|
<name>custom-pmd</name>
|
||||||
<url>http://maven.apache.org</url>
|
<url>http://maven.apache.org</url>
|
||||||
|
@ -32,7 +32,7 @@ import com.netflix.servo.monitor.StepCounter;
|
|||||||
import com.netflix.servo.monitor.Stopwatch;
|
import com.netflix.servo.monitor.Stopwatch;
|
||||||
import com.netflix.servo.stats.StatsConfig;
|
import com.netflix.servo.stats.StatsConfig;
|
||||||
|
|
||||||
public class MetricTypeTest {
|
public class MetricTypeManualTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenDefaultCounter_whenManipulate_thenCountValid() {
|
public void givenDefaultCounter_whenManipulate_thenCountValid() {
|
BIN
pmd/custom-pmd-0.0.1.jar
Normal file
BIN
pmd/custom-pmd-0.0.1.jar
Normal file
Binary file not shown.
55
pom.xml
55
pom.xml
@ -39,7 +39,6 @@
|
|||||||
</reporting>
|
</reporting>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>custom-pmd</module>
|
|
||||||
<module>parent-boot-5</module>
|
<module>parent-boot-5</module>
|
||||||
<module>asm</module>
|
<module>asm</module>
|
||||||
<module>atomix</module>
|
<module>atomix</module>
|
||||||
@ -362,7 +361,6 @@
|
|||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>exec-maven-plugin</artifactId>
|
<artifactId>exec-maven-plugin</artifactId>
|
||||||
@ -371,7 +369,6 @@
|
|||||||
<executable>maven</executable>
|
<executable>maven</executable>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
@ -388,7 +385,6 @@
|
|||||||
</excludes>
|
</excludes>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
@ -398,7 +394,6 @@
|
|||||||
<target>1.8</target>
|
<target>1.8</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<!-- TODO till we sort it out
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-pmd-plugin</artifactId>
|
<artifactId>maven-pmd-plugin</artifactId>
|
||||||
@ -407,11 +402,11 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.baeldung.pmd</groupId>
|
<groupId>org.baeldung.pmd</groupId>
|
||||||
<artifactId>custom-pmd</artifactId>
|
<artifactId>custom-pmd</artifactId>
|
||||||
<version>0.0.1-SNAPSHOT</version>
|
<version>0.0.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<configuration>
|
<configuration>
|
||||||
<failurePriority>5</failurePriority> <!– TODO change to 0 after fixing the project –>
|
<failurePriority>5</failurePriority> <!-- TODO change to 0 after fixing the project -->
|
||||||
<aggregate>true</aggregate>
|
<aggregate>true</aggregate>
|
||||||
<failOnViolation>false</failOnViolation>
|
<failOnViolation>false</failOnViolation>
|
||||||
<verbose>true</verbose>
|
<verbose>true</verbose>
|
||||||
@ -420,7 +415,7 @@
|
|||||||
<sourceEncoding>UTF-8</sourceEncoding>
|
<sourceEncoding>UTF-8</sourceEncoding>
|
||||||
<targetJdk>1.8</targetJdk>
|
<targetJdk>1.8</targetJdk>
|
||||||
<rulesets>
|
<rulesets>
|
||||||
<ruleset>${user.dir}/baeldung-pmd-rules.xml</ruleset>
|
<ruleset>${tutorialsproject.basedir}/baeldung-pmd-rules.xml</ruleset>
|
||||||
</rulesets>
|
</rulesets>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
@ -432,7 +427,49 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
-->
|
<plugin>
|
||||||
|
<groupId>org.commonjava.maven.plugins</groupId>
|
||||||
|
<artifactId>directory-maven-plugin</artifactId>
|
||||||
|
<version>0.3.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>directories</id>
|
||||||
|
<goals>
|
||||||
|
<goal>directory-of</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>validate</phase>
|
||||||
|
<configuration>
|
||||||
|
<property>tutorialsproject.basedir</property>
|
||||||
|
<project>
|
||||||
|
<groupId>com.baeldung</groupId>
|
||||||
|
<artifactId>parent-modules</artifactId>
|
||||||
|
</project>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-install-plugin</artifactId>
|
||||||
|
<version>2.5.1</version>
|
||||||
|
<configuration>
|
||||||
|
<groupId>org.baeldung.pmd</groupId>
|
||||||
|
<artifactId>custom-pmd</artifactId>
|
||||||
|
<version>0.0.1</version>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
<file>${tutorialsproject.basedir}/custom-pmd-0.0.1.jar</file>
|
||||||
|
<generatePom>true</generatePom>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>install-jar-lib</id>
|
||||||
|
<goals>
|
||||||
|
<goal>install-file</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>validate</phase>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
||||||
<extensions>
|
<extensions>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user