Before I found the answer that is described here and accepted, I tried and could not solve this problem in the following ways:
I tried to put a function in the product definition. This will install this feature successfully, but it removes my ability to update it independently of the other features of the RCP application.
I have a p2 touchpoint command that currently works. It adds the repository to the available update sites in the RCP application using the p2.inf file. It looks like this...
instructions.configure=\ org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(location:http${#58}//myUpdateSsite/myFeature,type:0,name:My Feature Name,enabled:true);\ org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(location:http${#58}//myUpdateSsite/myFeature,type:1,name:My Feature Name,enabled:true);\\
I tried adding a line like this to install this function, but my tycho command does not work when I run mvn clean install
instructions.configure=\ org.eclipse.equinox.p2.touchpoint.eclipse.installFeature(feature:My Feature Name,featureId:com.my.domain.my.feature.id,version:1.0.0);
Here is some error message from maven / tycho
An error occurred while configuring the installed items session context was: (profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Configure, operand=null --> [R]{my.domain.my.rcp.product.plugin 1.1.6.20120427-1346}, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallFeatureAction). Installable unit contains no artifacts: [R]my.domain.my.rcp.product.plugin 1.1.6.20120427-1346.
My intuition tells me that this error message says that my RCP application plugin is missing what p2 will tell where to find the function that I want to install during the build. I think???
source share