Virtual Whiteboard
Virtual whiteboardm2e issue: Downloading Sources and Javadoc continuously
https://dzone.com/articles/spring-rest-service-exception-handling-1
https://stackoverflow.com/questions/38093388/spring-resttemplate-exception-handling
mvn dependency:tree > C:/Users/zeshaikh/Desktop/Notepad++/output.txt
mvn dependency:list > C:/Users/zeshaikh/Desktop/Notepad++/output.txt
mvn dependency:tree -Dincludes=*log4j*
https://stackoverflow.com/questions/70331597/what-is-the-easiest-way-in-maven-pom-xml-to-upgrade-all-usages-of-log4j2-to-2-15
2.16 also has vulnerabilities. need to use 2.17
https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core
JACOCO
<plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.8.2</version> <executions> <execution> <goals> <goal>prepare-agent</goal> </goals> </execution> <execution> <id>report</id> <phase>prepare-package</phase> <goals> <goal>report</goal> </goals> </execution> </executions> </plugin>
And under projects
, add this XML:
<reporting> <plugins> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <reportSets> <reportSet> <reports> <!-- select non-aggregate reports --> <report>report</report> </reports> </reportSet> </reportSets> </plugin> </plugins> </reporting>
mvn test jacoco:report
. This runs all of the unit tests in your project and creates an HTML report of the code coverage information. You can find this report in thetarget/site/jacoco
directory in your project.
Comments
Post a Comment