I have the following lines which I want to execute
mvn dependency:sources mvn dependency:resolve -Dclassifier=javadoc How can I use m2e in Eclipse to achieve it ?
Simply right-click on your project, then Maven > Download Sources (or Download Javadoc).
Generally, once you have the sources, downloading the javadoc is useless, as it shows up if you hover on methods in the Java editor.
Try this:
pom.xmlRun as -> Maven BuildGoals:Or alternately, to set up a Eclipse Run Configurations:
Run menuRun Configurations -> Maven Build Maven Build Run configuration: