19

Is there any way to force Maven 2 (>2.0.10) to print the actual javac commands it's executing. We keep running out of memory even though we've bumped up the max using MAVEN_OPTS. I'd like to be able to see the actual command being executed that is running out of memory.

I've tried using the verbose setting below in the pom file's plugin management section but that doesn't seem to give me the javac command:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <configuration>
        <source>1.5</source>
        <target>1.5</target>
        <maxmem>1024m</maxmem>
        <compilerArguments>
            <verbose/>
        </compilerArguments>
    </configuration>
</plugin>
4

1 に答える 1

19

-Xデバッグ情報を出力するコマンドで Maven を実行してみましたか?

$ mvn -?
...
 -X,--debug      Produce execution debug output

その後、maven-javac-plugin は、使用されているクラスパス、ソース ディレクトリ/パスなどを出力する必要があります。

于 2010-02-05T20:11:36.387 に答える