Monday, May 17, 2010

Having a hard time with p2.data.area

I knew it won't be easy, but I guess it shouldnt be that hard to set up p2 updates for my app. I spend 2 and a half days now on it and its still not working ( apart from some issues that I hope to get help from the p2 dev team). One thing that took me hours to find was that I had set the osgi.configuration.area to the user.home directory. pde build adds then a line p2.data.area=@config/../p2 to the config.ini. That makes the platform not see the preferences generated from the p2.inf and therefore it didn't see my repositories. I really didn't see this for hours of failing.

4 comments:

Anonymous said...

Hi. I have exactly the same problem with p2 with osgi.configuration.area set to user.home, even if you try to manually modify config.ini, after an p2 update the .ini file is re-generated with the infamous p2.dat.area=@config/../p2. Will appreciate any help on this. Javier

Anonymous said...

Hi. I have exactly the same problem with p2 with osgi.configuration.area set to user.home, even if you try to manually modify config.ini, after an p2 update the .ini file is re-generated with the infamous p2.dat.area=@config/../p2. Will appreciate any help on this. Javier

Thomas Kratz said...

I did not solve this. I re-positioned osgi config to installation home to make it work

Javier Roca said...

Thomas:
It seems this is not going to be solved any soon ... http://wiki.eclipse.org/Multi-User_Proposal_For_p2

Also check this https://bugs.eclipse.org/bugs/show_bug.cgi?id=185826

"...currently the agent expects the exe and the configuration to be co-located.
This will turn out to be a problem for folks, for example on Linux where the
exes have to be some place and the config information cannot be in that same
location..."

Will let you know if I found a working solution...

Regards,

Using Mapstruct with Protobuf3