[ 
https://issues.apache.org/jira/browse/MCOMPILER-416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte updated MCOMPILER-416:
-------------------------------------
    Description: 
PR: [https://github.com/apache/maven-compiler-plugin/pull/33]

make the build faster

ie:
{code:xml}
 <plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-compiler-plugin</artifactId>
 <executions>
 <execution>
 <id>default-compile</id>
 <phase>compile</phase>
 <goals>
 <goal>compile</goal>
 </goals>
 <configuration>
 <skippedKey>nothingToCompileOn</skippedKey>
 </configuration>
 </execution>
 </executions>
 </plugin>
 <plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-antrun-plugin</artifactId>
 <version>3.0.0</version>
 <executions>
 <execution>
 <id>test1</id>
 <phase>process-classes</phase>
 <configuration>
 <target>
 <echoproperties>
 <propertyset><propertyref prefix="nothing"/></propertyset>
 </echoproperties>
 </target>
 <skip>${nothingToCompileOn}</skip>
 </configuration>
 <goals>
 <goal>run</goal>
 </goals>
 </execution>
 </executions>
 </plugin>
 {code}

  was:
PR: [https://github.com/apache/maven-compiler-plugin/pull/33]

make the build faster

ie:
 ```
 <plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-compiler-plugin</artifactId>
 <executions>
 <execution>
 <id>default-compile</id>
 <phase>compile</phase>
 <goals>
 <goal>compile</goal>
 </goals>
 <configuration>
 <skippedKey>nothingToCompileOn</skippedKey>
 </configuration>
 </execution>
 </executions>
 </plugin>
 <plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-antrun-plugin</artifactId>
 <version>3.0.0</version>
 <executions>
 <execution>
 <id>test1</id>
 <phase>process-classes</phase>
 <configuration>
 <target>
 <echoproperties>
 <propertyset><propertyref prefix="nothing"/></propertyset>
 </echoproperties>
 </target>
 <skip>${nothingToCompileOn}</skip>
 </configuration>
 <goals>
 <goal>run</goal>
 </goals>
 </execution>
 </executions>
 </plugin>
 ```


> make build faster: when "Nothing to compile" then skip the follow-up plugin
> ---------------------------------------------------------------------------
>
>                 Key: MCOMPILER-416
>                 URL: https://issues.apache.org/jira/browse/MCOMPILER-416
>             Project: Maven Compiler Plugin
>          Issue Type: Improvement
>            Reporter: qxo
>            Priority: Minor
>
> PR: [https://github.com/apache/maven-compiler-plugin/pull/33]
> make the build faster
> ie:
> {code:xml}
>  <plugin>
>  <groupId>org.apache.maven.plugins</groupId>
>  <artifactId>maven-compiler-plugin</artifactId>
>  <executions>
>  <execution>
>  <id>default-compile</id>
>  <phase>compile</phase>
>  <goals>
>  <goal>compile</goal>
>  </goals>
>  <configuration>
>  <skippedKey>nothingToCompileOn</skippedKey>
>  </configuration>
>  </execution>
>  </executions>
>  </plugin>
>  <plugin>
>  <groupId>org.apache.maven.plugins</groupId>
>  <artifactId>maven-antrun-plugin</artifactId>
>  <version>3.0.0</version>
>  <executions>
>  <execution>
>  <id>test1</id>
>  <phase>process-classes</phase>
>  <configuration>
>  <target>
>  <echoproperties>
>  <propertyset><propertyref prefix="nothing"/></propertyset>
>  </echoproperties>
>  </target>
>  <skip>${nothingToCompileOn}</skip>
>  </configuration>
>  <goals>
>  <goal>run</goal>
>  </goals>
>  </execution>
>  </executions>
>  </plugin>
>  {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to