Hello every one,

I use maven in my project and I read a lot about it.
I would like to ask about the goals what is the goals why we use it and what is the different between them and the phases??

I know maven life-cycle and the function of each phase, and i read that the goals is linked to those phases, so why we use the goals? can not we just use the phases??
Another question, hence the regular expression of the phase is [mvn "phase"] like (mvn package) which build and create jar or war, so what is the regular expression of the goal?