You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "qxo (Jira)" <ji...@apache.org> on 2020/05/08 16:55:00 UTC
[jira] [Created] (MCOMPILER-416) make build faster: when "Nothing
to compile" then skip the follow-up plugin
qxo created MCOMPILER-416:
-----------------------------
Summary: 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
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>
```
--
This message was sent by Atlassian Jira
(v8.3.4#803005)