Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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
estWadlGenerator.jar 
                          -DgroupId=foo.in.shop.rest.wadl 
                          -DartifactId=WadlGenerator 
                          -Dversion=1.0 
                          -Dpackaging=jar 
                          -DlocalRepositoryPath=C:maven
epositoriesinternal

In short: How can I identify the Maven installation directory for Eclipse-embedded Maven?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
332 views
Welcome To Ask or Share your Answers For Others

1 Answer

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...