1 Reply Latest reply: Feb 9, 2012 6:54 AM by Iurii Luzan RSS

    How to get access to customized classes and beans from web module in plugin module?

    Iurii Luzan

      How I can get access to java classes and spring beans from my customized jive in my plugin?

       

      Something like: MyBean my_bean=(MyBean) JiveApplication.getContext().getSpringBean("myBean");

       

      Help please.

        • Re: How to get access to new customized spring beans / java classes from plugin?
          Iurii Luzan

          While compiling project i got this error:

           

          [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project dinnerlist: Compilation failure: Compilation failure:

          [ERROR] \java\projects\Olympic\dinnerlist\src\main\java\com\anrom\olympic\plugin\dinner\DinnerWidget.java:[3,47] package com.anrom.jive.olympic.server.dinner.dao does not exist

          [ERROR] \java\projects\Olympic\dinnerlist\src\main\java\com\anrom\olympic\plugin\dinner\DinnerWidget.java:[100,8] cannot find symbol

          [ERROR] symbol  : class OlympicDinnerDAO

          [ERROR] location: class com.anrom.olympic.plugin.dinner.DinnerWidget

          [ERROR] -> [Help 1]

          org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project dinnerlist: Compilation failure

           

           

          In top pom.xml i have multi-modules defination:

              <modules>

                  <module>web</module>

                  <module>dinnerlist</module>

              </modules>

           

          How i can create dependency in plugin's pom.xml to web?