THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Once you have the archetype installed or it is available at maven central. Here is the set of commands you would typically run.
Code Block |
---|
mkdir ${project.name.directory}
cd ${project.name.directory}
prompt> mvn archetype:generate -DarchetypeGroupId=org.apache.oodt -DarchetypeArtifactId=radix-archetype -DarchetypeVersion=0.6-SNAPSHOT -Doodt=0.6-SNAPSHOT -DgroupId=com.mycompany -DartifactId=dms -Dversion=0.1-SNAPSHOT
prompt> cd dms; mvn package
prompt> mkdir ../oodt-deploy; tar -xvf distribution/target/dms-distribution-0.1-SNAPSHOT-bin.tar.gz -C ../oodt-deploy
prompt> cd ../oodt-deploy; ./bin/oodt start
|
- The first and second commands simply create a new project directory and cd into it. This is necessary as we need a clean directory containing no pom for the archetype to work its magic.
- The third command is the running of a maven archetype to make an oodt project. The groupId is a place to specify your company's namespace. The artifactId is a place to specify a short name of your project. The version indicates the initial version label for your project. The oodt flag indicates the version of OODT that you want your project to be built on.
- The second fourth command simply moves into the created oodt project directory where your source and configuration can be maintained and later can be placed into version control. Then creates the distribution of your OODT project using "mvn package"
- The third fifth command merely untars the distribution into the created deployment directory
- The last command moves into the deployment directory and starts the OODT system.
...