diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-01-08 21:27:44 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-01-09 00:09:04 +0400 |
commit | 80b050925d66ee9270e3e846b1e8b25cf0660f84 (patch) | |
tree | ab3dd14471616e3e362833092956817f1d67fd38 /plugins/sonar-findbugs-plugin/pom.xml | |
parent | f0b9e106daabf04ba5220d5326dd7afcb521be36 (diff) | |
download | sonarqube-80b050925d66ee9270e3e846b1e8b25cf0660f84.tar.gz sonarqube-80b050925d66ee9270e3e846b1e8b25cf0660f84.zip |
SONAR-3150 Reduce size of PMD and FindBugs plugins
* Remove unused dependencies
* Lock size with help of maven-enforcer-plugin to prevent future
regressions
Diffstat (limited to 'plugins/sonar-findbugs-plugin/pom.xml')
-rw-r--r-- | plugins/sonar-findbugs-plugin/pom.xml | 79 |
1 files changed, 47 insertions, 32 deletions
diff --git a/plugins/sonar-findbugs-plugin/pom.xml b/plugins/sonar-findbugs-plugin/pom.xml index 74086f1b1c4..c25e0164383 100644 --- a/plugins/sonar-findbugs-plugin/pom.xml +++ b/plugins/sonar-findbugs-plugin/pom.xml @@ -17,54 +17,45 @@ <findbugs.version>1.3.9</findbugs.version> </properties> - <!-- IMPORTANT! - xalan should be excluded everywhere, because contains Apache BCEL, - but FindBugs requires its own version of BCEL - see http://findbugs.sourceforge.net/FAQ.html#q2 - --> - - <dependencyManagement> - <!-- Change versions for dependencies provided by sonar-plugin-api --> - <dependencies> - <dependency> - <groupId>xerces</groupId> - <artifactId>xercesImpl</artifactId> - <version>2.6.2</version> - </dependency> - </dependencies> - </dependencyManagement> - <dependencies> + <!-- + !!! ORDER OF DEPENDENCIES IS IMPORTANT !!! + FindBugs should be first + --> + <dependency> - <groupId>org.codehaus.sonar</groupId> - <artifactId>sonar-plugin-api</artifactId> - <scope>provided</scope> + <groupId>com.google.code.findbugs</groupId> + <artifactId>findbugs</artifactId> + <version>${findbugs.version}</version> <exclusions> <exclusion> - <groupId>xalan</groupId> - <artifactId>xalan</artifactId> - </exclusion> - <exclusion> - <groupId>jaxen</groupId> - <artifactId>jaxen</artifactId> + <groupId>jdom</groupId> + <artifactId>jdom</artifactId> </exclusion> <exclusion> - <groupId>dom4j</groupId> - <artifactId>dom4j</artifactId> + <groupId>xml-apis</groupId> + <artifactId>xml-apis</artifactId> </exclusion> <exclusion> <groupId>xerces</groupId> <artifactId>xercesImpl</artifactId> </exclusion> + <exclusion> + <groupId>xom</groupId> + <artifactId>xom</artifactId> + </exclusion> </exclusions> </dependency> + <dependency> - <groupId>com.google.code.findbugs</groupId> - <artifactId>findbugs</artifactId> - <version>${findbugs.version}</version> + <groupId>org.codehaus.sonar</groupId> + <artifactId>sonar-plugin-api</artifactId> + <scope>provided</scope> <exclusions> + <!-- allows to package dom4j into plugin --> <exclusion> - <groupId>xalan</groupId> - <artifactId>xalan</artifactId> + <groupId>dom4j</groupId> + <artifactId>dom4j</artifactId> </exclusion> </exclusions> </dependency> @@ -131,6 +122,30 @@ <useChildFirstClassLoader>true</useChildFirstClassLoader> </configuration> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-enforcer-plugin</artifactId> + <executions> + <execution> + <id>enforce-plugin-size</id> + <goals> + <goal>enforce</goal> + </goals> + <phase>verify</phase> + <configuration> + <rules> + <requireFilesSize> + <maxsize>4500000</maxsize> + <minsize>4000000</minsize> + <files> + <file>${project.build.directory}/${project.build.finalName}.jar</file> + </files> + </requireFilesSize> + </rules> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> </project> |