Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project’s build, reporting and documentation from a central piece of information.
Commands
1
2
3
4
5
6
7
8
9
10
11
# update project version, also keepmvn versions:set -DnewVersion=1.1.1-RELEASE
# revert versions operationsmvn versions:revert
# confirm your operationsmvn versions:commit
# update project dependencies to maybe latest version?mvn versions:display-dependency-updates
<properties><maven.compiler.source>17</maven.compiler.source><maven.compiler.target>17</maven.compiler.target><maven.compiler.release>${java.version}</maven.compiler.release></properties><build><finalName>okj-price-jobs</finalName><filters><filter>${props}</filter></filters><resources><resource><filtering>true</filtering><directory>src/main/resources</directory><excludes><exclude>application.properties</exclude></excludes></resource></resources><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><configuration><mainClass>jp.okcoin.price.MarketPriceJobsApplication</mainClass><jvmArguments>-Dfile.encoding=UTF-8</jvmArguments><executable>true</executable></configuration></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-plugin</artifactId></plugin><!-- run mvn test under jdk17 --><plugin><groupId>org.jacoco</groupId><artifactId>jacoco-maven-plugin</artifactId><version>0.8.12</version><executions><execution><id>prepare-agent</id><goals><goal>prepare-agent</goal></goals></execution><execution><id>report</id><goals><goal>report</goal></goals><phase>test</phase></execution></executions></plugin></plugins></build>