Using alias in linux may save much time for you.
add these to ~/.bashrc or /etc/profile
manual way
alias mc='mvn clean'
alias mcp='mvn clean package'
alias mci='mvn clean install'commandline way
# Append aliases to /etc/profile
echo "alias mc='mvn clean'" >> /etc/profile
echo "alias mcp='mvn clean package'" >> /etc/profile
echo "alias mci='mvn clean install'" >> /etc/profile
# Apply changes immediately
source /etc/profile作者:张三 创建时间:2026-03-27 10:23
最后编辑:张三 更新时间:2026-03-27 10:31
最后编辑:张三 更新时间:2026-03-27 10:31