Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

call mvn test

 
Ranch Hand
Posts: 1332
3
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

could someone explain me how when it is called from a bat file please?

Regards, Isaac
 
Angus Ferguson
Ranch Hand
Posts: 1332
3
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my case it runs maven but where the word test is in the Java program?
 
Bartender
Posts: 20920
127
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It isn't in the Java program.

Maven works by reaching goals Often the goals themselves are defined as having sub-goals, which is how a command like "mvn assembly" might automatically run goals like "compile:compile",  "test", and "war:war".

Goals are defined via Maven "mojos", which are plugin javabean modules designed to be invoked by Maven. Fortunately, most of us can use the ready-made mojos.

This might be a good introduction: https://www.baeldung.com/maven-goals-phases

Also, here's Maven's own information on the goal chain: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Built-in_Lifecycle_Bindings


 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!