BetaCMS Client Archetype 2.1.0.CR2

    BetaCMS Client Archetype 2.1.0.CR2

    BetaCMS provides several maven Archetypes which allow users to quickly create, build and run a BetaCMS dependent project. Maven must be installed prior to installing the archetype.

    Open up a console, go to your projects directory and type

    mvn archetype:generate -DarchetypeGroupId=org.betaconceptframework.betacms.archetypes -DarchetypeArtifactId=betacms-client-example-app-archetype -DarchetypeVersion=2.1.0.CR2 -DgroupId=org.mycompany -DartifactId=myBetaCMSProject -Dversion=1.0 -DarchetypeRepository=http://nexus.betaconceptframework.org/nexus/content/groups/public

     

    You should see the following output

    INFO] Scanning for projects...
    [INFO] Searching repository for plugin with prefix: 'archetype'.
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Maven Default Project
    [INFO] task-segment: [archetype:generate] (aggregator-style)
    [INFO] ------------------------------------------------------------------------
    [INFO] Preparing archetype:generate
    [INFO] No goals needed for project - skipping
    [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
    [INFO] Setting property: velocimacro.messages.on => 'false'.
    [INFO] Setting property: resource.loader => 'classpath'.
    [INFO] Setting property: resource.manager.logwhenfound => 'false'.
    [INFO] [archetype:generate {execution: default-cli}]
    [INFO] Generating project in Interactive mode
    [INFO] Archetype defined by properties
    Confirm properties configuration:
    groupId: org.mycompany
    artifactId: myBetaCMSProject
    version: 1.0
    package: org.mycompany
    Y: :

     

    Type 'Y' to confirm the above settings or 'N' to provide new ones. Once build is finished (ignore any warnings logged), a new directory, named 'myBetaCMSProject' is created.  Cd to that directory and type

    mvn clean package

     

    to build project. Note that, in order for the tests inside this project to be successful, BetaCMS server must be running in 'localhost'. It is assumed that at least the basic installation has been completed.

    In case you want this project to be available in Eclipse, type

    mvn eclipse:eclipse

     

    Eclipse necessary files willl be created and project is ready to be imported in Eclipse.

    This archetype creates a very simple module which connects to the default BetaCMS repository and creates several content objects, topics and taxonomies. It provides code samples demonstrating use of all BetaCMS services.

    Code resides in file  BetaCMSClientExample.java, which is located under directory /src/test/java. It is actually a TestNG enable java class which is executed automatically during module build and logs out useful information for each of the actions performed.

    Please report any problem related to this archetype's installation to JIRA


    Last Modified:13/04/2010 15:09:58 EEST