I installed the jar in the local repository with the command:
mvn install:install-file -Dfile=aaa.jar -DgroupId=bbb -DartifactId=ccc -Dversion=1.0 -Dpackaging=jar Now I want to remove it. I try:
mvn dependency:purge-local-repository -DmanualInclude=bbb-ccc
I get the error:
[ERROR] Failed to execute goal. Org.apache.maven.plugins: maven-dependency-plugin: 2.8: purge-local-repository (default-cli): ..). Please verify you invoked Maven from the correct directory. -> [Help 1] `
Now I create the pom.xml pom.xml :
<?xml version="1.0" encoding="UTF-8"?> <project> <groupId>bbb</groupId> <artifactId>ccc</artifactId> <version>1.0</version> <modelVersion>4.0.0</modelVersion> <packaging>jar</packaging> <properties> <groupId>${project.groupId}</groupId> <artifactId>${project.artifactId}</artifactId> <version>${project.version}</version> <packaging>${project.packaging}</packaging> <file>aaa.jar</file> </properties> </project> Now without the problem is removed. Can you still delete the jar without this pom.xml ?
I use 3.2.5 (windows x64).