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-pmd-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-pmd-plugin/pom.xml')
-rw-r--r-- | plugins/sonar-pmd-plugin/pom.xml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/plugins/sonar-pmd-plugin/pom.xml b/plugins/sonar-pmd-plugin/pom.xml index d9bd2f22b0c..9ef0e735d59 100644 --- a/plugins/sonar-pmd-plugin/pom.xml +++ b/plugins/sonar-pmd-plugin/pom.xml @@ -42,6 +42,10 @@ <groupId>ant</groupId> <artifactId>ant</artifactId> </exclusion> + <exclusion> + <groupId>xom</groupId> + <artifactId>xom</artifactId> + </exclusion> </exclusions> </dependency> @@ -91,6 +95,30 @@ <pluginClass>org.sonar.plugins.pmd.PmdPlugin</pluginClass> </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>1500000</maxsize> + <minsize>1000000</minsize> + <files> + <file>${project.build.directory}/${project.build.finalName}.jar</file> + </files> + </requireFilesSize> + </rules> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> </project> |