I would like to create a custom Eclipse that has Mybatipse along with some other plugins installed by default. I am using the Oomph Product setup within Eclipse to create my product. My guess is to add a requirement in the P2 director node, but I don't know how to set it up correctly. I have seen examples that put the name of the plugin in the Name section of a Requirement like this org.eclipse.emf.compare.source.feature.group
but I don't know where to get that info from for the plugins I want. Am I even heading in the right direction?
From their homepage, the P2 Update Site for this plugin is:
http://dl.bintray.com/harawata/eclipse
In the the "Repository Explorer (Oomph)" view (you may need to add this view in your Workbench), you can see the plugin:
In the Setup editor of your product setup file, Create a new "P2 Director" Task:
And again create a "Repository" Child in the new created node.
Double click on the "Repository" node in order to see the properties (a new view should appear. Sometimes you need to do this operation twice bevor you see the properties).
In URL enter the P2 Update site.
Back to your Repository explorer view, drag and drop "MyBatipse" on your "P2 Director" node, it will appear as child node.
Note: If you want fixed a precise version of the plugin, you can also drag and drop one of the version from the Repository explorer
If you open your *.setup
File with a text editor, you should se a section like this:
<setupTask
xsi:type="setup.p2:P2Task">
<requirement
name="net.harawata.mybatipse.feature.feature.group"/>
<repository
url="http://dl.bintray.com/harawata/eclipse"/>
</setupTask>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With