I'm trying to use mvn build command for a Maven project to generate a tar file.
When I run my Maven project in Eclipse through Run as → Maven build, Eclipse can generate a tar file. But, the problem is when I used mvn build in command line, it says that unable to execute since mvn build is not a life cycle. So, can anyone say can we use mvn build through command line? Thank you in advance.