Community
Participate
Working Groups
Steps to reproduce: 1. Create new JPA project with OSGi facet. 2. Add a JPA Entity. 3. Export the bundle using Export > Deployable plug-ins and feature. 4. Open the exported JAR file - the JPA entity's class is missing. The reason for this is that the build.properties file is incorrectly generated. It contains only this line: bin.includes = META-INF/ while it should contain something like: bin.includes = ., META-INF/ source.. = src/ output.. = build/classes/
Patch is proposed here: https://github.com/asilgidjian/libra/commit/8a7d9baa5381a76201c56b02a8df70f2948cd1a0 I wrote all this code and have the rights to contribute it to Eclipse under the eclipse.org web site terms of use.
Alex, thanks for the patch and the test. Your changes are not only valid for Persistent Bundles, but also for plain OSGI Bundles. Therefore, I change the patch to cover the latter case too. Patch is committed to the indigo branch: http://git.eclipse.org/c/libra/org.eclipse.libra.git/commit/?h=indigo&id=8c0ee3537a8f1d57403c486189e8039ddae33c14 and merged to the master branch: http://git.eclipse.org/c/libra/org.eclipse.libra.git/commit/?id=5b0d74234376f62e729f5f030cea97b922595aae
Verified with the latest build from http://download.eclipse.org/libra/maintenance/snapshot/