1 Reply Latest reply on Apr 4, 2013 1:56 AM by Erik Jan de Wit

    Help: Errai Cordova Plugin Setup

    Charles Odili Apprentice

      The blog article here http://errai-blog.blogspot.com/2013/03/maven-cordova-plugin.html talks about a new errai-cordova plugin for maven that should simplify development of errai based html5 mobile apps. Am new to maven as well as cordova so I need some help. I want to test out with a app that will consume a jax-rs service exposed by a third party web app thus I started with the errai jax-rs maven skeleton from here : https://docs.jboss.org/author/display/ERRAI/Errai+JAX-RS+Maven+Archetype


      The blog article I pointed to requires that I add some markup to the projects pom, and thats where the issue (for a maven newbie) is. where in the pom file do I add the markup, tried before and the project no longer compiled. Here's a copy of the pom.xml file http://fpaste.org/LZ0B/


      Am also having trouble, using other API's jars that are not managed with maven in the same project. the jars are added to the projects build path (eclipse) and eclipse offers code assist for them, but I get class-not-found errors when I do mvn clean package

        • 1. Re: Help: Errai Cordova Plugin Setup
          Erik Jan de Wit Novice

          Hi Charles,


          I can understand the confusion our poms are not simple. You can add the plugin under the build section of your pom:


          499: <build>

          500:    <outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>


          502:      <plugins>


          <!-- insert the plugin here -->

















          Hope this helps


          Erik Jan