Reputation: 1054
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
Reputation: 31595
Try with dependency:go-offline
Goal that resolves all project dependencies, including plugins and reports and their dependencies.
Upvotes: 3