Repository: reef Updated Branches: refs/heads/master d51a427c2 -> 48ade1b82
[REEF-1233] Add a "fast" profile to maven This change * creates a "code-quality" maven profile which contains all code quality plugins (rat, checkstyle, license, findbugs etc.) * makes this profile active by default * turns off this profile in Java build invoked from .NET build * limits scope of Java build invoked from .NET build to 2 projects: reef-bridge-java and reef-bridge-client JIRA: [REEF-1233](https://issues.apache.org/jira/browse/REEF-1233) Pull request: This closes #878 Project: http://git-wip-us.apache.org/repos/asf/reef/repo Commit: http://git-wip-us.apache.org/repos/asf/reef/commit/48ade1b8 Tree: http://git-wip-us.apache.org/repos/asf/reef/tree/48ade1b8 Diff: http://git-wip-us.apache.org/repos/asf/reef/diff/48ade1b8 Branch: refs/heads/master Commit: 48ade1b82de94ea21c86ff996b90afcefc51bca2 Parents: d51a427 Author: Mariia Mykhailova <[email protected]> Authored: Mon Mar 7 14:01:24 2016 -0800 Committer: Markus Weimer <[email protected]> Committed: Tue Mar 8 13:42:32 2016 -0800 ---------------------------------------------------------------------- .../Org.Apache.REEF.Bridge.JAR.csproj | 2 +- pom.xml | 174 ++++++++++--------- 2 files changed, 91 insertions(+), 85 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/reef/blob/48ade1b8/lang/cs/Org.Apache.REEF.Bridge.JAR/Org.Apache.REEF.Bridge.JAR.csproj ---------------------------------------------------------------------- diff --git a/lang/cs/Org.Apache.REEF.Bridge.JAR/Org.Apache.REEF.Bridge.JAR.csproj b/lang/cs/Org.Apache.REEF.Bridge.JAR/Org.Apache.REEF.Bridge.JAR.csproj index 1885fb6..ec6c5e7 100644 --- a/lang/cs/Org.Apache.REEF.Bridge.JAR/Org.Apache.REEF.Bridge.JAR.csproj +++ b/lang/cs/Org.Apache.REEF.Bridge.JAR/Org.Apache.REEF.Bridge.JAR.csproj @@ -63,7 +63,7 @@ under the License. <Client_JAR_Name>reef-bridge-client-$(REEF_Version)-shaded.jar</Client_JAR_Name> <Client_JAR>$(REEF_Source_Folder)\lang\java\reef-bridge-client\target\$(Client_JAR_Name)</Client_JAR> </PropertyGroup> - <Exec Command='call "$(M2_HOME)\bin\mvn.cmd" -TC1 -DskipTests install' Condition="!Exists('$(Bridge_JAR)')" WorkingDirectory="$(REEF_Source_Folder)" /> + <Exec Command='call "$(M2_HOME)\bin\mvn.cmd" --projects lang/java/reef-bridge-java,lang/java/reef-bridge-client --also-make -TC1 -DskipTests -P!code-quality install' Condition="!Exists('$(Bridge_JAR)')" WorkingDirectory="$(REEF_Source_Folder)" /> <Copy DestinationFolder="$(OutputPath)" SourceFiles="$(Bridge_JAR)" /> <Copy DestinationFolder="$(OutputPath)" SourceFiles="$(Client_JAR)" /> </Target> http://git-wip-us.apache.org/repos/asf/reef/blob/48ade1b8/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 8becd4c..49ceba5 100644 --- a/pom.xml +++ b/pom.xml @@ -165,6 +165,10 @@ under the License. <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.10.3</version> + <configuration> + <show>public</show> + <linksource>true</linksource> + </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> @@ -405,96 +409,12 @@ under the License. </configuration> </plugin> <plugin> - <groupId>com.mycila.maven-license-plugin</groupId> - <artifactId>maven-license-plugin</artifactId> - <configuration> - <header>LICENSE_HEADER.txt</header> - <strictCheck>true</strictCheck> - <excludes> - <exclude>LICENSE.txt</exclude> - <exclude>NOTICES.txt</exclude> - <exclude>README.*</exclude> - </excludes> - </configuration> - </plugin> - <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <configuration> <encoding>${project.build.sourceEncoding}</encoding> </configuration> </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> - <configuration> - <show>public</show> - <linksource>true</linksource> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.rat</groupId> - <artifactId>apache-rat-plugin</artifactId> - <executions> - <execution> - <id>validate</id> - <phase>validate</phase> - <goals> - <goal>check</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-checkstyle-plugin</artifactId> - <version>${maven-checkstyle-plugin.version}</version> - <executions> - <execution> - <id>validate</id> - <phase>validate</phase> - <goals> - <goal>check</goal> - <goal>checkstyle</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>findbugs-maven-plugin</artifactId> - <executions> - <execution> - <id>analyze-compile</id> - <phase>compile</phase> - <goals> - <goal>check</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>cobertura-maven-plugin</artifactId> - <configuration> - <instrumentation> - <excludes> - <exclude>org/apache/reef/examples/**/*.class</exclude> - <exclude>org/apache/reef/tang/examples/**/*.class</exclude> - <exclude>org/apache/reef/vortex/examples/**/*.class</exclude> - <exclude>org/apache/reef/wake/examples/**/*.class</exclude> - </excludes> - </instrumentation> - <aggregate>true</aggregate> - </configuration> - <executions> - <execution> - <goals> - <goal>clean</goal> - </goals> - </execution> - </executions> - </plugin> </plugins> </build> @@ -847,6 +767,92 @@ under the License. </plugins> </build> </profile> + <profile> + <id>code-quality</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <build> + <plugins> + <plugin> + <groupId>com.mycila.maven-license-plugin</groupId> + <artifactId>maven-license-plugin</artifactId> + <configuration> + <header>LICENSE_HEADER.txt</header> + <strictCheck>true</strictCheck> + <excludes> + <exclude>LICENSE.txt</exclude> + <exclude>NOTICES.txt</exclude> + <exclude>README.*</exclude> + </excludes> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <executions> + <execution> + <id>validate</id> + <phase>validate</phase> + <goals> + <goal>check</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-checkstyle-plugin</artifactId> + <version>${maven-checkstyle-plugin.version}</version> + <executions> + <execution> + <id>validate</id> + <phase>validate</phase> + <goals> + <goal>check</goal> + <goal>checkstyle</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>findbugs-maven-plugin</artifactId> + <executions> + <execution> + <id>analyze-compile</id> + <phase>compile</phase> + <goals> + <goal>check</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + <configuration> + <instrumentation> + <excludes> + <exclude>org/apache/reef/examples/**/*.class</exclude> + <exclude>org/apache/reef/tang/examples/**/*.class</exclude> + <exclude>org/apache/reef/vortex/examples/**/*.class</exclude> + <exclude>org/apache/reef/wake/examples/**/*.class</exclude> + </excludes> + </instrumentation> + <aggregate>true</aggregate> + </configuration> + <executions> + <execution> + <goals> + <goal>clean</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> </profiles> </project>
