Jahia in English > Intellij idea cannot...

0 (0 Good)
0 (0 Bad)

Intellij idea cannot resolve maven dependencies

by  chandandatta »  2014/10/09 06:08

I am trying to compile a maven 3 module generated from the Jahia 7 Studio in IntelliJ 13. IntelliJ keeps showing unresolved dependencies with the below configs (The package is not exported by the bundle dependencies)

https://drive.google.com/file/d/0B0NJuNGnNU9yUU5rSEt3NU84RlE/view?usp=sharing

 

  (chandandatta)

Number of messages  4
Registration date
0 (0 Good)
0 (0 Bad)

Re: Intellij idea cannot resolve maven dependencies

by  chandandatta »  2014/10/09 23:29

I am trying to compile a maven 3 module generated from the Jahia 7 Studio in IntelliJ 13. IntelliJ keeps showing unresolved dependencies with the below configs (The package is not exported by the bundle dependencies)

https://drive.google.com/file/d/0B0NJuNGnNU9yUU5rSEt3NU84RlE/view?usp=sharing

 

Related error

 

http://stackoverflow.com/questions/25284970/how-to-avoid-the-package-is-not-exported-by-the-bundle-dependencies-error-in-i

http://stackoverflow.com/questions/11454822/import-maven-dependencies-in-intellij-idea

 

  (chandandatta)

Number of messages  4
Registration date
0 (0 Good)
0 (0 Bad)

Re: Re: Intellij idea cannot resolve maven dependencies

by  faissah »  2014/10/16 20:20

Have you tried compiling with the command line (mvn clean install)? And then reimporting the maven dependencies in IntelliJ?

Regards

Fabrice  (faissah)

Number of messages  262
Registration date
0 (0 Good)
0 (0 Bad)

Re: Re: Re: Intellij idea cannot resolve maven dependencies

by  chandandatta »  2014/10/16 23:41

Have you tried compiling with the command line (mvn clean install)? And then reimporting the maven dependencies in IntelliJ?

Regards

 

Thanks. I did a full clean-up and started again, but the errors did not go:

  • Closed project window (and IntelliJ) and removed all *.iml files and all .idea folders
  • Ran mvn clean install from the command line
  • Re-imported the project into IntelliJ

 

  (chandandatta)

Number of messages  4
Registration date
0 (0 Good)
0 (0 Bad)

Re: Intellij idea cannot resolve maven dependencies

by  shuber »  2014/10/17 06:02

 

I am trying to compile a maven 3 module generated from the Jahia 7 Studio in IntelliJ 13. IntelliJ keeps showing unresolved dependencies with the below configs (The package is not exported by the bundle dependencies)

https://drive.google.com/file/d/0B0NJuNGnNU9yUU5rSEt3NU84RlE/view?usp=sharing

 

This is actually due to a limitation in the OSGi OsMorc plugin. In our Jahia project we dynamically generate the list of Import-Package statements using a plugin, and OsMorc has no way of resolving this. Because of this I recommend that you simply disable the inspection. This is not an error in your project just a limitation of the inspection.

Best regards,

  Serge Huber.

 

 

Serge Huber (shuber)

Number of messages  271
Registration date
Contact
Share
Feedback

Get in touch

Whether you are a current user or if you are just evaluating Jahia, we are here to help.

Contact us

Share this page