cloudsim icon indicating copy to clipboard operation
cloudsim copied to clipboard

The POM for cloudsim:jar:7.0.0-alpha is missing

Open digitzh opened this issue 1 year ago • 4 comments

I followed README.md to install cloudsim on WSL2. When I run command mvn exec:java ... in README.md, an error happens:

$ mvn exec:java -pl modules/cloudsim-examples/ -Dexec.mainClass=org.cloudbus.cloudsim.examples.CloudSimExample1
[INFO] Scanning for projects...
[INFO]
[INFO] --------------< org.cloudbus.cloudsim:cloudsim-examples >---------------
[INFO] Building cloudsim-examples 7.0.0-alpha
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for org.cloudbus.cloudsim:cloudsim:jar:7.0.0-alpha is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.384 s
[INFO] Finished at: 2025-03-15T10:34:06+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project cloudsim-examples: Could not resolve dependencies for project org.cloudbus.cloudsim:cloudsim-examples:jar:7.0.0-alpha
[ERROR] dependency: org.cloudbus.cloudsim:cloudsim:jar:7.0.0-alpha (compile)
[ERROR]         org.cloudbus.cloudsim:cloudsim:jar:7.0.0-alpha was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced

It says the jar was not found in https://repo.maven.apache.org/maven2. I opened the link, but didn't find cloudbus in (https://repo.maven.apache.org/maven2/org/):

Image

Is there any change about the groupId or the version, so that pom.xml needs an update?

digitzh avatar Mar 15 '25 02:03 digitzh

Hi @digitzh, I have no experience with WSL2 sorry, maybe @Astabol can be of help, since he wrote that part of the README?

There is no cloudsim jar on maven, you need to compile it locally, is it related to the fact that you didn't complete the compilation process (issue #203)?

deRemo avatar Mar 21 '25 22:03 deRemo

You need to do this and it'll work!

mvn install:install-file -Dfile=./modules/cloudsim/target/cloudsim-7.0.0-alpha.jar
-DgroupId=org.cloudbus.cloudsim
-DartifactId=cloudsim
-Dversion=7.0.0-alpha
-Dpackaging=jar

lcsvillela avatar Mar 25 '25 15:03 lcsvillela

Hi @digitzh, using mvn clean install instead of mvn clean package should automatically move the jar to the m2 repository folder and fix the issue. I updated the README

deRemo avatar Jun 14 '25 19:06 deRemo

Hi @digitzh, I have no experience with WSL2 sorry, maybe @Astabol can be of help, since he wrote that part of the README?

There is no cloudsim jar on maven, you need to compile it locally, is it related to the fact that you didn't complete the compilation process (issue #203)?

Hi @deRemo, sorry for very late reply. I was absent. It was working with mvn clean install when I committed. Externally I set the JAVA_HOME path and exported with PATH.

Thank You

Astabol avatar Aug 05 '25 18:08 Astabol