How to manually install an artifact in Maven 2?
Posted
by liangzan
on Stack Overflow
See other posts from Stack Overflow
or by liangzan
Published on 2009-01-14T07:54:27Z
Indexed on
2010/05/14
10:04 UTC
Read the original article
Hit count: 212
Hi,
I've encountered some errors when I tried to install an artifact manually with Maven 2. I wanted to install a jar from a local directory with the command
mvn install:install-file -Dfile=jta-1.0.1B.jar
But Maven gave a build error which reads like:
Invalid task '.01B.jar': you must
specify a valid lifecycle phase, or a
goal in the format plugin:goal or
pluginGroupId:pluginArtifactId:pluginVersion:goal
Is there a mistake with my command?
© Stack Overflow or respective owner