stg-tud / MUDetect

Mozilla Public License 2.0
25 stars 9 forks source link

mvn package fails due to the unavailability of de.tu-darmstadt.stg:mubench.cli:jar:0.0.11 #24

Open DehengYang opened 4 years ago

DehengYang commented 4 years ago

When I run mvn package -DskipTests in the folder of MUDetect, the following error occurs:

[ERROR] Failed to execute goal on project mubench: Could not resolve dependencies for project de.tu-darmstadt.stg.mudetect:mubench:jar:0.0.3-SNAPSHOT: Failure to find de.tu-darmstadt.stg:mubench.cli:jar:0.0.11 in http://www.st.informatik.tu-darmstadt.de/artifacts/mubench/mvn/ was cached in the local repository, resolution will not be reattempted until the update interval of stg-mubench has elapsed or updates are forced -> [Help 1]

I think it may be caused by the unavailability of de.tu-darmstadt.stg:mubench.cli:jar:0.0.11 in the given repository http://www.st.informatik.tu-darmstadt.de/artifacts/mubench/mvn/, which also cannot be visited via web browser.

It would be much appreciated if any advice or guidance could be provided. Thank you!

P.S. I use a workaround by running mvn clean package -DskipTests && mvn install for https://github.com/stg-tud/MUBench/tree/master/mubench.cli. I am not sure if this will work.

DehengYang commented 4 years ago

After careful check and attempt, I make the mvn package -DskipTests of MUDetect pass. The process is:

git clone https://github.com/stg-tud/MUBench.git
# then check and find a proper commit for installation
# "Release new detector versions." corresponds to 0.12
# "Resolve #178: Support multiple source/classes directories per project… " refers to 0.11, however, this commit does not work for MUDetect.
# finally the commit 25c2ee works.
git reset --hard 25c2ee9991a1e22ce5fbc86fb5636041d1bed6c5
cd mubench.cli/
mvn clean install -DskipTests

# and finally, the name of the installed jar need to be modified (i.e., delete the 'snapshot')

After that, I can successfully run mvn package -DskipTests in MUDetect dir.

This is a wordaround, seemingly. Thank you.

references: