Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0
    • Component/s: Project Build
    • Labels:
      None

      Description

      A Maven 2 archetype for a Jetspeed based portal project, based on Jetspeed 2.2's new Maven 2 build. The archetype should generate a multi module project containing a 'portal' module and a 'pa' module (portal application).

      1. jetspeed-archetype.20081001.tar.gz
        14 kB
        Niels van Kampenhout
      2. jetspeed-archetype.20080916.tar.gz
        14 kB
        Niels van Kampenhout

        Activity

        Niels van Kampenhout created issue -
        Hide
        Niels van Kampenhout added a comment - - edited

        Attached is a first attempt at the described archetype. It is based on the maven-archetype-plugin version 2.0-alpha-3. The Jetspeed version it uses is 2.2-SNAPSHOT-r678046, except for j2-admin which has no 2.2-SNAPSHOT-r678046 release in the maven repository so I used 2.2-SNAPSHOT.

        To install archetype:

        mvn install

        To use archetype:

        mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-3:generate \
        -DarchetypeGroupId=org.apache.portals.jetspeed-2 \
        -DarchetypeArtifactId=jetspeed-archetype \
        -DarchetypeVersion=2.2-SNAPSHOT \
        -DartifactId=hello \
        -Dpackage=org.example \
        -DgroupId=org.example \
        -Dversion=1.0-SNAPSHOT

        To configure the generated portal project, edit jetspeed-mvn-settings.xml and change:

        <org.apache.jetspeed.server.home>/change/this/apache-tomcat-5.5.26/</org.apache.jetspeed.server.home>

        and

        <org.apache.jetspeed.production.database.url>jdbc:derby:/tmp/jetspeed/derby/productiondb;create=true</org.apache.jetspeed.production.database.url>

        To build generated portal project:

        mvn jetspeed:mvn -Dtarget=install

        To initialize database for generated portal project:

        mvn jetspeed:mvn -Dtarget=db

        To deploy generated portal project:

        mvn jetspeed:mvn -Dtarget=deploy-portal
        mvn jetspeed:mvn -Dtarget=deploy-pa

        Show
        Niels van Kampenhout added a comment - - edited Attached is a first attempt at the described archetype. It is based on the maven-archetype-plugin version 2.0-alpha-3. The Jetspeed version it uses is 2.2-SNAPSHOT-r678046, except for j2-admin which has no 2.2-SNAPSHOT-r678046 release in the maven repository so I used 2.2-SNAPSHOT. To install archetype: mvn install To use archetype: mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-3:generate \ -DarchetypeGroupId=org.apache.portals.jetspeed-2 \ -DarchetypeArtifactId=jetspeed-archetype \ -DarchetypeVersion=2.2-SNAPSHOT \ -DartifactId=hello \ -Dpackage=org.example \ -DgroupId=org.example \ -Dversion=1.0-SNAPSHOT To configure the generated portal project, edit jetspeed-mvn-settings.xml and change: <org.apache.jetspeed.server.home>/change/this/apache-tomcat-5.5.26/</org.apache.jetspeed.server.home> and <org.apache.jetspeed.production.database.url>jdbc:derby:/tmp/jetspeed/derby/productiondb;create=true</org.apache.jetspeed.production.database.url> To build generated portal project: mvn jetspeed:mvn -Dtarget=install To initialize database for generated portal project: mvn jetspeed:mvn -Dtarget=db To deploy generated portal project: mvn jetspeed:mvn -Dtarget=deploy-portal mvn jetspeed:mvn -Dtarget=deploy-pa
        Niels van Kampenhout made changes -
        Field Original Value New Value
        Attachment jetspeed-archetype.20080916.tar.gz [ 12390216 ]
        Ate Douma made changes -
        Assignee Ate Douma [ adouma ]
        Priority Major [ 3 ] Critical [ 2 ]
        Hide
        Niels van Kampenhout added a comment -

        I attached a slightly improved archetype (jetspeed-archetype.20081001.tar.gz) that fixes an issue with the earlier version (different package and groupId caused incorrect POMs).

        Show
        Niels van Kampenhout added a comment - I attached a slightly improved archetype (jetspeed-archetype.20081001.tar.gz) that fixes an issue with the earlier version (different package and groupId caused incorrect POMs).
        Niels van Kampenhout made changes -
        Attachment jetspeed-archetype.20081001.tar.gz [ 12391304 ]
        Ate Douma made changes -
        Assignee Ate Douma [ adouma ] Dennis Dam [ ddam ]
        Hide
        Dennis Dam added a comment -

        also added targets for seeding the portal DB (-Dtarget=portal-seed), seeding PSMLs stored in the database (-Dtarget=portal-seed-dbpsml) and deploying the portal with dbpsml enabled (-Dtarget=deploy-portal-dbpsml).

        Show
        Dennis Dam added a comment - also added targets for seeding the portal DB (-Dtarget=portal-seed), seeding PSMLs stored in the database (-Dtarget=portal-seed-dbpsml) and deploying the portal with dbpsml enabled (-Dtarget=deploy-portal-dbpsml).
        Dennis Dam made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Dennis Dam added a comment -

        Thanks Niels for the contribution!

        Show
        Dennis Dam added a comment - Thanks Niels for the contribution!
        Ate Douma made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Dennis Dam
            Reporter:
            Niels van Kampenhout
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development