-
1. Re: Errai Forge Plugin
mbarkley Mar 19, 2014 4:59 PM (in response to jdestef)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.
-
-
3. Re: Errai Forge Plugin
mbarkley Mar 21, 2014 4:27 PM (in response to joyalexandre)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 Mar 24, 2014 10:11 AM (in response to mbarkley)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/ .
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.
-
-
6. Re: Errai Forge Plugin
mbarkley Mar 24, 2014 11:16 AM (in response to joyalexandre)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 Mar 24, 2014 1:17 PM (in response to mbarkley)Here they are.
-
reports.zip 47.1 KB
-
-
8. Re: Errai Forge Plugin
mbarkley Mar 24, 2014 2:10 PM (in response to joyalexandre)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 Mar 24, 2014 3:26 PM (in response to mbarkley)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 Mar 24, 2014 4:21 PM (in response to joyalexandre)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 Mar 24, 2014 6:02 PM (in response to mbarkley)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 Mar 25, 2014 10:32 AM (in response to joyalexandre)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 seeerrai-setup
.
- Run
-
13. Re: Errai Forge Plugin
joyalexandre Mar 26, 2014 1:25 PM (in response to mbarkley)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 Mar 27, 2014 10:44 AM (in response to joyalexandre)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