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