I want to install a custom plugin manually using the following:

mvn install:install-file -Dfile=custom-plugin-1.0-SNAPSHOT.jar
-DgroupId=com.foo.mojo -DartifactId=custom-maven-plugin
-Dpackaging=maven-plugin -Dversion=1.0-SNAPSHOT

The jar file is installed in the local repository but not the .pom file.

When a goal of the custom plugin is executed, Maven can't find the
plugin and gives the following error:

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: com.foo.mojo
ArtifactId: custom-maven-plugin
Version: 1.0-SNAPSHOT

Reason: Unable to download the artifact from any repository

 com.foo.mojo:custom-maven-plugin:pom:1.0-SNAPSHOT

from the specified remote repositories:
 central (http://repo1.maven.org/maven2)

It seems Maven complains the missing .pom file in the local
repository.  Since the pom.xml actually in the jar file, shouldn't
install:install-file install the .pom file?

--
Willie Vu

HKJUG - http://hkjug.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to