MavenRunner command line option
Good morning
What is the way to set a command line option when using MavenRunner + MavenRunnerSettings + MavenRunnerParameters
I know how to run a "dependency:resolve" with MavenRunner, but how to send the option -U,--update-snapshots ?
Is that possible or not ?
Thank you,
Best regards
Bernard
Please sign in to leave a comment.
Good morning,
A partial anwser to the question is that via the Settings you can have SNAPSHOT updated
See ' Maven > Always Update Snapshots' checkbox
But the question is still opened, Is there an option that could be set via MavenRunnerSettings
Best regards
Bernard
Hello,
Finally I get rid of MavenRunner for forceUpdateProjects from MavenProjectsManager
I means something like :
MavenProjectsManager mavenProjectsManager = MavenProjectsManager.getInstance(project);
MavenProject mavenProject = mavenProjectsManager.findContainingProject(project.getProjectFile());
mavenProjectsManager.forceUpdateProjects(mavenProjects);
This works great, but the question is :
How to wait for the end of execution of method forceUpdateProjects(mavenProjects) ? I talk about the functionnality provided by the onComplete callback available via MavenRunner.run(... , Runnable onComplete)
Regards