java - Only a type can be imported. MyClass resolves to a package -
i have maven project multiple modules. root pom.xml has these modules.
<modules> <module>core</module> <module>ui.apps</module> <module>ui.content</module> </modules>
each 1 of these modules has own pom.xml
i have myclass.java
under core @ core/src/main/java/org/demo/mine/myclass.java
when try import in mycomponent.java
under ui.apps
@ ui.apps/src/main/content/jcr_root/apps/mine/components/content/mycomponent/mycomponent.java
following error
only type can imported. org.demo.mine.myclass resolves package
i clean build , install using mvn clean install -pautoinstallpackage
only type can imported. org.demo.mine.myclass resolves package
means org.demo.mine.myclass
can not found. didn't exported org.demo.mine
core module. investigate problem:
- check in osgi console if core module bundle correctly
- chceck core module exported packages in osgi console
- check
export-package:
entry in core module manifest.mf file - check version of core module bundle installed (rise project version , install again)
Comments
Post a Comment