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.
No comments:
Post a Comment