オフラインでソースを持っていく場合、assembly pluginが使えます。
$ mvn assembly:assembly -DdescriptorId=src [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'assembly'. [INFO] ------------------------------------------------------------------------ [INFO] Building sizeof [INFO] task-segment: [assembly:assembly] (aggregator-style) [INFO] ------------------------------------------------------------------------ [INFO] Preparing assembly:assembly [INFO] ------------------------------------------------------------------------ [INFO] Building sizeof [INFO] ------------------------------------------------------------------------ [INFO] [resources:resources {execution: default-resources}] [WARNING] Using platform encoding (SJIS actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory /Users/Documents/tmp/sizeof/src/main/resources [INFO] [compiler:compile {execution: default-compile}] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources {execution: default-testResources}] [WARNING] Using platform encoding (SJIS actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory /Users/Documents/tmp/sizeof/src/test/resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test {execution: default-test}] [INFO] Surefire report directory: /Users/Documents/tmp/sizeof/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running local.sa.AppTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.027 sec Results : Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 [INFO] [jar:jar {execution: default-jar}] [INFO] [assembly:assembly {execution: default-cli}] [INFO] Building tar : /Users/Documents/tmp/sizeof/target/sizeof-1.0-SNAPSHOT-src.tar.gz [INFO] Building tar : /Users/Documents/tmp/sizeof/target/sizeof-1.0-SNAPSHOT-src.tar.bz2 [INFO] Building zip: /Users/Documents/tmp/sizeof/target/sizeof-1.0-SNAPSHOT-src.zip [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5 seconds [INFO] Finished at: Wed Jan 27 23:16:29 JST 2010 [INFO] Final Memory: 34M/79M [INFO] ------------------------------------------------------------------------ $