Twitter github

p2 and the Unsigned Dialog Prompt

Every wanted to make this unsigned prompt dialog go away when you’re installing things into Eclipse?

Well, the best way to get rid of this dialog is to actually sign your JARs like most mature projects do. At first I didn’t think it was possible to remove this dialog without signing your JARs, however, after working with a colleague I discovered the eclipse.p2.unsignedPolicy system property (you learn something new everyday, right?). For example, if you didn’t want this dialog to appear, you can set -Declipse.p2.unsignedPolicy=allow when your Eclipse-based application starts up. The valid values for eclipse.p2.unsignedPolicy are:

  • prompt – user is prompted for confirmation when installing unsigned content (default value)
  • fail – installing unsigned software is never allowed and the install will fail
  • allow – installing unsigned software is always allowed and the user is never prompted (3.4 – 3.5 behavior)

If you’re interested in the original bug report, check it out here.

  • chris,
    believe it or not – today I thought 'its too late for helios to wish I could configure to avoid the Unsigned Dialog Prompt' – and its already there 😉

    thx for pointing at this

  • That's good to hear Ekke!

    Responses like yours always motivate me to spend the 15 or so minute to come up with a blog entry when I learn something new. In the end, it helps everyone in the end when we help disseminate knowledge throughout the community.

  • Suganya

    Thank you so much, it helped me a lot. I thought I'm going to end up is signing the jars, luckily I came across your blog. Keep the good work.