SqlinSix avatar

Maven Build Project Without Unit Tests and Reporting Errors

sqlinsix

Published: 12 Mar 2021 › Updated: 12 Mar 2021Maven Build Project Without Unit Tests and Reporting Errors

Maven Build Project Without Unit Tests and Reporting Errors

Just a quick hack to remember what commands to use during builds with Maven:

CommandResult
mvn clean packageClears the directory, builds the packages, and runs unit tests all which result in creating the JAR.
mvn clean package -Dmaven.test.skip=trueClears the directory and builds the packages which result in creating the JAR. This skips unit tests.
mvn clean package -Dmaven.test.skip=true -eClears the directory and builds the packages which result in creating the JAR. This skips unit tests and outputs any resulting errors
mvn dependency:tree -DskipTests -DverboseUseful to see the dependencies and identify if there's a JAR version clash

These can all be easily copied and pasted in the terminal.

More ETLHelp posts:

SQL In Six Minutes (YouTube) | SQL In Six Minutes (Odysee) | Automating ETL | T-SQL In 2 Hours | Consumer Guide To Digital Security

Leave Maven Build Project Without Unit Tests and Reporting Errors to:

Written by

Data and Research Solutions

Read more #maven posts


Best Posts From SqlinSix

We have not curated any of sqlinsix's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From SqlinSix