yegor256 / rultor

DevOps team assistant that helps you merge, deploy, and release GitHub-hosted apps and libraries
https://www.rultor.com
Other
560 stars 156 forks source link

doesn't work with Maven 3.1 #254

Closed ayoubb closed 10 years ago

ayoubb commented 11 years ago

Hi, I got a problem when building rultor. It is the same exception reported by Vaibhav Paliwal here: https://groups.google.com/forum/#!topic/rultor/NOTR5Xda7OE For me I'm using Maven 3.1.0

> mvn clean install -Pqulice
...
...
...
[INFO] No files to check with Checkstyle
[INFO] No files to check with PMD
[INFO] No PMD violations found in 0 files
[INFO] XML validation is not implemented yet
[INFO] CodeNarc not required since no groovy files in D:\work\odesk\jobs\tpc2.co
m\rultor\trunk\src
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] rultor ............................................ FAILURE [4:59.014s]
[INFO] rultor-spi ........................................ SKIPPED
[INFO] rultor-base ....................................... SKIPPED
[INFO] rultor-queue ...................................... SKIPPED
[INFO] rultor-repo ....................................... SKIPPED
[INFO] rultor-users ...................................... SKIPPED
[INFO] rultor-drain ...................................... SKIPPED
[INFO] rultor-conveyer ................................... SKIPPED
[INFO] rultor-client ..................................... SKIPPED
[INFO] rultor-web ........................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5:46.037s
[INFO] Finished at: Thu Sep 05 18:45:48 GMT+01:00 2013
[INFO] Final Memory: 11M/33M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.qulice:qulice-maven-plugin:0.2.2:check (jcabi
-check) on project rultor: Execution jcabi-check of goal com.qulice:qulice-maven
-plugin:0.2.2:check failed: An API incompatibility was encountered while executi
ng com.qulice:qulice-maven-plugin:0.2.2:check: java.lang.NoSuchMethodError: org.
apache.maven.execution.MavenSession.getRepositorySession()Lorg/sonatype/aether/R
epositorySystemSession;
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>com.qulice:qulice-maven-plugin:0.2.2
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/DELL/.m2/repository/com/qulice/qulice-maven-plu
gin/0.2.2/qulice-maven-plugin-0.2.2.jar
[ERROR] urls[1] = file:/C:/Users/DELL/.m2/repository/com/qulice/qulice-spi/0.2.2
/qulice-spi-0.2.2.jar
[ERROR] urls[2] = file:/C:/Users/DELL/.m2/repository/com/qulice/qulice-checkstyl
e/0.2.2/qulice-checkstyle-0.2.2.jar
[ERROR] urls[3] = file:/C:/Users/DELL/.m2/repository/com/puppycrawl/tools/checks
tyle/5.4/checkstyle-5.4.jar
[ERROR] urls[4] = file:/C:/Users/DELL/.m2/repository/antlr/antlr/2.7.7/antlr-2.7
.7.jar
[ERROR] urls[5] = file:/C:/Users/DELL/.m2/repository/commons-beanutils/commons-b
eanutils-core/1.8.3/commons-beanutils-core-1.8.3.jar
[ERROR] urls[6] = file:/C:/Users/DELL/.m2/repository/commons-logging/commons-log
ging/1.1.1/commons-logging-1.1.1.jar
[ERROR] urls[7] = file:/C:/Users/DELL/.m2/repository/commons-cli/commons-cli/1.2
/commons-cli-1.2.jar
[ERROR] urls[8] = file:/C:/Users/DELL/.m2/repository/com/google/collections/goog
le-collections/1.0/google-collections-1.0.jar
[ERROR] urls[9] = file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_25/jre/../lib/t
ools.jar
[ERROR] urls[10] = file:/C:/Users/DELL/.m2/repository/com/qulice/qulice-pmd/0.2.
2/qulice-pmd-0.2.2.jar
[ERROR] urls[11] = file:/C:/Users/DELL/.m2/repository/pmd/pmd/4.3/pmd-4.3.jar
[ERROR] urls[12] = file:/C:/Users/DELL/.m2/repository/ant/ant/1.6/ant-1.6.jar
[ERROR] urls[13] = file:/C:/Users/DELL/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.
1.1.jar
[ERROR] urls[14] = file:/C:/Users/DELL/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar

[ERROR] urls[15] = file:/C:/Users/DELL/.m2/repository/xml-apis/xml-apis/1.3.02/x
ml-apis-1.3.02.jar
[ERROR] urls[16] = file:/C:/Users/DELL/.m2/repository/xerces/xercesImpl/2.6.2/xe
rcesImpl-2.6.2.jar
[ERROR] urls[17] = file:/C:/Users/DELL/.m2/repository/xom/xom/1.0/xom-1.0.jar
[ERROR] urls[18] = file:/C:/Users/DELL/.m2/repository/xerces/xmlParserAPIs/2.6.2
/xmlParserAPIs-2.6.2.jar
[ERROR] urls[19] = file:/C:/Users/DELL/.m2/repository/com/ibm/icu/icu4j/2.6.1/ic
u4j-2.6.1.jar
[ERROR] urls[20] = file:/C:/Users/DELL/.m2/repository/com/qulice/qulice-codenarc
/0.2.2/qulice-codenarc-0.2.2.jar
[ERROR] urls[21] = file:/C:/Users/DELL/.m2/repository/org/codenarc/CodeNarc/0.15
/CodeNarc-0.15.jar
[ERROR] urls[22] = file:/C:/Users/DELL/.m2/repository/org/gmetrics/GMetrics/0.3/
GMetrics-0.3.jar
[ERROR] urls[23] = file:/C:/Users/DELL/.m2/repository/org/codehaus/groovy/groovy
-all/1.7.5/groovy-all-1.7.5.jar
[ERROR] urls[24] = file:/C:/Users/DELL/.m2/repository/org/apache/ant/ant/1.7.1/a
nt-1.7.1.jar
[ERROR] urls[25] = file:/C:/Users/DELL/.m2/repository/org/apache/ant/ant-launche
r/1.7.1/ant-launcher-1.7.1.jar
[ERROR] urls[26] = file:/C:/Users/DELL/.m2/repository/org/slf4j/log4j-over-slf4j
/1.6.2/log4j-over-slf4j-1.6.2.jar
[ERROR] urls[27] = file:/C:/Users/DELL/.m2/repository/com/qulice/qulice-findbugs
/0.2.2/qulice-findbugs-0.2.2.jar
[ERROR] urls[28] = file:/C:/Users/DELL/.m2/repository/commons-collections/common
s-collections/3.2.1/commons-collections-3.2.1.jar
[ERROR] urls[29] = file:/C:/Users/DELL/.m2/repository/com/google/code/findbugs/f
indbugs/2.0.0/findbugs-2.0.0.jar
[ERROR] urls[30] = file:/C:/Users/DELL/.m2/repository/com/google/code/findbugs/b
cel/2.0.0/bcel-2.0.0.jar
[ERROR] urls[31] = file:/C:/Users/DELL/.m2/repository/com/google/code/findbugs/j
sr305/2.0.0/jsr305-2.0.0.jar
[ERROR] urls[32] = file:/C:/Users/DELL/.m2/repository/com/google/code/findbugs/j
FormatString/2.0.0/jFormatString-2.0.0.jar
[ERROR] urls[33] = file:/C:/Users/DELL/.m2/repository/com/google/code/findbugs/a
nnotations/2.0.0/annotations-2.0.0.jar
[ERROR] urls[34] = file:/C:/Users/DELL/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.
6.1.jar
[ERROR] urls[35] = file:/C:/Users/DELL/.m2/repository/asm/asm-tree/3.3/asm-tree-
3.3.jar
[ERROR] urls[36] = file:/C:/Users/DELL/.m2/repository/asm/asm-commons/3.3/asm-co
mmons-3.3.jar
[ERROR] urls[37] = file:/C:/Users/DELL/.m2/repository/xalan/xalan/2.7.1/xalan-2.
7.1.jar
[ERROR] urls[38] = file:/C:/Users/DELL/.m2/repository/xalan/serializer/2.7.1/ser
ializer-2.7.1.jar
[ERROR] urls[39] = file:/C:/Users/DELL/.m2/repository/com/qulice/qulice-xml/0.2.
2/qulice-xml-0.2.2.jar
[ERROR] urls[40] = file:/C:/Users/DELL/.m2/repository/commons-io/commons-io/2.1/
commons-io-2.1.jar
[ERROR] urls[41] = file:/C:/Users/DELL/.m2/repository/com/jcabi/jcabi-log/0.1.9/
jcabi-log-0.1.9.jar
[ERROR] urls[42] = file:/C:/Users/DELL/.m2/repository/org/slf4j/slf4j-api/1.6.1/
slf4j-api-1.6.1.jar
[ERROR] urls[43] = file:/C:/Users/DELL/.m2/repository/com/jcabi/jcabi-maven-slf4
j/0.1.9/jcabi-maven-slf4j-0.1.9.jar
[ERROR] urls[44] = file:/C:/Users/DELL/.m2/repository/org/sonatype/aether/aether
-util/1.11/aether-util-1.11.jar
[ERROR] urls[45] = file:/C:/Users/DELL/.m2/repository/org/codehaus/plexus/plexus
-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[46] = file:/C:/Users/DELL/.m2/repository/org/codehaus/plexus/plexus
-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[47] = file:/C:/Users/DELL/.m2/repository/org/sonatype/plexus/plexus
-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[48] = file:/C:/Users/DELL/.m2/repository/org/sonatype/plexus/plexus
-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[49] = file:/C:/Users/DELL/.m2/repository/org/apache/maven/shared/ma
ven-dependency-analyzer/1.2/maven-dependency-analyzer-1.2.jar
[ERROR] urls[50] = file:/C:/Users/DELL/.m2/repository/asm/asm/3.0/asm-3.0.jar
[ERROR] urls[51] = file:/C:/Users/DELL/.m2/repository/org/codehaus/woodstox/wstx
-asl/3.2.6/wstx-asl-3.2.6.jar
[ERROR] urls[52] = file:/C:/Users/DELL/.m2/repository/stax/stax-api/1.0.1/stax-a
pi-1.0.1.jar
[ERROR] urls[53] = file:/C:/Users/DELL/.m2/repository/org/sonatype/spice/model-b
uilder/1.3/model-builder-1.3.jar
[ERROR] urls[54] = file:/C:/Users/DELL/.m2/repository/org/apache/maven/maven-pro
ject-builder/3.0-alpha-2/maven-project-builder-3.0-alpha-2.jar
[ERROR] urls[55] = file:/C:/Users/DELL/.m2/repository/org/codehaus/plexus/plexus
-utils/2.0.6/plexus-utils-2.0.6.jar
[ERROR] urls[56] = file:/C:/Users/DELL/.m2/repository/aspectj/aspectjrt/1.5.3/as
pectjrt-1.5.3.jar
[ERROR] urls[57] = file:/C:/Users/DELL/.m2/repository/junit/junit/3.8.1/junit-3.
8.1.jar
[ERROR] urls[58] = file:/C:/Users/DELL/.m2/repository/org/sonatype/sisu/sisu-inj
ect-bean/2.3.0/sisu-inject-bean-2.3.0.jar
[ERROR] urls[59] = file:/C:/Users/DELL/.m2/repository/org/sonatype/sisu/sisu-gui
ce/3.1.0/sisu-guice-3.1.0-no_aop.jar
[ERROR] urls[60] = file:/C:/Users/DELL/.m2/repository/org/sonatype/sisu/sisu-gua
va/0.9.9/sisu-guava-0.9.9.jar
[ERROR] urls[61] = file:/C:/Users/DELL/.m2/repository/commons-lang/commons-lang/
2.6/commons-lang-2.6.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[project>com.rultor:rultor:1.
0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContaine
rException
yegor256 commented 11 years ago

The problem is that you're using Maven 3.1. Try Maven 3.0.x

yegor256 commented 11 years ago

Cause of this problem is reported here: https://github.com/tpc2/qulice/issues/106

yegor256 commented 11 years ago

works fine now

alex-palevsky commented 10 years ago

@yegor256 please don't close the issue, ask @ayoubb to do this instead, since he is the author of it