Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-clean-plugin -Dversion=2.2 -Dpackaging=maven-plugin -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-clean-plugin -Dversion=2.2 -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Mon Apr 19 12:37:07 EDT 2021
[INFO] Final Memory: 4M/481M
[INFO] -------------------------------
@soneyahossain, hello Did you get any way to solve this issue about slicing? I need to use it, but I'm facing the same problem. Can you suggest anything about slicing?
java version "1.6.0_45" Apache Maven 2.2.0 (r788681; 2009-06-26 09:04:01-0400)
./assemble.sh Found 6 projects:
Pass 1: run clean and install on all projects iteratively, until all succeed:
Last error output: [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building JAVASLICER Tracing Component [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ Downloading: http://repository.codehaus.org//org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.jar [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-clean-plugin:maven-plugin:2.2' from repository codehaus-m2-repository (http://repository.codehaus.org/): repository.codehaus.org Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.jar [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-clean-plugin:maven-plugin:2.2' from repository central (http://repo1.maven.org/maven2): Failed to transfer file: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.jar. Return code is: 501 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any repository
Try downloading the file manually from the project website.
Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-clean-plugin -Dversion=2.2 -Dpackaging=maven-plugin -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-clean-plugin -Dversion=2.2 -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
org.apache.maven.plugins:maven-clean-plugin:maven-plugin:2.2
from the specified remote repositories: central (http://repo1.maven.org/maven2), codehaus-m2-repository (http://repository.codehaus.org/)
org.apache.maven.plugins:maven-clean-plugin:maven-plugin:2.2
from the specified remote repositories: central (http://repo1.maven.org/maven2), codehaus-m2-repository (http://repository.codehaus.org/)
[INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Mon Apr 19 12:37:07 EDT 2021 [INFO] Final Memory: 4M/481M [INFO] -------------------------------