Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
211 views
in Technique[技术] by (71.8m points)

java - How to download a jar with a different name using Maven Dependency plugin?

In my Maven repository I have two jars. app.jar and app-exec.jar. I'm trying to download app-exec.jar using Maven Dependency plugin

If I'll just run it with:

-Dartifact=com.example.app:LATEST

it will download app.jar

I tried to add -DartifactId=app-exec.jar but it seems to be ignored.

How can I direct the plugin to download the other jar?

Thanks


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

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...