Re: Using dependency plugin to build minimal local repository to run unit tests

2015-09-10 Thread Andrew Wang
Hi all, thanks for prompt replies! A common theme I'm hearing is to point to a clean repository and then do the build. The thing is, there are additional dependencies that are only pulled down when tests are actually run. Even doing `mvn test -DskipTests` still left me missing a surefire-junit4

Using dependency plugin to build minimal local repository to run unit tests

2015-09-10 Thread Andrew Wang
Hi Maven experts, I'm trying to get a minimal set of local repository contents to be able to run unit tests for a project in offline mode. The dependency plugin documentation indicates that by default it's test scope, which is just what I want, so I did something like this (Maven 3.0.4): # Copy

Re: Using dependency plugin to build minimal local repository to run unit tests

2015-09-10 Thread Mark Eggers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, I don't know if this would help: 1. Set up a repository on your local machine 2. Configure that repository to proxy remote repositories 3. Set your settings.xml to point to that local repository 4. Build normally Then when you're off-line,

Re: Using dependency plugin to build minimal local repository to run unit tests

2015-09-10 Thread Bernd Eckenfels
Just run the Job you want to run with a fresh/empty local repository. > Am 11.09.2015 um 01:16 schrieb Andrew Wang : > > Hi Maven experts, > > I'm trying to get a minimal set of local repository contents to be able to > run unit tests for a project in offline mode.

Re: Using dependency plugin to build minimal local repository to run unit tests

2015-09-10 Thread Laird Nelson
Hello; you might also want to look at https://maven.apache.org/plugins/maven-dependency-plugin/go-offline-mojo.html . Best, Laird -- http://about.me/lairdnelson On Thu, Sep 10, 2015 at 4:29 PM Mark Eggers wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 >