diff --git a/blobstore-basics/pom.xml b/blobstore-basics/pom.xml index 9da345e7..33a29570 100644 --- a/blobstore-basics/pom.xml +++ b/blobstore-basics/pom.xml @@ -55,15 +55,6 @@ ${project.artifactId} - - maven-compiler-plugin - 3.1 - - ${project.build.sourceEncoding} - 1.6 - 1.6 - - org.apache.maven.plugins maven-jar-plugin diff --git a/blobstore-largeblob/pom.xml b/blobstore-largeblob/pom.xml index 068f584e..34f99609 100644 --- a/blobstore-largeblob/pom.xml +++ b/blobstore-largeblob/pom.xml @@ -76,15 +76,6 @@ ${project.artifactId} - - maven-compiler-plugin - 3.1 - - ${project.build.sourceEncoding} - 1.6 - 1.6 - - maven-jar-plugin 2.4 diff --git a/chef-basics/pom.xml b/chef-basics/pom.xml index 49fec29c..cd0ebc1c 100644 --- a/chef-basics/pom.xml +++ b/chef-basics/pom.xml @@ -106,15 +106,6 @@ ${project.artifactId} - - maven-compiler-plugin - 3.1 - - ${project.build.sourceEncoding} - 1.6 - 1.6 - - org.apache.maven.plugins maven-jar-plugin diff --git a/compute-basics/pom.xml b/compute-basics/pom.xml index 088eb88e..51967190 100644 --- a/compute-basics/pom.xml +++ b/compute-basics/pom.xml @@ -92,15 +92,6 @@ ${project.artifactId} - - maven-compiler-plugin - 3.1 - - ${project.build.sourceEncoding} - 1.6 - 1.6 - - org.apache.maven.plugins maven-jar-plugin diff --git a/glacier/pom.xml b/glacier/pom.xml index 9af4df22..a2b6f7ec 100644 --- a/glacier/pom.xml +++ b/glacier/pom.xml @@ -40,15 +40,6 @@ ${project.artifactId} - - maven-compiler-plugin - 3.1 - - ${project.build.sourceEncoding} - 1.6 - 1.6 - - org.apache.maven.plugins maven-jar-plugin diff --git a/google-lb/pom.xml b/google-lb/pom.xml index 4dc67342..76078f76 100644 --- a/google-lb/pom.xml +++ b/google-lb/pom.xml @@ -61,15 +61,6 @@ ${project.artifactId} - - maven-compiler-plugin - 3.1 - - ${project.build.sourceEncoding} - 1.6 - 1.6 - - org.apache.maven.plugins maven-jar-plugin diff --git a/openstack/pom.xml b/openstack/pom.xml index 5bd40fd3..efc361e3 100644 --- a/openstack/pom.xml +++ b/openstack/pom.xml @@ -90,17 +90,4 @@ - - - - maven-compiler-plugin - 3.1 - - ${project.build.sourceEncoding} - 1.6 - 1.6 - - - - diff --git a/pom.xml b/pom.xml index b2aa1834..a2fdf211 100644 --- a/pom.xml +++ b/pom.xml @@ -33,6 +33,9 @@ + 1.8 + 1.8 + 2.1.0 @@ -73,6 +76,155 @@ + + maven-compiler-plugin + 3.1 + + javac-with-errorprone + true + ${project.build.sourceEncoding} + ${maven.compile.source} + ${maven.compile.target} + false + true + + -Xlint + -Xlint:-deprecation + -Xlint:-processing + -Xlint:-rawtypes + -Xlint:-serial + -Xlint:-unchecked + + + -Xep:CannotMockFinalClass:ERROR + -Xep:ElementsCountedInLoop:ERROR + -Xep:EqualsHashCode:ERROR + -Xep:Finally:ERROR + -Xep:IncompatibleModifiers:ERROR + -Xep:JUnitAmbiguousTestClass:ERROR + -Xep:NonAtomicVolatileUpdate:OFF + -Xep:NonCanonicalStaticMemberImport:ERROR + -Xep:NonOverridingEquals:ERROR + -Xep:PreconditionsInvalidPlaceholder:ERROR + -Xep:ProtoFieldPreconditionsCheckNotNull:ERROR + -Xep:RequiredModifiers:ERROR + -Xep:StaticAccessedFromInstance:ERROR + -Xep:StringEquality:ERROR + -Xep:SynchronizeOnNonFinalField:ERROR + -Xep:TypeParameterUnusedInFormals:OFF + -Xep:UnnecessaryStaticImport:ERROR + -Xep:WaitNotInLoop:ERROR + + + -Xep:ArrayEquals:ERROR + -Xep:ArrayHashCode:ERROR + -Xep:ArrayToString:ERROR + -Xep:ArrayToStringCompoundAssignment:ERROR + -Xep:ArrayToStringConcatenation:ERROR + -Xep:AsyncFunctionReturnsNull:ERROR + -Xep:BadShiftAmount:ERROR + -Xep:ChainingConstructorIgnoresParameter:ERROR + -Xep:CheckReturnValue:ERROR + -Xep:ClassName:ERROR + -Xep:ComparisonOutOfRange:ERROR + -Xep:CompileTimeConstant:ERROR + -Xep:DeadException:ERROR + -Xep:DepAnn:ERROR + -Xep:DoubleCheckedLocking:ERROR + -Xep:EqualsNaN:ERROR + -Xep:ForOverride:ERROR + -Xep:GetClassOnClass:ERROR + -Xep:GuardedByChecker:ERROR + -Xep:GuiceAssistedInjectScoping:ERROR + -Xep:HashtableContains:ERROR + -Xep:InvalidPatternSyntax:ERROR + -Xep:IsInstanceOfClass:ERROR + -Xep:JUnit3TestNotRun:ERROR + -Xep:JUnit4SetUpNotRun:ERROR + -Xep:JUnit4TearDownNotRun:ERROR + -Xep:JUnit4TestNotRun:ERROR + -Xep:LongLiteralLowerCaseSuffix:ERROR + -Xep:MisusedWeekYear:ERROR + -Xep:NarrowingCompoundAssignment:ERROR + -Xep:NonCanonicalStaticImport:ERROR + -Xep:NonFinalCompileTimeConstant:ERROR + -Xep:Overrides:ERROR + + + -Xep:PreconditionsCheckNotNull:ERROR + -Xep:PreconditionsCheckNotNullPrimitive:ERROR + -Xep:ProtoFieldNullComparison:ERROR + -Xep:ReturnValueIgnored:ERROR + -Xep:SelfAssignment:ERROR + -Xep:SelfEquals:ERROR + -Xep:SizeGreaterThanOrEqualsZero:ERROR + -Xep:StringBuilderInitWithChar:ERROR + -Xep:SuppressWarningsDeprecated:ERROR + -Xep:TryFailThrowable:ERROR + -Xep:UnnecessaryTypeArgument:ERROR + -Xep:UnusedAnonymousClass:ERROR + + + -Xep:AssertFalse:ERROR + -Xep:AssistedInjectAndInjectOnConstructors:ERROR + -Xep:CollectionIncompatibleType:ERROR + -Xep:GuiceInjectOnFinalField:ERROR + -Xep:MissingFail:ERROR + -Xep:NullablePrimitive:ERROR + -Xep:OverridesGuiceInjectableMethod:OFF + -Xep:PreconditionsErrorMessageEagerEvaluation:OFF + -Xep:PrimitiveArrayPassedToVarargsMethod:ERROR + + + -Xep:FallthroughSuppression + + + -Xep:ArraysAsListPrimitiveArray:ERROR + -Xep:AssistedInjectAndInjectOnSameConstructor:ERROR + -Xep:ClassCanBeStatic:ERROR + -Xep:DivZero:ERROR + -Xep:EmptyIf:ERROR + -Xep:GuardedByValidator:ERROR + -Xep:GuiceAssistedParameters:ERROR + -Xep:InjectInvalidTargetingOnScopingAnnotation:ERROR + -Xep:InjectMoreThanOneQualifier:OFF + -Xep:InjectMoreThanOneScopeAnnotationOnClass:ERROR + -Xep:InjectScopeAnnotationOnInterfaceOrAbstractClass:ERROR + -Xep:InjectScopeOrQualifierAnnotationRetention:ERROR + -Xep:InjectedConstructorAnnotations:ERROR + -Xep:JMockTestWithoutRunWithOrRuleAnnotation:ERROR + -Xep:JavaxInjectOnAbstractMethod:ERROR + -Xep:JavaxInjectOnFinalField:ERROR + -Xep:LockMethodChecker:ERROR + -Xep:MalformedFormatString:ERROR + -Xep:MissingCasesInEnumSwitch:OFF + -Xep:ModifyingCollectionWithItself:ERROR + -Xep:MoreThanOneInjectableConstructor:OFF + -Xep:NoAllocation:ERROR + -Xep:NonRuntimeAnnotation:ERROR + -Xep:NumericEquality:ERROR + -Xep:OverlappingQualifierAndScopeAnnotation:ERROR + -Xep:OverridesJavaxInjectableMethod:OFF + -Xep:ParameterPackage:OFF + -Xep:ProtoStringFieldReferenceEquality:ERROR + -Xep:SelfEquality:ERROR + -Xep:UnlockMethod:ERROR + -Xep:WildcardImport:ERROR + + + + + org.codehaus.plexus + plexus-compiler-javac-errorprone + 2.6 + + + com.google.errorprone + error_prone_core + 2.0.5 + + + org.apache.rat apache-rat-plugin diff --git a/rackspace/pom.xml b/rackspace/pom.xml index 2557e346..e0c4e1e3 100644 --- a/rackspace/pom.xml +++ b/rackspace/pom.xml @@ -171,17 +171,4 @@ - - - - maven-compiler-plugin - 3.1 - - ${project.build.sourceEncoding} - 1.6 - 1.6 - - - -