Important Maven Commands
mvn -version: Finds the Maven version
mvn compile: Compiles source files
mvn test-compile: Compiles test files as well as source files
mvn clean: Deletes target directory
mvn test: Runs unit tests
mvn package: Creates a JAR for the project
help:effective-settings: Debugs Maven settings
help:effective-pom: Look at the complete pom after all inheritances from parent poms are resolved
dependency:tree: Look sat all the dependencies and transitive dependencies
dependency:sources: Downloads source code for all dependencies
-debug: Debug flag; can be used with all the above commands
No comments:
Post a Comment