Friday 6 March 2020

'mvn clean install' vs 'mvn clean package'

mvn clean package
‘mvn clean package’ command deletes the target folder and compile java classes and package them. For example, if you specify packaging as jar, then this command generates jar artifact.

mvn clean install
Apart from cleaning and packaging, it copies the generated artefact to local repository.
Previous                                                    Next                                                    Home

No comments:

Post a Comment