Standalone Applicationの雛型の生成。
$ maven genapp Enter a project template to use: [default] Please specify an id for your application: [app] Please specify a name for your application: [Example Application] Please specify the package for your application: [example.app] build:start: genapp: [copy] Copying 1 file to /tmp/ex01/src/java/example/app [copy] Copying 3 files to /tmp/ex01/src/test/example/app [copy] Copying 1 file to /tmp/ex01 [copy] Copying 2 files to /tmp/ex01 BUILD SUCCESSFUL Total time: 7 seconds Finished at: Mon Oct 03 13:35:11 JST 2005 $
Target JVM の設定
project.properties maven.compile.target=1.4
Unit Testの実行。
$maven test build:start: java:prepare-filesystem: java:compile: [echo] Compiling to /tmp/ex01/target/classes [echo] java:jar-resources: test:prepare-filesystem: test:test-resources: test:compile: test:test: [junit] Running example.app.AppTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.021 sec BUILD SUCCESSFUL Total time: 2 seconds Finished at: Mon Oct 03 13:40:45 JST 2005 $