Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Production-Ready Serverless (Operational Best Practices) this week in the Cloud/Virtualization 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
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

call mvn test  RSS feed

 
Ranch Hand
Posts: 1315
3
Java Netbeans IDE Spring
  • 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: 1315
3
Java Netbeans IDE Spring
  • 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: 20562
120
Android Eclipse IDE 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


 
Won't you please? Please won't you be my neighbor? - Fred Rogers. Tiny ad:
global solutions you can do at home or in your backyard
https://www.kickstarter.com/projects/paulwheaton/better-world-boo
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!