W dniu sobota, 25 października 2014 15:51:10 UTC+2 użytkownik Christian Goudreau napisał:
Sorry guys, I've got 2 guava jars! The other one was from deep buried dependency in other project.
But now I've got real problem:
I've got two separate gwt modules app and app2
In app there is ApplicationPresenter, and in app2 is Application2Presenter
When maven compiles App it can't find Application2Presenter, but it doesn't need it!
How to separate this modules?
[INFO] Compiling module
pl.test.gwt.App[INFO] Computing all possible rebind results for 'com.gwtplatform.mvp.client.DesktopGinjector'
[INFO] Rebinding com.gwtplatform.mvp.client.DesktopGinjector
[INFO] Invoking generator com.google.gwt.inject.rebind.GinjectorGenerator
[INFO] [ERROR] Error injecting pl.test.gwt.app2.Application2Presenter$MyView: Unable to create or inherit binding: No @Inject or default constructor
found for pl.test.gwt.app2.Application2Presenter$MyView
[INFO] Path to required node:
[INFO]
[INFO] com.google.gwt.inject.client.AsyncProvider<pl.test.gwt.app2.Application2Presenter> [com.gwtplatform.mvp.client.ClientGinjector#getpltestgwtapp2Applicatio
n2Presenter()]
[INFO] -> pl.test.gwt.app2.Application2Presenter [Implicit injection of com.google.gwt.inject.client.AsyncProvider<pl.test.gwt.app2.Application2Presenter>]
[INFO] -> pl.test.gwt.app2.Application2Presenter$MyView [@Inject constructor of pl.test.gwt.app2.Application2Presenter]
[INFO]
[INFO] [ERROR] Errors in 'gen/com/gwtplatform/mvp/client/DesktopGinjectorProvider.java'
[INFO] [ERROR] Line 8: Failed to resolve 'com.gwtplatform.mvp.client.DesktopGinjector' via deferred binding
[INFO] Computing all possible rebind results for 'com.gwtplatform.mvp.client.TabletGinjector'
[INFO] Rebinding com.gwtplatform.mvp.client.TabletGinjector
[INFO] Invoking generator com.google.gwt.inject.rebind.GinjectorGenerator
[INFO] [ERROR] Error injecting pl.test.gwt.app2.Application2Presenter$MyView: Unable to create or inherit binding: No @Inject or default constructor
found for pl.test.gwt.app2.Application2Presenter$MyView
[INFO] Path to required node:
[INFO]
[INFO] com.google.gwt.inject.client.AsyncProvider<pl.test.gwt.app2.Application2Presenter> [com.gwtplatform.mvp.client.ClientGinjector#getpltestgwtapp2Applicatio
n2Presenter()]
[INFO] -> pl.test.gwt.app2.Application2Presenter [Implicit injection of com.google.gwt.inject.client.AsyncProvider<pl.test.gwt.app2.Application2Presenter>]
[INFO] -> pl.test.gwt.app2.Application2Presenter$MyView [@Inject constructor of pl.test.gwt.app2.Application2Presenter]
[INFO]
[INFO] [ERROR] Errors in 'gen/com/gwtplatform/mvp/client/TabletGinjectorProvider.java'
[INFO] [ERROR] Line 8: Failed to resolve 'com.gwtplatform.mvp.client.TabletGinjector' via deferred binding
[INFO] Computing all possible rebind results for 'com.gwtplatform.mvp.client.MobileGinjector'
[INFO] Rebinding com.gwtplatform.mvp.client.MobileGinjector
[INFO] Invoking generator com.google.gwt.inject.rebind.GinjectorGenerator
[INFO] [ERROR] Error injecting pl.test.gwt.app2.Application2Presenter$MyView: Unable to create or inherit binding: No @Inject or default constructor
found for pl.test.gwt.app2.Application2Presenter$MyView
[INFO] Path to required node:
[INFO]
[INFO] com.google.gwt.inject.client.AsyncProvider<pl.test.gwt.app2.Application2Presenter> [com.gwtplatform.mvp.client.ClientGinjector#getpltestgwtapp2Applicatio
n2Presenter()]