Published: 12 Mar 2021 › Updated: 12 Mar 2021
Maven Build Project Without Unit Tests and Reporting Errors
Just a quick hack to remember what commands to use during builds with Maven:
| Command | Result |
|---|---|
| mvn clean package | Clears the directory, builds the packages, and runs unit tests all which result in creating the JAR. |
| mvn clean package -Dmaven.test.skip=true | Clears the directory and builds the packages which result in creating the JAR. This skips unit tests. |
| mvn clean package -Dmaven.test.skip=true -e | Clears 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 -Dverbose | Useful 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:
- Maven Build Project Without Unit Tests and Reporting Errors
- Spark Join Hacks With Scala
- Quick ETL Hacks With PowerShell
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:
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
- Solution When ISJSON May Not Be A Recognized Function Name
- Creating a GUID For Each GUID
- Get A Past Bash Command Quickly
- Connecting A Data Factory To An Existing Runtime In Azure
- Backing Up A Database With MongoDump
- SQL Tutorial: Using UNION ALL or UNION and Why
- T-SQL: How To UNION ALL Tables and Why
- SQL Tutorial: Solving Data Differentials With LEFT JOINs Only
- Solving Data Differentials With LEFT JOINs
- Spark Scala: Grouping Values In A Key-Value Pair
- Transaction Log Becoming Full Due To Replication
- Why We Should Be Skeptical About Data Regarding the Physical World
- Does the Same Data Mean the Same Conclusions?
- SQL Tutorial: How To Use ROW NUMBER() and Why
- Not Able To Drop Table Because of Reference
- T-SQL: How To Use DENSE_RANK()
- The Decentralized Myth - Beyond the Hype
- SQL Tutorial: INNER JOINs vs LEFT JOINs
- T-SQL: How To Use PARTITION BY and Why
- Weekly Tech Lesson: CROSS JOINs Versus CROSS APPLY