javamavenmaven-wrapper

Add maven wrapper to a maven project


I would like to know on how to add maven wrapper mvnw to an existing/new maven project.

How this can be done? Please help.


Solution

  • Steps:

    1. Download Apache Maven from here.
    2. Read here on how to install Apache Maven locally.
    3. Go into your desired maven project and run this command: mvn wrapper:wrapper. This will setup the wrapper for your maven project.

    That's all.