Hello Everyone,

I'm running Maven through my Java code. It builds the POM.XML file. But it
also runs the test scripts. I was wondering if there is a way to skip the
test scripts.

This is my code:

request.setGoals(Collections.singletonList("install"));
Invoker invoker = new DefaultInvoker();
File mavenHome = new File(mavenHomePath);
invoker.setMavenHome(mavenHome);
InvocationResult result = null;
result = invoker.execute(request);


Thank you.
--
David Nemer
Sent from Kaiserslautern, RP, Germany

Reply via email to