From 5cf57718aa5be65433714df53cc9c951d0fdb87d Mon Sep 17 00:00:00 2001 From: gil Date: Jun 19 2015 15:44:13 +0000 Subject: disable checkstyle plugin --- diff --git a/shrinkwrap.spec b/shrinkwrap.spec index 0549290..4e6d719 100644 --- a/shrinkwrap.spec +++ b/shrinkwrap.spec @@ -15,7 +15,7 @@ BuildRequires: mvn(org.jboss:jboss-parent:pom:) BuildRequires: mvn(org.jboss.apiviz:apiviz) BuildRequires: mvn(junit:junit) BuildRequires: maven-local -BuildRequires: maven-checkstyle-plugin +#BuildRequires: maven-checkstyle-plugin BuildRequires: maven-enforcer-plugin BuildRequires: maven-source-plugin @@ -41,13 +41,25 @@ This package contains javadoc for %{name}. %pom_disable_module dist # remove env.JAVA"x"_HOME -%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-compiler-plugin']/pom:configuration/pom:executable" -%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-surefire-plugin']/pom:configuration/pom:jvm" api -%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-compiler-plugin']/pom:configuration/pom:executable" api-nio2 -%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-compiler-plugin']/pom:configuration/pom:executable" impl-nio2 -%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-surefire-plugin']/pom:configuration/pom:jvm" impl-base +%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-compiler-plugin']/pom:configuration/pom:executable" +%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-surefire-plugin']/pom:configuration/pom:jvm" api +%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-compiler-plugin']/pom:configuration/pom:executable" api-nio2 +%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-compiler-plugin']/pom:configuration/pom:executable" impl-nio2 +%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-surefire-plugin']/pom:configuration/pom:jvm" impl-base %pom_xpath_remove "pom:profiles" impl-base +# [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.12:check +# (checkstyle-report) on project shrinkwrap-api: Failed during checkstyle configuration: +# cannot initialize module TreeWalker - Unable to instantiate RedundantThrows: +# Unable to instantiate RedundantThrowsCheck +%pom_remove_plugin :maven-checkstyle-plugin +%pom_remove_plugin :maven-checkstyle-plugin api +%pom_remove_plugin :maven-checkstyle-plugin api-nio2 +%pom_remove_plugin :maven-checkstyle-plugin impl-base +%pom_remove_plugin :maven-checkstyle-plugin impl-nio2 +%pom_remove_plugin :maven-checkstyle-plugin spi + + sed -i 's/\r//' LICENSE %mvn_file :%{name}-api %{name}/api @@ -57,6 +69,9 @@ sed -i 's/\r//' LICENSE %mvn_file :%{name}-impl-nio2 %{name}/impl-nio2 %mvn_file :%{name}-spi %{name}/spi +%mvn_package :%{name}-api::tests: +%mvn_package :%{name}-impl-base::tests: + %build %mvn_build @@ -64,13 +79,8 @@ sed -i 's/\r//' LICENSE %install %mvn_install -install -pm 644 api/target/%{name}-api-%{namedversion}-tests.jar %{buildroot}%{_javadir}/%{name}/api-tests.jar -install -pm 644 impl-base/target/%{name}-impl-base-%{namedversion}-tests.jar %{buildroot}%{_javadir}/%{name}/impl-base-tests.jar - %files -f .mfiles %dir %{_javadir}/%{name} -%{_javadir}/%{name}/api-tests.jar -%{_javadir}/%{name}/impl-base-tests.jar %license LICENSE %files javadoc -f .mfiles-javadoc