BUILD Failure: DependencyResolutionException

433 views
Skip to first unread message

kiran.o...@gmail.com

unread,
Feb 21, 2016, 12:53:04 PM2/21/16
to mayocat-users

i am trying to setup the mayocat on my local machine and getting below error when running command maven clean install . Can someone please help?


[INFO] Mayocat Shop - Payments - Vendor - Paypal - Adaptive Payments SUCCESS [  0.391 s]
[INFO] Mayocat Shop - Checkout ............................ SUCCESS [  0.694 s]
[INFO] Mayocat Shop - Client .............................. SUCCESS [ 15.713 s]
[INFO] Mayocat Shop - Themes .............................. SUCCESS [  0.885 s]
[INFO] Mayocat Shop - Marketplace - Internal .............. SUCCESS [  5.258 s]
[INFO] Mayocat Shop - Application ......................... FAILURE [  1.580 s]
[INFO] Mayocat Shop - Distribution ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:41 min
[INFO] Finished at: 2016-02-21T09:00:27-08:00
[INFO] Final Memory: 169M/405M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project mayocat-shop-application: Could not resolve dependencies for project org.mayocat.shop:mayocat-shop-application:jar:0.40-SNAPSHOT: Could not find artifact org.mayocat.shop:mayocat-shop-marketplace:jar:0.40-SNAPSHOT in sonatype-nexus-snapshots (http://oss.sonatype.org/content/repositories/snapshots) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :mayocat-shop-application


[INFO] Mayocat Shop - Payments - Vendor - Paypal - Adaptive Payments SUCCESS [  0.391 s]
[INFO] Mayocat Shop - Checkout ............................ SUCCESS [  0.694 s]
[INFO] Mayocat Shop - Client .............................. SUCCESS [ 15.713 s]
[INFO] Mayocat Shop - Themes .............................. SUCCESS [  0.885 s]
[INFO] Mayocat Shop - Marketplace - Internal .............. SUCCESS [  5.258 s]
[INFO] Mayocat Shop - Application ......................... FAILURE [  1.580 s]
[INFO] Mayocat Shop - Distribution ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:41 min
[INFO] Finished at: 2016-02-21T09:00:27-08:00
[INFO] Final Memory: 169M/405M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project mayocat-shop-application: Could not resolve dependencies for project org.mayocat.shop:mayocat-shop-application:jar:0.40-SNAPSHOT: Could not find artifact org.mayocat.shop:mayocat-shop-marketplace:jar:0.40-SNAPSHOT in sonatype-nexus-snapshots (http://oss.sonatype.org/content/repositories/snapshots) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :mayocat-shop-application

yohanes marthin Hutabarat

unread,
Apr 14, 2016, 6:02:27 AM4/14/16
to mayocat-users
I have the same problem, please someone help.'Thank you

zloster

unread,
Apr 20, 2016, 10:16:26 AM4/20/16
to mayocat-users
I've managed to find the answer: the
 /shop/application/pom.xml
file is the problem. You have to edit it in order to get working maven build.
Here is the diff (the lines begging with '-'(minus) have to be deleted):
diff --git a/shop/application/pom.xml b/shop/application/pom.xml
index
2f755f2..b544973 100644
--- a/shop/application/pom.xml
+++ b/shop/application/pom.xml
@@ -169,12 +169,6 @@

         
<dependency>
             
<groupId>org.mayocat.shop</groupId>
-            <artifactId>mayocat-shop-marketplace</
artifactId>
-            <version>${project.version}</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.mayocat.shop</
groupId>
             
<artifactId>mayocat-shop-client</artifactId>
             <version>${project.version}</
version>
             
<type>zip</type>

I'll send a pull request to the github project later.

zloster

unread,
Apr 20, 2016, 11:12:18 AM4/20/16
to mayocat-users
Actually there is already a pull request that solves the problem: https://github.com/mayocat/mayocat-shop/pull/270/commits/c8cb563bd4186fd771db394acaf0ee990d43b7e6
And it seems the correct way to fix this.
Reply all
Reply to author
Forward
0 new messages