Maven Skip Tests

Source URL: https://stackoverflow.com/questions/24727536/maven-skip-tests/30275449

Language: shell

Created on: 2021-02-02 19:39:49

mvn install -Dmaven.test.skip=true

# or

mvn install -DskipTests

# If -Dmaven.test.skip=true (or simply -Dmaven.test.skip) is specified, 
# the test-jars aren't built, and any module that relies on them will 
# fail its build.

# In contrast, when you use -DskipTests, Maven does not run the tests, 
# but it does compile them and build the test-jar, making it available 
# for the subsequent modules.
I am using Maven 2.2.1 and to build my project I used this command mvn clean install -Dmaven.test.skip=true However, the build failed saying it couldn't find one of the artifact. However, when I ...
content_copy