1 2 Previous Next 16 Replies Latest reply on Apr 2, 2014 4:17 PM by mbarkley

    Errai Forge Plugin

    jdestef

      Hi,

       

      I've been looking for some command line documentation for the new Errai Forge plugin. Does that exist?

       

       

      Thanks

        • 1. Re: Errai Forge Plugin
          mbarkley

          Hi John,

           

          You can find command line documentation here. It won't work with the released version of the plugin (2.0.0.Beta1) because of a critical bug with the CLI interface, so you will have to clone and build the plugin yourself.

           

          Cheers.

          • 2. Re: Errai Forge Plugin
            joyalexandre

            Is the bug you're talking about is related with my problem here (see the snapshot)?

             

            It seems to not recognize the errai-setup command when I follow the shell tutorial.

            errai-forge-problem-shell.png

            In Eclipse I got these notification and I don't know what is the problem.

            errai-forge-in-eclipse.png

            • 3. Re: Errai Forge Plugin
              mbarkley

              Hi Alex,

               

              So you're screenshots have two different issues:

              • In your first screenshot you installed version 2.0.0.Beta1 of the Errai addon. The CLI tutorial must be used with 2.0.0-SNAPSHOT because many of the command names were changed to make them compatible with the CLI.
              • In your second example installation fails because we don't publish SNAPSHOTS for the Errai Addon. See the instructions here in the tutorial on how to clone and build the plugin yourself. You will need to do this before attempting to install the addon with forge.

               

              Cheers.

              • 4. Re: Errai Forge Plugin
                joyalexandre

                I understand, in the first picture I tried with the 2.0.0-SNAPSHOT, but its not on the Maven repository only the 2.0.0.Beta1 is there. Take a look: http://central.maven.org/maven2/org/jboss/errai/forge/errai-forge-addon/ .

                Capture.PNG

                 

                I also tried to build the 2.0.0-SNAPSHOT by myself, but it failed in the process (see snapshot). It seems to fail in the tests phase.

                Capture2.PNG

                • 5. Re: Errai Forge Plugin
                  joyalexandre

                  I also noticed that the Eclipse Plugin is using the 1.4.4.Final version of Forge if that's of any help. I installed manually the 2.1.1.Final in another folder as you've seen in the previous snapshots.

                   

                  Capture3.PNG

                  • 6. Re: Errai Forge Plugin
                    mbarkley
                    I also tried to build the 2.0.0-SNAPSHOT by myself, but it failed in the process (see snapshot). It seems to fail in the tests phase.

                    Yikes! I'm unable to reproduce the test failure on my machine. I'd like to look into this. Could please post the surefire-reports for the failing tests (in "forge-errai/target/surefire-reports" after running the tests).

                     

                    Thanks.

                    • 7. Re: Re: Errai Forge Plugin
                      joyalexandre

                      Here they are.

                      • 8. Re: Errai Forge Plugin
                        mbarkley

                        So the tests are failing because of a missing transitive dependency that should be present from errai-tools in version 3.0-SNAPSHOT (of Errai). I'm not sure how this could happen, since that dependency is still present in errai-tools on the master branch.

                         

                        Could you try deleting errai-tools from your maven respository and building the addon again? There could be something wrong with your local copy of errai-tools that's causing this error.

                        • 9. Re: Errai Forge Plugin
                          joyalexandre

                          I'm taking the code from this repository is it the right one?

                          git clone https://github.com/errai/forge-errai.git

                          cd forge-errai

                          mvn clean install

                           

                          It's still failing on my Windows and Linux computers. Even after completly deleting the jboss and Errai stuffs in the maven repository.

                          • 10. Re: Errai Forge Plugin
                            mbarkley

                            I'm taking the code from this repository is it the right one?

                            git clone https://github.com/errai/forge-errai.git

                            That's the right repository.

                             

                            My only other suggestion for the moment would be to try installing the addon without running the tests (mvn clean install -DskipTests=true). Barring that, we will be releasing a milestone of Errai soon and a new version of the Forge addon to accompany it.

                            • 11. Re: Errai Forge Plugin
                              joyalexandre

                              Thanks it worked by disabling the tests. But I still have the error "***ERROR*** No such command: errai-setup" when I execute this command "errai-setup --versionSelect 3.0-SNAPSHOT --logicalModuleName org.jboss.errai.demo.App --moduleName app" in Forge.

                               

                              Do I need to execute a particular command after "mvn clean install -DskipTests=true" to access the errai-setup in Forge?

                              • 12. Re: Errai Forge Plugin
                                mbarkley

                                Hmm, here are a couple things you could try to help figure out what's going on:

                                • Run addon-list in Forge and see if the correct artifact name and version for the Errai Addon in the list (org.jboss.errai.forge:errai-forge-addon,2.0.0-SNAPSHOT).
                                • Run command-list in Forge and see if any Errai commands are listed. If you have the correct version you will see errai-setup.
                                • 13. Re: Errai Forge Plugin
                                  joyalexandre

                                  I ran addon-list in Forge and found this entry:

                                  org.jboss.errai.forge:errai-forge-addon,2.0.0.Beta1

                                   

                                  It seems that even if mvn clean install succeeded, it didn't the errai-forge-addon.2.0.0-SNAPSHOT

                                   

                                  The available commands are:

                                  Project/Errai > add-errai-features - Add the necessary configurations for using Errai features in a Maven project.                    
                                  Project/Errai > remove-errai-features - Remove Errai features that have been configured with the 'Add Errai Features' command.        

                                  Project/Errai > setup-errai-in-project - Setup base configuration for developing a GWT/Errai Application.  

                                   

                                  What can I do to change it?

                                  • 14. Re: Errai Forge Plugin
                                    mbarkley

                                    I have some good news for you: we released a new milestone of Errai on Tuesday and the Errai Forge Addon is part of that release. We've decided that it makes more sense to have the addon as part of the main project using the same version as the rest of Errai, so the newest published version of the plugin (that works on the comand line) has this version: 3.0.0.20140325-M5

                                    1 2 Previous Next