title: Generating a p2 repository from a local folder, so that it can be used in a target platform
body: <p>I want to build an RCP application with Maven and Tycho. For this I need to change my target platform which is only a folder in the file-system to a p2 repository.
  To generate the p2 repository I created a new workspace, set the target platform and followed <a href="http://nirmalsasidharan.wordpress.com/2010/10/09/provisioning-your-target-platform-as-local-p2-site/" rel="nofollow">this tutorial</a>.</p>
  
  <p>Eclipse generates a p2 repository for me and all seems fine, but when I want to set this generated p2 repository as target platform in Eclipse it fails. Eclipse says that <code>org.eclipse.swtbot.eclipse.finder</code> requires the package <code>javax.swing.text</code>.
  I searched a bit and found out that <code>javax.swing.text</code> is a part from the JDK, and some people somehow managed to get the JDK into the p2 repository.</p>
  
  <p>How can I to satisfy this dependency and make the target resolution pass?</p>