Skip to content

Commit

Permalink
Cleanup reference to maven-compiler-plugin using pluginManagement
Browse files Browse the repository at this point in the history
  • Loading branch information
apc999 committed May 17, 2015
1 parent 6843071 commit 146aa2b
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 178 deletions.
21 changes: 0 additions & 21 deletions common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,26 +86,5 @@
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<executions>
<execution>
<id>default-compile</id>
<phase>compile</phase>
<configuration>
<compilerArgs>
<arg>-Xlint:none</arg>
</compilerArgs>
</configuration>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
111 changes: 20 additions & 91 deletions integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,24 +98,11 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<executions>
<execution>
<id>default-testCompile</id>
<phase>test-compile</phase>
<configuration>
<testExcludes>
<exclude>**/hadoop/contract/**</exclude>
</testExcludes>
<compilerArgs>
<arg>-Xlint:-unchecked</arg>
</compilerArgs>
</configuration>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
<configuration>
<testExcludes>
<exclude>**/hadoop/contract/**</exclude>
</testExcludes>
</configuration>
</plugin>
</plugins>
</build>
Expand All @@ -136,24 +123,11 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<executions>
<execution>
<id>default-testCompile</id>
<phase>test-compile</phase>
<configuration>
<testExcludes>
<exclude>**/hadoop/contract/**</exclude>
</testExcludes>
<compilerArgs>
<arg>-Xlint:-unchecked</arg>
</compilerArgs>
</configuration>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
<configuration>
<testExcludes>
<exclude>**/hadoop/contract/**</exclude>
</testExcludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -189,24 +163,11 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<executions>
<execution>
<id>default-testCompile</id>
<phase>test-compile</phase>
<configuration>
<testExcludes>
<exclude>**/hadoop/contract/**</exclude>
</testExcludes>
<compilerArgs>
<arg>-Xlint:-unchecked</arg>
</compilerArgs>
</configuration>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
<configuration>
<testExcludes>
<exclude>**/hadoop/contract/**</exclude>
</testExcludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -236,24 +197,11 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<executions>
<execution>
<id>default-testCompile</id>
<phase>test-compile</phase>
<configuration>
<testExcludes>
<exclude>**/hadoop/contract/**</exclude>
</testExcludes>
<compilerArgs>
<arg>-Xlint:-unchecked</arg>
</compilerArgs>
</configuration>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
<configuration>
<testExcludes>
<exclude>**/hadoop/contract/**</exclude>
</testExcludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -282,25 +230,6 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<executions>
<execution>
<id>default-compile</id>
<phase>compile</phase>
<configuration>
<compilerArgs>
<arg>-Xlint:none</arg>
</compilerArgs>
</configuration>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- TODO: test-jar is generated only to expose LocalTachyonCluster. We
should remove this when this class can be exposed in a better way. -->
Expand Down
25 changes: 14 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,20 @@
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>UTF-8</encoding>
<maxmem>1024m</maxmem>
<compilerArgs>
<arg>-Xlint:none</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Expand All @@ -288,17 +302,6 @@
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>UTF-8</encoding>
<maxmem>1024m</maxmem>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
Expand Down
31 changes: 0 additions & 31 deletions servers/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,37 +127,6 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<executions>
<execution>
<id>default-compile</id>
<phase>compile</phase>
<configuration>
<compilerArgs>
<arg>-Xlint:none</arg>
</compilerArgs>
</configuration>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>default-testCompile</id>
<phase>test-compile</phase>
<configuration>
<compilerArgs>
<arg>-Xlint:-unchecked</arg>
</compilerArgs>
</configuration>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand Down
24 changes: 0 additions & 24 deletions shell/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,28 +68,4 @@
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<executions>
<execution>
<id>default-compile</id>
<phase>compile</phase>
<configuration>
<compilerArgs>
<arg>-Xlint:none</arg>
</compilerArgs>
</configuration>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 146aa2b

Please sign in to comment.