/** * Specifies an {@link InvocationRequest} and an {@link Invoker} the EmbeddedMaven should be used with. * <p> * When you use this approach, it is expected that both instances are properly set by you and no additional * parameters (such as -DskipTests) is added by Resolver. You can also observe some limited functionality * provided by Resolver API. * </p> * <p> * If you prefer more comfortable and less boilerplate approach, then use the method {@link #forProject(String)} * </p> * * @param request An {@link InvocationRequest} the EmbeddedMaven should be used with * @param invoker An {@link Invoker} the EmbeddedMaven should be used with * @return Set EmbeddedMaven instance */ public static MavenInvokerEquippedEmbeddedMaven withMavenInvokerSet(InvocationRequest request, Invoker invoker) { MavenInvokerUnequippedEmbeddedMaven embeddedMaven = Resolvers.use(MavenInvokerUnequippedEmbeddedMaven.class); return embeddedMaven.setMavenInvoker(request, invoker); } }
/** * Specifies an {@link InvocationRequest} and an {@link Invoker} the EmbeddedMaven should be used with. * <p> * When you use this approach, it is expected that both instances are properly set by you and no additional * parameters (such as -DskipTests) is added by Resolver. You can also observe some limited functionality * provided by Resolver API. * </p> * <p> * If you prefer more comfortable and less boilerplate approach, then use the method {@link #forProject(String)} * </p> * * @param request An {@link InvocationRequest} the EmbeddedMaven should be used with * @param invoker An {@link Invoker} the EmbeddedMaven should be used with * @return Set EmbeddedMaven instance */ public static MavenInvokerEquippedEmbeddedMaven withMavenInvokerSet(InvocationRequest request, Invoker invoker) { MavenInvokerUnequippedEmbeddedMaven embeddedMaven = Resolvers.use(MavenInvokerUnequippedEmbeddedMaven.class); return embeddedMaven.setMavenInvoker(request, invoker); } }