shopizer-ecommerce / shopizer

Shopizer java e-commerce software
http://www.shopizer.com
Apache License 2.0
3.55k stars 2.99k forks source link

Unable to use the: mvn clean install command to install the project #371

Open FRC-design opened 4 years ago

FRC-design commented 4 years ago

### My java version is 1.8.0_231, Maven version is 3.6.3. When using mvn clean install, the windows cmd reports an issue like the following:

[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for shopizer 2.8.0: [INFO] [INFO] shopizer ........................................... SUCCESS [ 39.265 s] [INFO] sm-core-model ...................................... SUCCESS [ 20.951 s] [INFO] sm-core-modules .................................... FAILURE [ 0.919 s] [INFO] sm-core ............................................ SKIPPED [INFO] sm-shop-model ...................................... SKIPPED [INFO] sm-shop ............................................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:19 min [INFO] Finished at: 2019-11-26T17:32:25-05:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project sm-core-modules: Could not resolve dependencies for project com.shopizer:sm-core-modules:jar:2.8.0: Failed to collect dependencies at com.shopizer:sm-core-model:jar:2.7.0: Failed to read artifact descriptor for com.shopizer:sm-core-model:jar:2.7.0: Could not find artifact com.shopizer:shopizer:pom:2.7.0 in oss-sonatype (https://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 -rf :sm-core-modules

pkaffij2008 commented 4 years ago

I'm also experiencing the same issue. Any update?

[INFO] [INFO] --------------------< com.shopizer:sm-core-modules >-------------------- [INFO] Building sm-core-modules 2.8.0 [3/6] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for shopizer 2.8.0: [INFO] [INFO] shopizer ........................................... SUCCESS [ 4.063 s] [INFO] sm-core-model ...................................... SUCCESS [ 17.509 s] [INFO] sm-core-modules .................................... FAILURE [ 0.060 s] [INFO] sm-core ............................................ SKIPPED [INFO] sm-shop-model ...................................... SKIPPED [INFO] sm-shop ............................................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 24.332 s [INFO] Finished at: 2019-11-27T02:17:49-05:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project sm-core-modules: Could not resolve dependencies for project com.shopizer:sm-core-modules:jar:2.8.0: Failed to collect dependencies at com.shopizer:sm-core-model:jar:2.7.0: Failed to read artifact descriptor for com.shopizer:sm-core-model:jar:2.7.0: Failure to find com.shopizer:shopizer:pom:2.7.0 in https://oss.sonatype.org/content/repositories/snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of oss-sonatype has elapsed or updates are forced -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

BrandonBocheng commented 4 years ago

when I use the 2.7.0, everything runs well

linuxidefix commented 4 years ago

same problem

linuxidefix commented 4 years ago

Something wrong about the version ? 2.8.0 instead of 2.7.0 ? https://github.com/shopizer-ecommerce/shopizer/blob/ea2fd8b2f085782ba681a7ed91c3fd3b56be9f0b/sm-core-modules/pom.xml#L49

shilan commented 4 years ago

I changed them all to 2.8.0, yet didn’t work :( in eclipse it complains that it cannot find the artifacts.

BrandonBocheng commented 4 years ago

just download the 2.7.0 packages

steowens commented 4 years ago

The problem is in the pom.xml in sm-core-model. The pom for sm-core-model says version 2.7.0, the dependency on sm-core-model uses {shopizer.version} which is set to 2.8.0 in the parent pom. Also noticed that shopizer.version was defined again in the sm-core-modules/pom.xml After updating that property to 2.8.0 in the sm-core-modles/pom.xml everything built.

steowens commented 4 years ago

Holy cow what a mess. You have 2 maven projects outside of shopizer which cause a circular reference. :shopizer-shipping-distance-processor which references an older version of shopizer modules, as though that won't cause a problem (it will). So the fix I am going to try is clone them all and set all the versions to 2.8.0 and get rid of all this business of using versions of things that don't line up. Sorry guys but I don't feel comfortable submitting changes to someone elses project but at least I can tell you how I fixed it for myself. Not there yet thought

serguei3000 commented 4 years ago

so as a temporary solution - change shopizer-shipping-distance.version in parent POM to 2.7.0 (it helped me to install)

shopizer-ecommerce commented 4 years ago

Edit root pom.xml

Change shopizer-shipping-distance.version from 2.8.0 to 2.8.1

2.8.1
mkriventsev commented 4 years ago

welp @shopizer-ecommerce Replacing shopizer-shipping-distance.version with 2.8.1 in the root pom.xml doesn't work for me.

steowens's solution rules. Thank you.