Details

    • Type: Feature Request
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: The future
    • Component/s: Tools
    • Labels:
      None

      Description

      Create some maven archetypes to compliment seam-gen.

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            dan.j.allen Dan Allen added a comment -

            I'm just brainstorming here, but it is highly likely that it will be a separate project from seam-gen, at least in the beginning. I don't believe in everything that Maven does and do not believe it is the best development environment for productivity, so I don't want to lose the offering we have with seam-gen projects. It will be offered more as an alternative.

            I can tell you that I have solved all of the aforementioned problems already in a sandbox environment on my computer. I have dealt with the multiple source directory issue and I can get tests to run in the same project. Whether it's the best approach is subject to discussion, but I have a 100% working Maven project, it's just a matter of putting it forth for community review and then rolling it into Seam somehow.

            Show
            dan.j.allen Dan Allen added a comment - I'm just brainstorming here, but it is highly likely that it will be a separate project from seam-gen, at least in the beginning. I don't believe in everything that Maven does and do not believe it is the best development environment for productivity, so I don't want to lose the offering we have with seam-gen projects. It will be offered more as an alternative. I can tell you that I have solved all of the aforementioned problems already in a sandbox environment on my computer. I have dealt with the multiple source directory issue and I can get tests to run in the same project. Whether it's the best approach is subject to discussion, but I have a 100% working Maven project, it's just a matter of putting it forth for community review and then rolling it into Seam somehow.
            Hide
            svadu Siarhei Dudzin added a comment -

            I have to partially agree with Dan (except for belief part ). Archetypes wont be able to replace seam-gen, besides that would be a misuse of maven because the scope of seam-gen is much broader than that of what archetypes are for (and maven itself if we go that far)...

            Show
            svadu Siarhei Dudzin added a comment - I have to partially agree with Dan (except for belief part ). Archetypes wont be able to replace seam-gen, besides that would be a misuse of maven because the scope of seam-gen is much broader than that of what archetypes are for (and maven itself if we go that far)...
            Hide
            crowne Neil Crow added a comment -

            Interesting choice of phrase "partially agree", because archetype-ng (next generation) aims to introduce "partial archetypes" which will add features to existing maven projects, sounds similar to "seam new-action" or "seam new-form".
            The "complete archetypes" will be used generate initial project structures.

            The plugin project page can be found here http://mojo.codehaus.org/maven-archetypeng/main.html
            Archetype-NG is meant to replace the archetype plugin sometime in the future.

            Hold your horses, before I become the target of mass hate mail.
            I am aware that maven is a contentious tool which does not enjoy universal unquestioned support and I think this a healthy situation.
            I hope that my comments and links are found to be interesting, unoffensive and worth discussion.

            Show
            crowne Neil Crow added a comment - Interesting choice of phrase "partially agree", because archetype-ng (next generation) aims to introduce "partial archetypes" which will add features to existing maven projects, sounds similar to "seam new-action" or "seam new-form". The "complete archetypes" will be used generate initial project structures. The plugin project page can be found here http://mojo.codehaus.org/maven-archetypeng/main.html Archetype-NG is meant to replace the archetype plugin sometime in the future. Hold your horses, before I become the target of mass hate mail. I am aware that maven is a contentious tool which does not enjoy universal unquestioned support and I think this a healthy situation. I hope that my comments and links are found to be interesting, unoffensive and worth discussion.
            Hide
            dan.j.allen Dan Allen added a comment -

            I welcome the idea of Maven's archetype plugin becoming more flexible. The biggest issue right now is that like many Maven features in the past, it ain't ready yet. Therefore, it's not useful yet.

            I want to briefly mention (since this is not a forum and we shouldn't be threading opinions) why I don't think Maven is best for our users. First, "ant explode" is extremely fast and that is not something Maven can do because it has to go through its whole life cycle. Plus, Maven does not have built-in support for dual source directories, so doing hot deployment of Java classes is a huge hack. Times will change I am sure, but seam-gen has to stick with what works today and evolve as time goes on.

            Show
            dan.j.allen Dan Allen added a comment - I welcome the idea of Maven's archetype plugin becoming more flexible. The biggest issue right now is that like many Maven features in the past, it ain't ready yet. Therefore, it's not useful yet. I want to briefly mention (since this is not a forum and we shouldn't be threading opinions) why I don't think Maven is best for our users. First, "ant explode" is extremely fast and that is not something Maven can do because it has to go through its whole life cycle. Plus, Maven does not have built-in support for dual source directories, so doing hot deployment of Java classes is a huge hack. Times will change I am sure, but seam-gen has to stick with what works today and evolve as time goes on.
            Hide
            dan.j.allen Dan Allen added a comment -

            I came up with a way to weave the hot deployment step into Maven using a profile and the Ant run plugin. I have attached the file hot-profile.xml which you would add to the <profiles> section of your build. Then, you can run hot deploy as follows:

            First, explode the WAR

            mvn -q -o -npu process-classes war:exploded -Dmode=hot

            Then, hot deploy changes

            mvn -q -o -npu process-classes -Dmode=hot

            The -q -o -npu puts Maven in quite, offline, and no-plugin-update mode, making it as fast as possible.

            Show
            dan.j.allen Dan Allen added a comment - I came up with a way to weave the hot deployment step into Maven using a profile and the Ant run plugin. I have attached the file hot-profile.xml which you would add to the <profiles> section of your build. Then, you can run hot deploy as follows: First, explode the WAR mvn -q -o -npu process-classes war:exploded -Dmode=hot Then, hot deploy changes mvn -q -o -npu process-classes -Dmode=hot The -q -o -npu puts Maven in quite, offline, and no-plugin-update mode, making it as fast as possible.

              People

              • Assignee:
                dan.j.allen Dan Allen
                Reporter:
                pmuir Pete Muir
              • Votes:
                80 Vote for this issue
                Watchers:
                49 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Development