简体   繁体   中英

eclipse: plugin to call Maven - Update Project

I'm trying to write a plugin to call the command that is executed when you Right click on a Maven Project and select "Maven" > "Update Project".

(This is part of a bigger plugin)

I can get command Service and from that I understand I can call ...

commandService.getCommand("org.eclipse.m2e.core.ui.command.updateProject")

To get the command, but how do I control what project it is executed on?

Can someone point me in the right direction please.

Thanks Jeff Porter

You want to create a parameterized command from your existing command. See the Eclipse wiki for Executing a command with parameters .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM