1 2 Previous Next 24 Replies Latest reply on Feb 3, 2010 5:01 PM by phread.fbricon.gmail.com

    Seam In Action Chapter 2, 3, 4, 5 and 6 "Mavenized" 

    leifoo

      Hello,


      I just want to inform the community about that Know IT Objectnet developers have created a Mavenized Seam project template. The goal was to create a flexible Maven build where it should be easy to switch between databases and appservers, exploded deploy etc.


      During development of the Maven build I have so far Mavenized chapter 2, 3, 4, 5 and 6 in the Seam In Action Book. The code is located here:
      http://code.google.com/p/seam-maven-refimpl/


      Also provided is a getting started guide and guides for integrating the build system with Eclipse and IntelliJ.


      We haven't yet implemented tests in the build system, but as soon as summer vacation is over we will start working on that.


      Regards
      Leif Olsen
      Consultant
      Know IT Objectnet AS
      www.knowit.no

        • 1. Re: Seam In Action Chapter 2, 3, 4, 5 and 6 "Mavenized" 
          cash1981

          Hello Leif.


          Thats great work. Thank you for sharing with the community.

          • 2. Re: Seam In Action Chapter 2, 3, 4, 5 and 6 "Mavenized" 
            mdesignz

            This is great!  Just curious, in the root POM, why not reference the Seam POM as the root rather than including it?

            • 3. Re: Seam In Action Chapter 2, 3, 4, 5 and 6 "Mavenized" 
              kenglxn

              Hi.
              We were using the seam pom as our root in the beginning, but we decided to move away from this design. Mainly due to the issues that can arise due to transient dependencies, and also because of the increased flexibility we gain by not using it.
              You can still use the seam-maven-refimpl project as your template and choose to use seam as your root pom if you wish.


              Regards
              Ken Gullaksen
              Consultant
              Know IT Objectnet AS
              www.knowit.no

              • 4. Re: Seam In Action Chapter 2, 3, 4, 5 and 6 "Mavenized" 
                oscarpica

                Hi,


                That's an interesting setup thanks. I had some problems though using seam-maven-refimpl as a template.


                First, despite your very good tutorial, I found the jboss tools integration very cumbersome and unstable in my installation. That's not a big deal though, since I actually prefer to use the jboss tools on a separate seam-gen generated project and cannibalize its files as needed.


                The testing issue is more of a problem:


                1- I cannot create a testng @Test annotation on eclipse. The testng jar is not even on the classpath in eclipse. If I remember correctly, with non-seam mavenized projects testng is available out of box after importing the project in eclipse. Did you succeed to create a test in eclipse?


                2- If  I try to run the mvn test goal on the command line I got an Exception:



                org.apache.maven.surefire.booter.SurefireExecutionException: javax/servlet/FilterConfig; 
                nested exception is java.lang.NoClassDefFoundError: javax/servlet/FilterConfig
                java.lang.NoClassDefFoundError: javax/servlet/FilterConfig
                
                



                I tried both from the parent directory and the ejb directory. Did you succeed to run mvn test?

                • 5. Re: Seam In Action Chapter 2, 3, 4, 5 and 6 "Mavenized" 
                  oscarpica

                  Just after my post, I think I found the cause of my testing issues.


                  I didn't realize that in the huge parent pom, the missing dependencies where only declared on the dependencyManagement section.

                  • 6. Re: Seam In Action Chapter 2, 3, 4, 5 and 6 "Mavenized" 
                    vguerra.vguerra.uci.cu

                    Hi, I´m from Cuba and I can't get it my friend, the URL say that I don't have permission.


                    Please, if you can share with me that information I'll be grateful.
                    Thanks

                    • 7. Re: Seam In Action Chapter 2, 3, 4, 5 and 6 "Mavenized" 
                      leifoo
                      As I wrote i my initial post, testing is not yet implemented. When summer holidays are over we'll start working on that. Out initial plan is to have the build system production ready late August, as we need the build for a Seam project we're engaged in.

                      I have, as requested, added you as a member to http://groups.google.com/group/know-it_seaminaction and http://code.google.com/p/seam-maven-refimpl/


                      Regards
                      Leif Olsen
                      • 8. Re: Seam In Action Chapter 2, 3, 4, 5 and 6 "Mavenized" 
                        leifoo

                        Vladimir Guerra Miller wrote on Jul 06, 2009 14:27:


                        Hi, I´m from Cuba and I can't get it my friend, the URL say that I don't have permission.

                        Please, if you can share with me that information I'll be grateful.
                        Thanks


                        Can you please try:
                        http://seam-maven-refimpl.googlecode.com/svn/trunk/


                        Note: http not https



                        Regards
                        Leif Olsen

                        • 9. Re: Seam In Action Chapter 2, 3, 4, 5 and 6 "Mavenized" 

                          Hi,


                          I am very interested in this project and I am glad there are more people around looking for a better integration.


                          We have a setup at work where we have mavenized seam projects too. We have a multimodule project.


                          It helped a lot for standardizing the different projects in our department, although we 've lost a lot of IDE features as the combination of maven support and seam support in Eclipse is not yet fully implemented (m2eclipse has been quite unstable for us too). They are working on it.


                          For the moment I am experimenting with IntelliJ. I can add seam facets to our projects and the project will have some seam capabilities. Although in facelets editor he does not recognize our own components. Seam built-in components are recognized.
                          At home I have a seamgen project in IntelliJ and the custom components are picked up in the IDE.


                          Having our own seam components recognized in IntelliJ for maven project would be a major productivity boost.


                          Did anyone in your project encounter the same problem?Someone with a workaround?


                          I have been looking into IntelliJ forum too but sofar I did not find a workaround.


                          Thx,


                          Werner


                          • 10. Re: Seam In Action Chapter 2, 3, 4, 5 and 6 "Mavenized" 
                            kenglxn

                            Hi Werner. I'm also using IDEA, but I'm not having that problem using the seam-maven-refimpl project as a template. I can think of two things that may be of help. First off, set .xhtml to be a jspx file type under ide settings. Second, don't use mvn idea:idea, instead just choose to open project and in the dialog select the root pom of your project, IDEA will do the rest. 

                            • 11. Re: Seam In Action Chapter 2, 3, 4, 5 and 6 "Mavenized" 
                              josdaniel

                              Leif - I would like to thank you for the sample projects based on maven, they have been very useful. Do you folks have any plans on migrating the project dependencies to Seam 2.2.0.GA.

                              • 12. Re: Seam In Action Chapter 2, 3, 4, 5 and 6 "Mavenized" 
                                dan.j.allen

                                Hey thanks! Great work!

                                • 13. Re: Seam In Action Chapter 2, 3, 4, 5 and 6 "Mavenized" 
                                  kenglxn

                                  Hi Joshua.


                                  Implementing 2.2.0 GA is on our agenda.


                                  Our plan is to first reinstate the Seam pom as the parent pom,
                                  then get testing to work properly. After that we will tag the 2.1.2 version and start working on 2.2.0.

                                  • 14. Re: Seam In Action Chapter 2, 3, 4, 5 and 6 "Mavenized" 
                                    allforjava.allforjava.aol.in
                                    Hi Leif,

                                    I dont know what to say about mavenized examples, as I'm new to maven concept and experimenting with it.

                                    However towards SVN checkout at https://seam-maven-refimpl.googlecode.com/svn/trunk is prompting for user id & password. Is it restricted? Can i get it?

                                    The related post is at http://www.seamframework.org/Community/QuerySeamInActionExamples

                                    Thank you in advance!
                                    1 2 Previous Next