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

 

  • Intellij idea cannot resolve maven dependencies
    2014/10/09 06:08

    chandandatta <p>I am trying to compile a maven 3 module generated from the Jahia 7 Studio in IntelliJ 13.&nbsp;IntelliJ keeps showing unresolved dependencies with the below configs (The package is not exported by the bundle dependencies)</p> <p><a href="https://drive.google.com/file/d/0B0NJuNGnNU9yUU5rSEt3NU84RlE/view?usp=sharing" title="Maven deps errors">https://drive.google.com/file/d/0B0NJuNGnNU9yUU5rSEt3NU84RlE/view?usp=sharing</a></p> <p>&nbsp;</p>

  • Number of messages  4
    Registration date Oct 9, 2014
    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

     

  • Re: Intellij idea cannot resolve maven dependencies
    2014/10/09 23:29

    chandandatta <blockquote> <p>I am trying to compile a maven 3 module generated from the Jahia 7 Studio in IntelliJ 13.&nbsp;IntelliJ keeps showing unresolved dependencies with the below configs (The package is not exported by the bundle dependencies)</p> <p><a href="https://drive.google.com/file/d/0B0NJuNGnNU9yUU5rSEt3NU84RlE/view?usp=sharing" title="Maven deps errors">https://drive.google.com/file/d/0B0NJuNGnNU9yUU5rSEt3NU84RlE/view?usp=sharing</a></p> <p>&nbsp;</p> </blockquote> <p>Related error</p> <p>&nbsp;</p> <p><a href="http://stackoverflow.com/questions/25284970/how-to-avoid-the-package-is-not-exported-by-the-bundle-dependencies-error-in-i">http://stackoverflow.com/questions/25284970/how-to-avoid-the-package-is-not-exported-by-the-bundle-dependencies-error-in-i</a></p> <p><a href="http://stackoverflow.com/questions/11454822/import-maven-dependencies-in-intellij-idea">http://stackoverflow.com/questions/11454822/import-maven-dependencies-in-intellij-idea</a></p> <p>&nbsp;</p>

  • Number of messages  4
    Registration date Oct 9, 2014
    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  264
    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

     

  • Re: Re: Re: Intellij idea cannot resolve maven dependencies
    2014/10/16 23:41

    chandandatta <blockquote> <p>Have you tried compiling with the command line (mvn clean install)? And then reimporting the maven dependencies in IntelliJ?</p> <p>Regards</p> </blockquote> <p>&nbsp;</p> <p>Thanks.&nbsp;I did a&nbsp;<a href="http://stackoverflow.com/questions/11454822/import-maven-dependencies-in-intellij-idea" target="_blank">full clean-up&nbsp;</a>and started again, but the errors did not go:</p> <ul> <li>Closed project window (and IntelliJ) and removed all *.iml files and all .idea folders</li> <li>Ran mvn clean install from the command line</li> <li>Re-imported the project into IntelliJ</li> </ul> <p>&nbsp;</p>

  • Number of messages  4
    Registration date Oct 16, 2014
    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