Errai: The browser as a platform

Wednesday, March 20, 2013

Maven Cordova Plugin

As you may already know, we are also focusing on making mobile applications with Errai. We have something that will make your life really easy. Inspired by the Cordova CLI, we have created something similar that is Maven based.

How does it work

You want to create a Cordova based Errai project, then all you have to do is add this plugin to your maven build. The plugin will create a config.xml in your project folder. In this configuration file you can set settings, like icon and application name. After that, performing a build will copy the generated web files into the Cordova platforms and these will get built.
Now you have integrated mobile platform builds into your regular release cycle. You can run the simulator with the generated binaries all out of your maven project.

Installation

Create an Errai project with one of the archetypes and add the following to your pom Now when you perform a maven install your Android and iOS projects also get built. To see the result of that in the simulator, you just use a simple maven command:
mvn cordova:emulator -Dplatform=android
This will start the Android emulator for your project.
It's still work in progress, but if you want to become an early adopter, just put this repo in your pom and you are ready to go Let me know what you think of it and what kind of features you would like to see in there.

8 comments:

  1. Hi,
    I would like to try it today but after following these steps I get this error message:
    [INFO]
    [INFO] --- cordova-maven-plugin:1.0-SNAPSHOT:emulator (default-cli) @ bbuster ---
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 1.611s
    [INFO] Finished at: Wed May 01 11:49:43 CEST 2013
    [INFO] Final Memory: 8M/112M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.jboss.errai:cordova-maven-plugin:1.0-SNAPSHOT:emulator (default-cli) on project bbuster: Execution default-cli of goal org.jboss.errai:cordova-maven-plugin:1.0-SNAPSHOT:emulator failed: The directory /home/boo/projects/errai/bbuster/target/template/platforms/android/cordova does not exist -> [Help 1]
    [ERROR]

    ReplyDelete
  2. I'm very happy being Herpes free now. It was a sad incident that was announced to me after the check up in the hospital and I was diagnosed of HSV 2. I thank God now for using Dr.odey Abang to cure my virus. I'm not ashamed to say this because no virus of such can be detected in me. I'm Charlotte from Columbia. I thought about it many Times when I heard about this Herbal cures for Herpes. I was really happy when I came across blogs of comments of Doctors who run cures sicknesses and was comfortable to try Dr. Abang from patients testimony I came across here on my online page. I knew now they are real Africa herbalists who run cures for Herpes. There's every opportunity to be cure with natural herbs, because all medical prescriptions are derived from herbs and roots. Its really hard time living with Herpes on drugs which can't get you cure. I tried this and I can boost of myself now as a woman. I need to be loved not to lost, get your instant cure to all sicknesses from Dr, Odey Abang.
    He cures HSV,HPV,Cancer,low spam count and much more from the evidence I saw 💯 % sure no site effects with active immune booster

    Email him for you cure
    Odeyabangherbalhome@gmail.com
    WhatsApp/calls
    +2349015049094

    ReplyDelete
  3. Nothing is not possible in this word.
    Herpes I cried out for 8moths had a cure and was making use of the Medication that never wanted a life living on drugs, I applied Antibiotics, he prescribed for me the acyclovir(Zovirax), famciclovir (Famvir), andvalacyclovir (Valtrex).
    They never get me cured.
    My God keep blessing you and your Family. Dr
    ODEY ABANG, your a powerful Herbalist fir your work in my life
    I wish you know how I feel inside me when I was making use of does tablets that never could there get me cured. I had to search about some of my favourite blogs when I thought about Dr Odey abang from the testimonies of patients and I remember a friend who told me I should try Dr. Odey Abang herbal medicine. He told me the man can cure me,but was shy and feel its dirty taking in herbs made with African herbalists.
    You need to know I would have been cured before now since I knew him then, but still interested in letting you that was my punishment.
    Thanks reading my article, feel good and not make my mistake, I love testimonies and explanations of the new beginning is all I hope for
    Think about your live and use herbs to get you cured of your challenge on
    HIV/Aids
    SYPHILIS
    DIABETES
    CANCER
    ALL CAN BE CURED WITH MANY OTHERS BY DR. ODEY ABANG
    His email is for you so you speak to him

    Odeyabangherbalhome@gmail.com
    WhatsApp number +2349015049094

    ReplyDelete
  4. Its a pleasure for me to write this testimony about how i got my Diabetes type 1 cured a month ago. i have been reading so many comments of some people who were cured from various diseases by dr ovia but i never believed them. I was hurt and depressed so I was too curious and wanted to try DR. Ovia then i contacted him through his email when i contact him, he assured me 100% that he will heal me, i pleaded with him to help me out. My treatment was a great success, he healed me just as he promised. he sent me his medication and ask me to go for check up after 2 weeks of taking the medication. i agreed with him i took this medication and went for check up , to my greatest surprise my result was negative after the treatment, i am really happy that i am cured and healthy again. I have waited for 7days to be very sure i was completely healed before writing this testimony. I did another  test one week ago and it was still negative. so i guess its time i recommend anyone going through diabetes Herpes HSV-1 or HSV-2, HIV, HPV, Hepatitis B,Cancer reach him through his ig link @droviaherbalhome or on whatsapp +2348117923986 his emails address droviaherbalhome@gmail.com

    ReplyDelete
  5. Is any one here suffering from any kind of STD or STI ? , Now this is to everyone out there with different health challenges, as I know there are still a lot of people suffering from different health issues and are therefore looking for solution. I bring you Good news. There is a man called Dr. Tokubo a herbal practitioner who helped cure me from Genital herpes, this i had suffered from for the past 2years and have spent so much money trying to survive from it. I got my healing by taking the herbal medicine he sent to me to drink for about 9days . 3days after completion of the dosage, I went for a medical checkup and I was tested Genital Herpes NEGATIVE. I'm sharing this so that other people can know of this great healer called Dr Tokubo because I got to know him through a friend he cured from HIV. I was made to understand that he can cure several other deadly diseases and infections. Don't die in ignorance and don't let that illness take your life. Contact Dr. Tokubo through: drtokubotemple@gmail.com You can also call/whatsapp him on:+2349037990322 Thank you dr tokubo. Be kind enough to share your testimonies as you received your cure.he is good too to cure all type of disease and virus.1 HIV cure
    2 cancer
    3 diabetes
    4 hepatitis
    5 herpes.
    You can contact him if you are having any disease or infection problem...

    ReplyDelete
  6. Getting rib of Herpes virus wasn't easy, I came across Dr voodoo on how he
    has cured so many people from herpes and other illness so I decided to give
    him a try, now am permanently cured using the natural herbs medication and
    cleansing supplement sent by Dr voodoo no more herpes, contact Dr voodoo
    WhatsApp number +2348140120719 also e-mail him at:
    voodoospelltemple66@gmail.com

    ReplyDelete
  7. All thanks to Dr Alli for curing my herpes virus/hpv with his herbal medicine, i do not have much to say but with all my life i will forever be grateful to him and God Almighty for using Dr Alli to reach me when i thought it was all over, today i am happy with my life again after the medical doctor have confirmed my HERPES SIMPLEX VIRUS / HPV of 5 is gone,i have never in my life believed that HERPES SIMPLEX VIRUS could be cured by herbal medicine. so i want to use this means to reach other persons who have this disease by testifying the power of Dr Alli that all hope is not lost yet, try and contact him by any means for any kind of disease with his email: ( Allispellhelp1@gmail.com ) or his whatsapp number +2348100772528 and get your healing

    ReplyDelete