[英]Can DataNucleus Enhancer process classes that are in jar on a classpath?
Google App Engine Java項目“ A”基於另一個Google App Engine Java“ B”中的大部分類,但並非全部。
為此,所有來自項目“ B”的類都將作為具有源代碼的Jar導出為Jar,該源代碼包含在項目“ A”的類路徑中,其中包括幾個@Entity類。
在本地調試模式下運行項目“ A”時,我得到
java.lang.RuntimeException: Class UserAccount for query has not been resolved. Check the query and any imports specification
at biz.daich.gwt.common.app.server.domain.services.UserAccountService.findOrCreateUserAccountByPrimaryEmail(UserAccountService.java:123)
at biz.daich.gwt.common.app.server.domain.services.UserAccountService.getCurrentLogIn(UserAccountService.java:312)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)......
這是有道理的,因為DataNucleus Enhancer沒有增強UserAccount類,因為它不在增強文件列表中。
我如何配置Google Plugin / Google App Engine / DataNucleus Enhancer來對這些類進行字節碼增強,就像我在Eclipse Project Properties-> Google-> App Engine-> ORM中按模式選擇的類所做的那樣?
可以這樣做嗎?
If YES: How to define a pattern?
If NO: How can I link few classes from another project, not even a whole package, in to the source tree of this project that will do the trick?
無法用新的字節碼更新jar中的類; 除了解除他們的煩惱,增強他們並重新引起他們的注意。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.