cynepnaxa
cynepnaxa

Reputation: 1054

dependency:copy-dependencies include plugin dependencies

How to copy project's plugin dependencies? I run

mvn -DuseRepositoryLayout=true -DoutputDirectory=projectRepo dependency:copy-dependencies

but only project dependencies copied, so offline build fails:

D:\proj>mvn package -offline -Dmaven.repo.local=projectRepo 
[INFO] Scanning for projects...
...
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its 
dependencies could not be resolved: Cannot access central (http://repo.maven.ap
ache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven
-resources-plugin:jar:2.6 has not been downloaded from it before. -> [Help 1]
...

Upvotes: 0

Views: 922

Answers (1)

MariuszS
MariuszS

Reputation: 31595

Try with dependency:go-offline

Goal that resolves all project dependencies, including plugins and reports and their dependencies.

Upvotes: 3

Related Questions