Appendix H. Maven quick cheat sheet
Maven is a powerful tool for building projects, including compiling, testing, generating documentation, packaging, and so on. This appendix provides a few tips and tricks for using Maven, stuff that’s hard to find on the internet and that’s useful for both Java and Spark development.
H.1 Source of packages
Packages and artifacts are cataloged on several sites. The most popular is MVN Repository at https://mvnrepository.com/ .
H.2 Useful commands
Here are a few commands that are useful to know (but not to have to memorize) when you use Maven:
-
$ mvn clean
--Cleans everywhere; allows you to start from a clean slate, which is useful sometimes. -
$ mvn compile
--Compiles the code. -
$ mvn package
--Creates a ...
Get Spark in Action, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.