| [news.eclipse.technology.m2e] Re: Maven dependencies? |
import org.eclipse.core.commands.AbstractHandler; import org.eclipse.core.commands.ExecutionEvent; import org.eclipse.core.commands.ExecutionException; import org.eclipse.ui.IWorkbenchWindow; import org.eclipse.ui.handlers.HandlerUtil; import org.eclipse.jface.dialogs.MessageDialog;
To do this the following dependencies are defined in the MANIFEST.MF file:
org.eclipse.ui (3.5.0) org.eclipse.core.runtime (3.5.0)
Why go to greater lengths than this?
Have a look at Tycho project [1], which provides set of Maven extensions and plugins to build PDE projects with Maven. In particular, look at sample application that shows P2-based target platform resolver.
[1] https://docs.sonatype.org/display/M2ECLIPSE/Tycho+project+overview
[2] https://docs.sonatype.org/display/M2ECLIPSE/Tycho+build+target+platform+management
-- Regards, Igor
klm wrote:I am trying to create a Maven module that contains a Eclipse PDE project. I therefore need the following imports:
import org.eclipse.core.commands.AbstractHandler; import org.eclipse.core.commands.ExecutionEvent; import org.eclipse.core.commands.ExecutionException; import org.eclipse.ui.IWorkbenchWindow; import org.eclipse.ui.handlers.HandlerUtil; import org.eclipse.jface.dialogs.MessageDialog;
I have found jface:
<dependency> <groupId>swt</groupId> <artifactId>jface</artifactId> <version>3.0m8</version> </dependency>
from a site. But how do I get the other dependencies in Maven? I cannot find them using the build in dependency manager.