We know org.springframework.boot 2.2.1 version includes tomcat 9.027 version, if we need to upgrade to 9.037, we need to add it like below in pom.xml <tomcat-embed.version>9.0.37</tomcat-embed.version> <dependencyManagement> <dependencies> <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-core</artifactId> <version>${tomcat-embed.version}</version> </dependency> <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-el</artifactId> <version>${tomcat-embed.version}</version> </dependency> <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-websocket</artifactId> <version>${tomcat-embed.version}</version> </dependency> </dependencies> Suggest to use Maven Helper plugin for Idea to see
Read MoreConfig Sona and Run
settings.xml add below <profiles> <profile> <id>sonar</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <!– Sonar Host e.g. http://localhost:9000 –> <sonar.host.url> http://localhost:9000 </sonar.host.url> </properties> </profile> </profiles> Exclusion files in pom.xml <sonar.exclusions> /usr/file1 /usr/file2 </sonar.exclusions> Run Sona using maven mvn clean install sonar:sonar -s /maven/location/settings.xml
Read MoreMaven/git issue fixed examples
1. When maven compile code, there are too much resource files downloading, how to avoid it every time mvn clean compile -o install 2. When met ‘Changes not staged for commit’ in ‘git commit’ for review issue Cases are 1) when pull from remote branch1 2) Modify and submit, then push to remote branch2 3) […]
Read More