My objective is to install a jar file in a Maven repository. This post explains how to do an install with MVN.
But but since I have Maven embedded in Eclipse, I don’t know where to run the following command:
mvn install:install-file -Dfile=C:\lib\rest\WadlGenerator.jar \
-DgroupId=foo.in.shop.rest.wadl \
-DartifactId=WadlGenerator \
-Dversion=1.0 \
-Dpackaging=jar \
-DlocalRepositoryPath=C:\maven\repositories\internal
In short: How can I identify the Maven installation directory for Eclipse-embedded Maven?
From eclipse you can do:
Run -> Run Configurations -> Maven Build (double click)
Your goal is install:install-file
And also you should fill parameters’ keys and values
P. S. But I think that it is more better to have external maven installation in system