2 Replies Latest reply on Oct 22, 2009 11:17 PM by sboscarine

    Getting started with Weld for Maven Users?

    sboscarine

      Hello,
      I am interested in testing out Weld for our next project.  I am a longtime maven user and was wondering if there's a simpler procedure to getting started than using Ant to call Maven.


      (From http://docs.jboss.org/webbeans/reference/current/en-US/html/ri.html)



      Then, you can install the update. The update script will use Maven to download the Web Beans and EJB3 automatically.


      Would you be interested in simplifying the startup procedure so they can simply be run from maven? 


      Spring did that for their WebFlow examples and it made a huge difference in persuading my team to adopt their product. 


      For example,





      svn co http://anonsvn.jboss.org/repos/weld/examples/trunk weld-examples
      cd weld-examples
      mvn clean install
      


      ...fails throwing...



      Reason: Cannot find parent: org.jboss.weld:weld-version-matrix for project: org.jboss.weld.examples:weld-examples-parent:pom:1.0.0-SNAPSHOT for project org.jboss.weld.examples:weld-examples-parent:pom:1.0.0-SNAPSHOT


      I didn't see weld-examples-parent in the repo.  If you were willing to publish it to your repo (mvn deploy), I think that could fix this error and make getting started much easier for new users.


      I think that having Weld be easy to get started with will help drive adoption significantly.  If I can help in any way, especially with the maven stuff, please let me know.


      Thanks,


      Steven




        • 1. Re: Getting started with Weld for Maven Users?
          pmuir

          Steven Boscarine wrote on Oct 10, 2009 15:04:


          Hello,
          I am interested in testing out Weld for our next project.  I am a longtime maven user and was wondering if there's a simpler procedure to getting started than using Ant to call Maven.

          (From http://docs.jboss.org/webbeans/reference/current/en-US/html/ri.html)

          Then, you can install the update. The update script will use Maven to download the Web Beans and EJB3 automatically.


          Would you be interested in simplifying the startup procedure so they can simply be run from maven?


          Sure, if you want to convert this script to Maven, it would be good. Even just converting this to use antrun would be a start ;-)


          svn co http://anonsvn.jboss.org/repos/weld/examples/trunk weld-examples
          cd weld-examples
          mvn clean install
          


          ...fails throwing...

          Reason: Cannot find parent: org.jboss.weld:weld-version-matrix for project: org.jboss.weld.examples:weld-examples-parent:pom:1.0.0-SNAPSHOT for project org.jboss.weld.examples:weld-examples-parent:pom:1.0.0-SNAPSHOT


          I didn't see weld-examples-parent in the repo.  If you were willing to publish it to your repo (mvn deploy), I think that could fix this error and make getting started much easier for new users.

          I think that having Weld be easy to get started with will help drive adoption significantly.



          This is a temporary failure due to name changes and changing the repo in use (see http://oss.sonatype.org/content/groups/jboss/org/jboss/weld/ for the new artifacts)- I don't believe the examples have been updated to the new name and new repo yet. This will be fixed early next week, in time for our next release.


          Again, we are still using ant scripts to provide jboss deployment, due to missing features in the JBoss Maven plugin. If you want to help here, adding exploded deployment features to this plugin would be great! At this point, the maven plugin would be enough to support the deployment requirements for the examples. And of course, converting the examples to use antrun would also be a good thing to do.


          For both of the above enhancements, create a JIRA issue and attach a patch :-)

          • 2. Re: Getting started with Weld for Maven Users?
            sboscarine

            I tried your lastest release and the maven functionality is working great. 


            Thanks!