Packaging failed with maven, reporting Unknown lifecycle phase “.test.skip=true“.

Problem Description:

Packaging with maven (executed command: mvn clean package -Dmaven.test.skip=true) failed, and the following error was reported:

Solution:

1. In the Terminal command line in idea, change the command to:

mvn clean package '-Dmaven.test.skip=true'

The execution of packaging is successful, and the results are as follows:

2. Use the cmd command line to execute the written command:

mvn clean package -Dmaven.test.skip=true

Guess you like

Origin blog.csdn.net/qq_51515673/article/details/124372693