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:

  1. check in osgi console if core module bundle correctly
  2. chceck core module exported packages in osgi console
  3. check export-package: entry in core module manifest.mf file
  4. check version of core module bundle installed (rise project version , install again)

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -