maven-ant-run プラグインを使用して、maven を介して jar バッチを実行しています。うまく動作します。必要なのは、maven ビルド レポートで system.out.println 文字列を読み取れるようにすることです。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<phase>clean</phase>
<configuration>
<target>
<echo>
Language synchronization is being started
</echo>
<exec executable="cmd.exe"
spawn="true">
<arg value="/c"/>
<arg value="${languagesynch.path}"/>
<arg value="C:\ContinuousIntegration\res" /> <!--copy from-->
<arg value="${project.basedir}\res" /> <!--to this directory-->
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
実行中のタスクと実行済みのタスクのみが表示されます。
[INFO] --- maven-antrun-plugin:1.6:run (default) ---
[INFO] Executing tasks
main:
[echo] Language synchronization is being started through D:\Projects\MavenI
nHerd\LanguageSynch\out\artifacts\LanguageSynch_jar\LanguageSynch.jar
[INFO] Executed tasks