exec:javaターゲットでJavaアプリケーションを実行できます。
なかなか思い出せず、ようやく実行できました。
$ mvn exec:java -Dexec.mainClass="local.sa.Sizeof" -Dexec.args="" [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'exec'. [INFO] ------------------------------------------------------------------------ [INFO] Building sizeof [INFO] task-segment: [exec:java] [INFO] ------------------------------------------------------------------------ [INFO] Preparing exec:java [INFO] No goals needed for project - skipping [INFO] [exec:java {execution: default-cli}] 'before' heap: 9315800, 'after' heap: 11715800 heap delta: 2400000, {class java.lang.Object} size = 24 bytes [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3 seconds [INFO] Finished at: Wed Jan 27 22:49:24 JST 2010 [INFO] Final Memory: 8M/79M [INFO] ------------------------------------------------------------------------ $