java - Arguments for eclipse compiler in Maven -


in eclipse compiler java standalone, able log in xml compilation info via command-line atribute, in stub:

java -jar ecj-4.3.2.jar -log compile.xml <classpath,files> 

however, when use maven-compiler-plugin plexus-compiler-eclipse, seems unable pass argument compiler, , not sure cause of this, whether plugin's compiler one, doesn't spawn new processes (i tried executable parameter), or other reason.

here pom.xml section:

<plugin>    <groupid>org.apache.maven.plugins</groupid>    <artifactid>maven-compiler-plugin</artifactid>    <version>3.1</version>    <configuration>       <compilerid>eclipse</compilerid>       <forcejavaccompileruse>true</forcejavaccompileruse>       <!--<compilerargument> -log compile.xml </compilerargument>-->       <compilerargs>         <arg>-log</arg>         <arg>compile.xml</arg>       </compilerargs>       <fork>true</fork>       <verbose>true</verbose>       <showdeprecation>true</showdeprecation>       <showwarnings>true</showwarnings>    </configuration>    <dependencies>       <dependency>          <groupid>org.codehaus.plexus</groupid>          <artifactid>plexus-compiler-eclipse</artifactid>          <version>2.3</version>       </dependency>    </dependencies> </plugin> 

the eclipse implementation plexus-compiler-eclipse, doesn't accept fork argument, uses internal jvm. so, can accept jvm options maven_opts.

however, default implementation plexus-compiler-javac, supports custom executable. workaround may this: set fork true, , specify executable.

for wraper in bash, can visit here: https://stackoverflow.com/a/37971000/3289354


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -