edannenberg / maven-magento-plugin

A Maven plugin for Magento projects.
Apache License 2.0
7 stars 3 forks source link

setup error #5

Open lrkwz opened 11 years ago

lrkwz commented 11 years ago

Having created a dump project executing magento:setup fails horribly, how can I fix it?

g> mvn -P mavento magento:setup
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building PatternBasedShippingTracking Module 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- magento-maven-plugin:0.9.8.2:setup (default-cli) @ pattern-based-shipping-tracking ---
[INFO] Resolving dependencies..
[INFO] Extracting magento:com.varien:1.8.0.0..
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.654s
[INFO] Finished at: Sat Oct 26 00:21:07 CEST 2013
[INFO] Final Memory: 14M/178M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal de.bbe-consulting.maven.plugin:magento-maven-plugin:0.9.8.2:setup (default-cli) on project pattern-based-shipping-tracking: Execution default-cli of goal de.bbe-consulting.maven.plugin:magento-maven-plugin:0.9.8.2:setup failed: An API incompatibility was encountered while executing de.bbe-consulting.maven.plugin:magento-maven-plugin:0.9.8.2:setup: java.lang.NoSuchMethodError: org.apache.maven.execution.MavenSession.getRepositorySession()Lorg/sonatype/aether/RepositorySystemSession;

environment

g> mvn -version                                                                                                            1
Apache Maven 3.1.0 (893ca28a1da9d5f51ac03827af98bb730128f9f2; 2013-06-28 04:15:32+0200)
Maven home: /usr/share/maven3
Java version: 1.7.0_45, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.2.0-55-generic-pae", arch: "i386", family: "unix"
edannenberg commented 11 years ago

Maven 3.1.0 is the culprit here, as they switched from sonatype aether to eclipse. For the magento:setup goal there is already a fix commited, you will run into the same problem though when goals from the maven-php-plugin are called. Will fix it as soon as i find the time, at the moment i'm sadly rather short on that.

For now stick with Maven 3.0.x and things should work.