-1

i am new to maven and I am wondering is this even possible in maven?

mvn clean install deploy

or

mvn clean compile install deploy

will maven do all the steps? thanks in advance

Niki
  • 85
  • 1
  • 6
  • 2
    have you attempted to check the maven site, for example http://maven.apache.org/run.html? – Oleg Estekhin Jul 03 '17 at 06:20
  • Let's read this answer https://stackoverflow.com/a/32759400/6743203 – Jay Smith Jul 03 '17 at 06:31
  • 3
    Possible duplicate of [What are Maven goals and phases and what is their difference?](https://stackoverflow.com/questions/16205778/what-are-maven-goals-and-phases-and-what-is-their-difference) – Jeen Broekstra Jul 03 '17 at 06:50

1 Answers1

1

The short answer is yes.

Maven has the concept of a build life cycle. In the example you have given

mvn clean compile install deploy

The highest phase is deploy which includes compile and install so it's the same as mvn clean deploy.

Essex Boy
  • 7,565
  • 2
  • 21
  • 24
  • 1
    Or better to use only `mvn clean deploy` cause otherwise many parts like compile etc. will be done three times in this case... – khmarbaise Jul 03 '17 at 16:24