I use the "Run as > Maven build..." option to run maven builds from eclipse, mostly using the "package" life cycle phase. I always type the word "package" in the Goals field (see attached screen). But when I click on the Select... button, next to the Goals field, the list is always empty.
Shouldn't the default life cycle phases be included in the list of goals displayed when I click Select? Or what is supposed to be shown in the dialog?
BTW, I took a look at the class org.eclipse.m2e.core.ui.internal.dialogs.GoalsContentProvider, and I see the following code commented out, which seems to add the default life cycle phases.
public GoalsContentProvider() {
// MavenEmbedderManager embedderManager = MavenPlugin.getMavenEmbedderManager();
// try {
// MavenEmbedder embedder = embedderManager.getWorkspaceEmbedder();
// groups.add(new Group(Messages.getString("launch.goalsDialog.lifecycleBuild"), //$NON-NLS-1$
// null, null, getLifecyclePhases(embedder.getBuildLifecyclePhases())));
// groups.add(new Group(Messages.getString("launch.goalsDialog.lifecycleSite"), //$NON-NLS-1$
// null, null, getLifecyclePhases(embedder.getSiteLifecyclePhases())));
// groups.add(new Group(Messages.getString("launch.goalsDialog.lifecycleClean"), //$NON-NLS-1$
// null, null, getLifecyclePhases(embedder.getCleanLifecyclePhases())));
// } catch(Exception e) {
// log.error("Unable to get lifecycle phases", e);
// }
IndexManager indexManager = MavenPlugin.getIndexManager();
try {
Thanks in advance,
Roberto Sanchez Herrera
_______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users
