2 Replies Latest reply on Nov 9, 2016 8:37 AM by mylos78

    Dependency to use AbstractJavaEECommand

    mylos78

      Hi all!

      I need to extend the org.jboss.forge.addon.javaee.ui.AbstractJavaEECommand to create a custom Forge 3.X Add-On.

      I've added to my pom.xml the following dependency, still it fails to compile:

      <dependency>
        <groupId>org.jboss.forge.addon</groupId>
        <artifactId>javaee</artifactId>
        <classifier>forge-addon</classifier>
        <version>${version}</version>
      </dependency>

       

      Any help?

      Thanks

        • 1. Re: Dependency to use AbstractJavaEECommand
          gastaldi

          Hi Mylos,

           

          That class is intended to be used only for classes in the javaee/impl project, that's why it is not visible for other projects. What do you need in it that can't be solved by extending from AbstractProjectCommand?

           

          Best regards,

           

          George Gastaldi

          • 2. Re: Dependency to use AbstractJavaEECommand
            mylos78

            Thanks George,

            my question is a follow-up to my former thread Developing a simple Add-on

            However I've just followed your advice and checked the method getSelectedProject is also available by extending extending from AbstractProjectCommand

            ServletFacet<?> servletFacet = getSelectedProject(context).getFacet(ServletFacet.class);
            

            So good, thanks for the clarification!

            Mylos