Skip to content

Instantly share code, notes, and snippets.

@Alcar32
Created November 6, 2013 21:40
Show Gist options
  • Select an option

  • Save Alcar32/7344598 to your computer and use it in GitHub Desktop.

Select an option

Save Alcar32/7344598 to your computer and use it in GitHub Desktop.
Some Apache Maven commands
Clean a Maven project, that is developed in Eclipse
mvn eclipse:clean clean
Recreate the project files (.project, .claspath) for Eclipse
mvn eclipse:clean eclipse:eclipse

#####Clean build of a Maven project, that is developed in Eclipse mvn eclipse:clean eclipse:eclipse clean compile

Download sources of all dependencies
1. mvn dependency:sources
2. mvn dependency:resolve -Dclassifier=source
Download javadocs of all dependencies
mvn dependency:resolve -Dclassifier=javadoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment