tetra 0.46.0 → 0.48.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (223) hide show
  1. data/.rubocop.yml +6 -0
  2. data/README.md +5 -12
  3. data/SPECIAL_CASES.md +3 -74
  4. data/integration-tests/build-commons.sh +5 -8
  5. data/lib/template/kit/CONTENTS +4 -3
  6. data/lib/template/kit/apache-ant-1.9.4/INSTALL +2 -0
  7. data/lib/template/kit/apache-ant-1.9.4/KEYS +1497 -0
  8. data/lib/template/kit/apache-ant-1.9.4/LICENSE +272 -0
  9. data/lib/template/kit/apache-ant-1.9.4/NOTICE +9 -0
  10. data/lib/template/kit/apache-ant-1.9.4/README +97 -0
  11. data/lib/template/kit/apache-ant-1.9.4/WHATSNEW +6108 -0
  12. data/lib/template/kit/apache-ant-1.9.4/bin/ant +336 -0
  13. data/lib/template/kit/apache-ant-1.9.4/bin/ant.bat +218 -0
  14. data/lib/template/kit/apache-ant-1.9.4/bin/ant.cmd +93 -0
  15. data/lib/template/kit/apache-ant-1.9.4/bin/antRun +24 -0
  16. data/lib/template/kit/apache-ant-1.9.4/bin/antRun.bat +50 -0
  17. data/lib/template/kit/apache-ant-1.9.4/bin/antRun.pl +66 -0
  18. data/lib/template/kit/apache-ant-1.9.4/bin/antenv.cmd +98 -0
  19. data/lib/template/kit/apache-ant-1.9.4/bin/complete-ant-cmd.pl +114 -0
  20. data/lib/template/kit/apache-ant-1.9.4/bin/envset.cmd +131 -0
  21. data/lib/template/kit/apache-ant-1.9.4/bin/lcp.bat +31 -0
  22. data/lib/template/kit/apache-ant-1.9.4/bin/runant.pl +153 -0
  23. data/lib/template/kit/apache-ant-1.9.4/bin/runant.py +102 -0
  24. data/lib/template/kit/apache-ant-1.9.4/bin/runrc.cmd +60 -0
  25. data/lib/template/kit/apache-ant-1.9.4/etc/ant-bootstrap.jar +0 -0
  26. data/lib/template/kit/apache-ant-1.9.4/etc/changelog.xsl +148 -0
  27. data/lib/template/kit/apache-ant-1.9.4/etc/checkstyle/checkstyle-frames.xsl +299 -0
  28. data/lib/template/kit/apache-ant-1.9.4/etc/checkstyle/checkstyle-text.xsl +34 -0
  29. data/lib/template/kit/apache-ant-1.9.4/etc/checkstyle/checkstyle-xdoc.xsl +130 -0
  30. data/lib/template/kit/apache-ant-1.9.4/etc/coverage-frames.xsl +489 -0
  31. data/lib/template/kit/apache-ant-1.9.4/etc/jdepend-frames.xsl +487 -0
  32. data/lib/template/kit/apache-ant-1.9.4/etc/jdepend.xsl +276 -0
  33. data/lib/template/kit/apache-ant-1.9.4/etc/junit-frames-xalan1.xsl +745 -0
  34. data/lib/template/kit/apache-ant-1.9.4/etc/junit-frames.xsl +955 -0
  35. data/lib/template/kit/apache-ant-1.9.4/etc/junit-noframes.xsl +496 -0
  36. data/lib/template/kit/apache-ant-1.9.4/etc/log.xsl +203 -0
  37. data/lib/template/kit/apache-ant-1.9.4/etc/maudit-frames.xsl +503 -0
  38. data/lib/template/kit/apache-ant-1.9.4/etc/mmetrics-frames.xsl +1026 -0
  39. data/lib/template/kit/apache-ant-1.9.4/etc/tagdiff.xsl +179 -0
  40. data/lib/template/kit/apache-ant-1.9.4/fetch.xml +335 -0
  41. data/lib/template/kit/apache-ant-1.9.4/get-m2.xml +121 -0
  42. data/lib/template/kit/apache-ant-1.9.4/lib/README +3 -0
  43. data/lib/template/kit/apache-ant-1.9.4/lib/ant-antlr.jar +0 -0
  44. data/lib/template/kit/apache-ant-1.9.4/lib/ant-antlr.pom +75 -0
  45. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-bcel.jar +0 -0
  46. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-bcel.pom +71 -0
  47. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-bsf.jar +0 -0
  48. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-bsf.pom +74 -0
  49. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-log4j.jar +0 -0
  50. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-log4j.pom +69 -0
  51. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-oro.jar +0 -0
  52. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-oro.pom +74 -0
  53. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-regexp.jar +0 -0
  54. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-regexp.pom +70 -0
  55. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-resolver.jar +0 -0
  56. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-resolver.pom +69 -0
  57. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-xalan2.jar +0 -0
  58. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-xalan2.pom +94 -0
  59. data/lib/template/kit/apache-ant-1.9.4/lib/ant-commons-logging.jar +0 -0
  60. data/lib/template/kit/apache-ant-1.9.4/lib/ant-commons-logging.pom +70 -0
  61. data/lib/template/kit/apache-ant-1.9.4/lib/ant-commons-net.jar +0 -0
  62. data/lib/template/kit/apache-ant-1.9.4/lib/ant-commons-net.pom +75 -0
  63. data/lib/template/kit/apache-ant-1.9.4/lib/ant-jai.jar +0 -0
  64. data/lib/template/kit/apache-ant-1.9.4/lib/ant-jai.pom +85 -0
  65. data/lib/template/kit/apache-ant-1.9.4/lib/ant-javamail.jar +0 -0
  66. data/lib/template/kit/apache-ant-1.9.4/lib/ant-javamail.pom +78 -0
  67. data/lib/template/kit/apache-ant-1.9.4/lib/ant-jdepend.jar +0 -0
  68. data/lib/template/kit/apache-ant-1.9.4/lib/ant-jdepend.pom +72 -0
  69. data/lib/template/kit/apache-ant-1.9.4/lib/ant-jmf.jar +0 -0
  70. data/lib/template/kit/apache-ant-1.9.4/lib/ant-jmf.pom +65 -0
  71. data/lib/template/kit/apache-ant-1.9.4/lib/ant-jsch.jar +0 -0
  72. data/lib/template/kit/apache-ant-1.9.4/lib/ant-jsch.pom +74 -0
  73. data/lib/template/kit/apache-ant-1.9.4/lib/ant-junit.jar +0 -0
  74. data/lib/template/kit/apache-ant-1.9.4/lib/ant-junit.pom +101 -0
  75. data/lib/template/kit/apache-ant-1.9.4/lib/ant-junit4.jar +0 -0
  76. data/lib/template/kit/apache-ant-1.9.4/lib/ant-junit4.pom +71 -0
  77. data/lib/template/kit/apache-ant-1.9.4/lib/ant-launcher.jar +0 -0
  78. data/lib/template/kit/apache-ant-1.9.4/lib/ant-launcher.pom +57 -0
  79. data/lib/template/kit/apache-ant-1.9.4/lib/ant-netrexx.jar +0 -0
  80. data/lib/template/kit/apache-ant-1.9.4/lib/ant-netrexx.pom +98 -0
  81. data/lib/template/kit/apache-ant-1.9.4/lib/ant-parent.pom +151 -0
  82. data/lib/template/kit/apache-ant-1.9.4/lib/ant-swing.jar +0 -0
  83. data/lib/template/kit/apache-ant-1.9.4/lib/ant-swing.pom +66 -0
  84. data/lib/template/kit/apache-ant-1.9.4/lib/ant-testutil.jar +0 -0
  85. data/lib/template/kit/apache-ant-1.9.4/lib/ant-testutil.pom +74 -0
  86. data/lib/template/kit/apache-ant-1.9.4/lib/ant.jar +0 -0
  87. data/lib/template/kit/apache-ant-1.9.4/lib/ant.pom +225 -0
  88. data/lib/template/kit/apache-ant-1.9.4/lib/libraries.properties +65 -0
  89. data/lib/template/kit/apache-maven-3.2.5/LICENSE +302 -0
  90. data/lib/template/kit/apache-maven-3.2.5/NOTICE +8 -0
  91. data/lib/template/kit/apache-maven-3.2.5/README.txt +77 -0
  92. data/lib/template/kit/apache-maven-3.2.5/bin/m2.conf +8 -0
  93. data/lib/template/kit/apache-maven-3.2.5/bin/mvn +202 -0
  94. data/lib/template/kit/apache-maven-3.2.5/bin/mvn.bat +197 -0
  95. data/lib/template/kit/apache-maven-3.2.5/bin/mvnDebug +200 -0
  96. data/lib/template/kit/apache-maven-3.2.5/bin/mvnDebug.bat +200 -0
  97. data/lib/template/kit/apache-maven-3.2.5/bin/mvnyjp +207 -0
  98. data/lib/template/kit/apache-maven-3.2.5/boot/plexus-classworlds-2.5.2.jar +0 -0
  99. data/lib/template/kit/apache-maven-3.2.5/conf/logging/simplelogger.properties +25 -0
  100. data/lib/template/kit/apache-maven-3.2.5/conf/settings.xml +257 -0
  101. data/lib/template/kit/apache-maven-3.2.5/lib/aether-api-1.0.0.v20140518.jar +0 -0
  102. data/lib/template/kit/apache-maven-3.2.5/lib/aether-api.license +261 -0
  103. data/lib/template/kit/apache-maven-3.2.5/lib/aether-connector-basic-1.0.0.v20140518.jar +0 -0
  104. data/lib/template/kit/apache-maven-3.2.5/lib/aether-connector-basic.license +261 -0
  105. data/lib/template/kit/apache-maven-3.2.5/lib/aether-impl-1.0.0.v20140518.jar +0 -0
  106. data/lib/template/kit/apache-maven-3.2.5/lib/aether-impl.license +261 -0
  107. data/lib/template/kit/apache-maven-3.2.5/lib/aether-spi-1.0.0.v20140518.jar +0 -0
  108. data/lib/template/kit/apache-maven-3.2.5/lib/aether-spi.license +261 -0
  109. data/lib/template/kit/apache-maven-3.2.5/lib/aether-transport-wagon-1.0.0.v20140518.jar +0 -0
  110. data/lib/template/kit/apache-maven-3.2.5/lib/aether-transport-wagon.license +261 -0
  111. data/lib/template/kit/apache-maven-3.2.5/lib/aether-util-1.0.0.v20140518.jar +0 -0
  112. data/lib/template/kit/apache-maven-3.2.5/lib/aether-util.license +261 -0
  113. data/lib/template/kit/apache-maven-3.2.5/lib/aopalliance-1.0.jar +0 -0
  114. data/lib/template/kit/apache-maven-3.2.5/lib/cdi-api-1.0.jar +0 -0
  115. data/lib/template/kit/apache-maven-3.2.5/lib/cdi-api.license +445 -0
  116. data/lib/template/kit/apache-maven-3.2.5/lib/commons-cli-1.2.jar +0 -0
  117. data/lib/template/kit/apache-maven-3.2.5/lib/commons-io-2.2.jar +0 -0
  118. data/lib/template/kit/apache-maven-3.2.5/lib/commons-lang-2.6.jar +0 -0
  119. data/lib/template/kit/apache-maven-3.2.5/lib/ext/README.txt +2 -0
  120. data/lib/template/kit/apache-maven-3.2.5/lib/guava-18.0.jar +0 -0
  121. data/lib/template/kit/apache-maven-3.2.5/lib/javax.inject-1.jar +0 -0
  122. data/lib/template/kit/apache-maven-3.2.5/lib/jsoup-1.7.2.jar +0 -0
  123. data/lib/template/kit/apache-maven-3.2.5/lib/jsoup.license +66 -0
  124. data/lib/template/kit/apache-maven-3.2.5/lib/jsr250-api-1.0.jar +0 -0
  125. data/lib/template/kit/apache-maven-3.2.5/lib/jsr250-api.license +406 -0
  126. data/lib/template/kit/apache-maven-3.2.5/lib/maven-aether-provider-3.2.5.jar +0 -0
  127. data/lib/template/kit/apache-maven-3.2.5/lib/maven-aether-provider.license +202 -0
  128. data/lib/template/kit/apache-maven-3.2.5/lib/maven-artifact-3.2.5.jar +0 -0
  129. data/lib/template/kit/apache-maven-3.2.5/lib/maven-artifact.license +202 -0
  130. data/lib/template/kit/apache-maven-3.2.5/lib/maven-compat-3.2.5.jar +0 -0
  131. data/lib/template/kit/apache-maven-3.2.5/lib/maven-compat.license +202 -0
  132. data/lib/template/kit/apache-maven-3.2.5/lib/maven-core-3.2.5.jar +0 -0
  133. data/lib/template/kit/apache-maven-3.2.5/lib/maven-core.license +202 -0
  134. data/lib/template/kit/apache-maven-3.2.5/lib/maven-embedder-3.2.5.jar +0 -0
  135. data/lib/template/kit/apache-maven-3.2.5/lib/maven-embedder.license +202 -0
  136. data/lib/template/kit/apache-maven-3.2.5/lib/maven-model-3.2.5.jar +0 -0
  137. data/lib/template/kit/apache-maven-3.2.5/lib/maven-model-builder-3.2.5.jar +0 -0
  138. data/lib/template/kit/apache-maven-3.2.5/lib/maven-model-builder.license +202 -0
  139. data/lib/template/kit/apache-maven-3.2.5/lib/maven-model.license +202 -0
  140. data/lib/template/kit/apache-maven-3.2.5/lib/maven-plugin-api-3.2.5.jar +0 -0
  141. data/lib/template/kit/apache-maven-3.2.5/lib/maven-plugin-api.license +202 -0
  142. data/lib/template/kit/apache-maven-3.2.5/lib/maven-repository-metadata-3.2.5.jar +0 -0
  143. data/lib/template/kit/apache-maven-3.2.5/lib/maven-repository-metadata.license +202 -0
  144. data/lib/template/kit/apache-maven-3.2.5/lib/maven-settings-3.2.5.jar +0 -0
  145. data/lib/template/kit/apache-maven-3.2.5/lib/maven-settings-builder-3.2.5.jar +0 -0
  146. data/lib/template/kit/apache-maven-3.2.5/lib/maven-settings-builder.license +202 -0
  147. data/lib/template/kit/apache-maven-3.2.5/lib/maven-settings.license +202 -0
  148. data/lib/template/kit/apache-maven-3.2.5/lib/org.eclipse.sisu.inject-0.3.0.M1.jar +0 -0
  149. data/lib/template/kit/apache-maven-3.2.5/lib/org.eclipse.sisu.inject.license +261 -0
  150. data/lib/template/kit/apache-maven-3.2.5/lib/org.eclipse.sisu.plexus-0.3.0.M1.jar +0 -0
  151. data/lib/template/kit/apache-maven-3.2.5/lib/org.eclipse.sisu.plexus.license +261 -0
  152. data/lib/template/kit/apache-maven-3.2.5/lib/plexus-cipher-1.7.jar +0 -0
  153. data/lib/template/kit/apache-maven-3.2.5/lib/plexus-cipher.license +445 -0
  154. data/lib/template/kit/apache-maven-3.2.5/lib/plexus-component-annotations-1.5.5.jar +0 -0
  155. data/lib/template/kit/apache-maven-3.2.5/lib/plexus-interpolation-1.21.jar +0 -0
  156. data/lib/template/kit/apache-maven-3.2.5/lib/plexus-sec-dispatcher-1.3.jar +0 -0
  157. data/lib/template/kit/apache-maven-3.2.5/lib/plexus-sec-dispatcher.license +445 -0
  158. data/lib/template/kit/apache-maven-3.2.5/lib/plexus-utils-3.0.20.jar +0 -0
  159. data/lib/template/kit/apache-maven-3.2.5/lib/sisu-guice-3.2.3-no_aop.jar +0 -0
  160. data/lib/template/kit/apache-maven-3.2.5/lib/slf4j-api-1.7.5.jar +0 -0
  161. data/lib/template/kit/apache-maven-3.2.5/lib/slf4j-api.license +190 -0
  162. data/lib/template/kit/apache-maven-3.2.5/lib/slf4j-simple-1.7.5.jar +0 -0
  163. data/lib/template/kit/apache-maven-3.2.5/lib/slf4j-simple.license +190 -0
  164. data/lib/template/kit/apache-maven-3.2.5/lib/wagon-file-2.8.jar +0 -0
  165. data/lib/template/kit/apache-maven-3.2.5/lib/wagon-file.license +202 -0
  166. data/lib/template/kit/apache-maven-3.2.5/lib/wagon-http-2.8-shaded.jar +0 -0
  167. data/lib/template/kit/apache-maven-3.2.5/lib/wagon-http-shared-2.8.jar +0 -0
  168. data/lib/template/kit/apache-maven-3.2.5/lib/wagon-http-shared.license +202 -0
  169. data/lib/template/kit/apache-maven-3.2.5/lib/wagon-http.license +202 -0
  170. data/lib/template/kit/apache-maven-3.2.5/lib/wagon-provider-api-2.8.jar +0 -0
  171. data/lib/template/kit/apache-maven-3.2.5/lib/wagon-provider-api.license +202 -0
  172. data/lib/tetra.rb +30 -29
  173. data/lib/tetra/facades/ant.rb +27 -0
  174. data/lib/tetra/{git.rb → facades/git.rb} +29 -24
  175. data/lib/tetra/facades/mvn.rb +44 -0
  176. data/lib/tetra/facades/process_runner.rb +65 -0
  177. data/lib/tetra/facades/tar.rb +20 -0
  178. data/lib/tetra/{kit_runner.rb → kit.rb} +3 -10
  179. data/lib/tetra/main.rb +12 -36
  180. data/lib/tetra/maven_website.rb +1 -1
  181. data/lib/tetra/packages/archivable.rb +3 -11
  182. data/lib/tetra/packages/{kit.rb → kit_package.rb} +1 -1
  183. data/lib/tetra/packages/{built_package.rb → package.rb} +2 -2
  184. data/lib/tetra/packages/scriptable.rb +27 -15
  185. data/lib/tetra/project.rb +18 -14
  186. data/lib/tetra/{commands/ant.rb → ui/ant_subcommand.rb} +5 -5
  187. data/lib/tetra/ui/dry_run_subcommand.rb +44 -0
  188. data/lib/tetra/{commands/generate_all.rb → ui/generate_all_subcommand.rb} +5 -5
  189. data/lib/tetra/{commands/generate_archive.rb → ui/generate_archive_subcommand.rb} +2 -2
  190. data/lib/tetra/{commands/generate_kit.rb → ui/generate_kit_subcommand.rb} +2 -2
  191. data/lib/tetra/{commands/generate_script.rb → ui/generate_script_subcommand.rb} +2 -2
  192. data/lib/tetra/{commands/generate_spec.rb → ui/generate_spec_subcommand.rb} +2 -2
  193. data/lib/tetra/{commands/get_pom.rb → ui/get_pom_subcommand.rb} +1 -1
  194. data/lib/tetra/{commands/init.rb → ui/init_subcommand.rb} +1 -1
  195. data/lib/tetra/{commands/move_jars_to_kit.rb → ui/move_jars_to_kit_subcommand.rb} +1 -1
  196. data/lib/tetra/{commands/mvn.rb → ui/mvn_subcommand.rb} +5 -5
  197. data/lib/tetra/{commands/base.rb → ui/subcommand.rb} +19 -6
  198. data/lib/tetra/version.rb +1 -1
  199. data/spec/lib/ant_spec.rb +36 -0
  200. data/spec/lib/archivable_spec.rb +1 -1
  201. data/spec/lib/built_package_spec.rb +6 -6
  202. data/spec/lib/kit_package_spec.rb +47 -0
  203. data/spec/lib/kit_spec.rb +8 -28
  204. data/spec/lib/mvn_spec.rb +47 -0
  205. data/spec/lib/project_spec.rb +11 -11
  206. data/spec/lib/scriptable_spec.rb +8 -16
  207. data/spec/spec_helper.rb +13 -4
  208. data/tetra.gemspec +1 -0
  209. metadata +207 -31
  210. data/lib/tetra/ant_runner.rb +0 -27
  211. data/lib/tetra/commands/download_maven_source_jars.rb +0 -29
  212. data/lib/tetra/commands/dry_run.rb +0 -17
  213. data/lib/tetra/commands/finish.rb +0 -22
  214. data/lib/tetra/commands/get_source.rb +0 -30
  215. data/lib/tetra/commands/list_kit_missing_sources.rb +0 -21
  216. data/lib/tetra/kit_checker.rb +0 -104
  217. data/lib/tetra/maven_runner.rb +0 -43
  218. data/lib/tetra/source_getter.rb +0 -41
  219. data/spec/lib/ant_runner_spec.rb +0 -45
  220. data/spec/lib/kit_checker_spec.rb +0 -119
  221. data/spec/lib/maven_runner_spec.rb +0 -68
  222. data/spec/lib/source_getter_spec.rb +0 -36
  223. data/spec/support/kit_runner_examples.rb +0 -15
@@ -0,0 +1,8 @@
1
+
2
+ Apache Maven Distribution
3
+ Copyright 2001-2014 The Apache Software Foundation
4
+
5
+ This product includes software developed at
6
+ The Apache Software Foundation (http://www.apache.org/).
7
+
8
+
@@ -0,0 +1,77 @@
1
+
2
+ Apache Maven
3
+
4
+ What is it?
5
+ -----------
6
+
7
+ Maven is a software project management and comprehension tool. Based on
8
+ the concept of a Project Object Model (POM), Maven can manage a project's
9
+ build, reporting and documentation from a central piece of information.
10
+
11
+ Documentation
12
+ -------------
13
+
14
+ The most up-to-date documentation can be found at http://maven.apache.org/.
15
+
16
+ Release Notes
17
+ -------------
18
+
19
+ The full list of changes can be found at http://maven.apache.org/release-notes.html.
20
+
21
+ System Requirements
22
+ -------------------
23
+
24
+ JDK:
25
+ 1.6 or above (this is to execute Maven - it still allows you to build against 1.3
26
+ and prior JDK's).
27
+ Memory:
28
+ No minimum requirement.
29
+ Disk:
30
+ Approximately 10MB is required for the Maven installation itself. In addition to
31
+ that, additional disk space will be used for your local Maven repository. The size
32
+ of your local repository will vary depending on usage but expect at least 500MB.
33
+ Operating System:
34
+ No minimum requirement. Start up scripts are included as shell scripts and Windows
35
+ batch files.
36
+
37
+ Installing Maven
38
+ ----------------
39
+
40
+ 1) Unpack the archive where you would like to store the binaries, eg:
41
+
42
+ Unix-based operating systems (Linux, Solaris and Mac OS X)
43
+ tar zxvf apache-maven-3.x.y.tar.gz
44
+ Windows
45
+ unzip apache-maven-3.x.y.zip
46
+
47
+ 2) A directory called "apache-maven-3.x.y" will be created.
48
+
49
+ 3) Add the bin directory to your PATH, eg:
50
+
51
+ Unix-based operating systems (Linux, Solaris and Mac OS X)
52
+ export PATH=/usr/local/apache-maven-3.x.y/bin:$PATH
53
+ Windows
54
+ set PATH="c:\program files\apache-maven-3.x.y\bin";%PATH%
55
+
56
+ 4) Make sure JAVA_HOME is set to the location of your JDK
57
+
58
+ 5) Run "mvn --version" to verify that it is correctly installed.
59
+
60
+ For complete documentation, see http://maven.apache.org/download.html#Installation
61
+
62
+ Licensing
63
+ ---------
64
+
65
+ Please see the file called LICENSE.
66
+
67
+ Maven URLS
68
+ ----------
69
+
70
+ Home Page: http://maven.apache.org/
71
+ Downloads: http://maven.apache.org/download.html
72
+ Release Notes: http://maven.apache.org/release-notes.html
73
+ Mailing Lists: http://maven.apache.org/mail-lists.html
74
+ Source Code: https://git-wip-us.apache.org/repos/asf/maven.git/apache-maven
75
+ Issue Tracking: http://jira.codehaus.org/browse/MNG
76
+ Wiki: https://cwiki.apache.org/confluence/display/MAVEN/
77
+ Available Plugins: http://maven.apache.org/plugins/index.html
@@ -0,0 +1,8 @@
1
+ main is org.apache.maven.cli.MavenCli from plexus.core
2
+
3
+ set maven.home default ${user.home}/m2
4
+
5
+ [plexus.core]
6
+ optionally ${maven.home}/lib/ext/*.jar
7
+ load ${maven.home}/lib/*.jar
8
+ load ${maven.home}/conf/logging
@@ -0,0 +1,202 @@
1
+ #!/bin/sh
2
+ # ----------------------------------------------------------------------------
3
+ # Licensed to the Apache Software Foundation (ASF) under one
4
+ # or more contributor license agreements. See the NOTICE file
5
+ # distributed with this work for additional information
6
+ # regarding copyright ownership. The ASF licenses this file
7
+ # to you under the Apache License, Version 2.0 (the
8
+ # "License"); you may not use this file except in compliance
9
+ # with the License. You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing,
14
+ # software distributed under the License is distributed on an
15
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ # KIND, either express or implied. See the License for the
17
+ # specific language governing permissions and limitations
18
+ # under the License.
19
+ # ----------------------------------------------------------------------------
20
+
21
+ # ----------------------------------------------------------------------------
22
+ # Maven2 Start Up Batch script
23
+ #
24
+ # Required ENV vars:
25
+ # ------------------
26
+ # JAVA_HOME - location of a JDK home dir
27
+ #
28
+ # Optional ENV vars
29
+ # -----------------
30
+ # M2_HOME - location of maven2's installed home dir
31
+ # MAVEN_OPTS - parameters passed to the Java VM when running Maven
32
+ # e.g. to debug Maven itself, use
33
+ # set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
34
+ # MAVEN_SKIP_RC - flag to disable loading of mavenrc files
35
+ # ----------------------------------------------------------------------------
36
+
37
+ if [ -z "$MAVEN_SKIP_RC" ] ; then
38
+
39
+ if [ -f /etc/mavenrc ] ; then
40
+ . /etc/mavenrc
41
+ fi
42
+
43
+ if [ -f "$HOME/.mavenrc" ] ; then
44
+ . "$HOME/.mavenrc"
45
+ fi
46
+
47
+ fi
48
+
49
+ # OS specific support. $var _must_ be set to either true or false.
50
+ cygwin=false;
51
+ darwin=false;
52
+ mingw=false
53
+ case "`uname`" in
54
+ CYGWIN*) cygwin=true ;;
55
+ MINGW*) mingw=true;;
56
+ Darwin*) darwin=true
57
+ #
58
+ # Look for the Apple JDKs first to preserve the existing behaviour, and then look
59
+ # for the new JDKs provided by Oracle.
60
+ #
61
+ if [ -z "$JAVA_HOME" ] && [ -L /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK ] ; then
62
+ #
63
+ # Apple JDKs
64
+ #
65
+ export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
66
+ fi
67
+
68
+ if [ -z "$JAVA_HOME" ] && [ -L /System/Library/Java/JavaVirtualMachines/CurrentJDK ] ; then
69
+ #
70
+ # Apple JDKs
71
+ #
72
+ export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home
73
+ fi
74
+
75
+ if [ -z "$JAVA_HOME" ] && [ -L "/Library/Java/JavaVirtualMachines/CurrentJDK" ] ; then
76
+ #
77
+ # Oracle JDKs
78
+ #
79
+ export JAVA_HOME=/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home
80
+ fi
81
+
82
+ if [ -z "$JAVA_HOME" ] && [ -x "/usr/libexec/java_home" ]; then
83
+ #
84
+ # Apple JDKs
85
+ #
86
+ export JAVA_HOME=/usr/libexec/java_home
87
+ fi
88
+ ;;
89
+ esac
90
+
91
+ if [ -z "$JAVA_HOME" ] ; then
92
+ if [ -r /etc/gentoo-release ] ; then
93
+ JAVA_HOME=`java-config --jre-home`
94
+ fi
95
+ fi
96
+
97
+ if [ -z "$M2_HOME" ] ; then
98
+ ## resolve links - $0 may be a link to maven's home
99
+ PRG="$0"
100
+
101
+ # need this for relative symlinks
102
+ while [ -h "$PRG" ] ; do
103
+ ls=`ls -ld "$PRG"`
104
+ link=`expr "$ls" : '.*-> \(.*\)$'`
105
+ if expr "$link" : '/.*' > /dev/null; then
106
+ PRG="$link"
107
+ else
108
+ PRG="`dirname "$PRG"`/$link"
109
+ fi
110
+ done
111
+
112
+ saveddir=`pwd`
113
+
114
+ M2_HOME=`dirname "$PRG"`/..
115
+
116
+ # make it fully qualified
117
+ M2_HOME=`cd "$M2_HOME" && pwd`
118
+
119
+ cd "$saveddir"
120
+ # echo Using m2 at $M2_HOME
121
+ fi
122
+
123
+ # For Cygwin, ensure paths are in UNIX format before anything is touched
124
+ if $cygwin ; then
125
+ [ -n "$M2_HOME" ] &&
126
+ M2_HOME=`cygpath --unix "$M2_HOME"`
127
+ [ -n "$JAVA_HOME" ] &&
128
+ JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
129
+ [ -n "$CLASSPATH" ] &&
130
+ CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
131
+ fi
132
+
133
+ # For Migwn, ensure paths are in UNIX format before anything is touched
134
+ if $mingw ; then
135
+ [ -n "$M2_HOME" ] &&
136
+ M2_HOME="`(cd "$M2_HOME"; pwd)`"
137
+ [ -n "$JAVA_HOME" ] &&
138
+ JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
139
+ # TODO classpath?
140
+ fi
141
+
142
+ if [ -z "$JAVA_HOME" ]; then
143
+ javaExecutable="`which javac`"
144
+ if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
145
+ # readlink(1) is not available as standard on Solaris 10.
146
+ readLink=`which readlink`
147
+ if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
148
+ javaExecutable="`readlink -f \"$javaExecutable\"`"
149
+ javaHome="`dirname \"$javaExecutable\"`"
150
+ javaHome=`expr "$javaHome" : '\(.*\)/bin'`
151
+ JAVA_HOME="$javaHome"
152
+ export JAVA_HOME
153
+ fi
154
+ fi
155
+ fi
156
+
157
+ if [ -z "$JAVACMD" ] ; then
158
+ if [ -n "$JAVA_HOME" ] ; then
159
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
160
+ # IBM's JDK on AIX uses strange locations for the executables
161
+ JAVACMD="$JAVA_HOME/jre/sh/java"
162
+ else
163
+ JAVACMD="$JAVA_HOME/bin/java"
164
+ fi
165
+ else
166
+ JAVACMD="`which java`"
167
+ fi
168
+ fi
169
+
170
+ if [ ! -x "$JAVACMD" ] ; then
171
+ echo "Error: JAVA_HOME is not defined correctly." >&2
172
+ echo " We cannot execute $JAVACMD" >&2
173
+ exit 1
174
+ fi
175
+
176
+ if [ -z "$JAVA_HOME" ] ; then
177
+ echo "Warning: JAVA_HOME environment variable is not set."
178
+ fi
179
+
180
+ CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
181
+
182
+ # For Cygwin, switch paths to Windows format before running java
183
+ if $cygwin; then
184
+ [ -n "$M2_HOME" ] &&
185
+ M2_HOME=`cygpath --path --windows "$M2_HOME"`
186
+ [ -n "$JAVA_HOME" ] &&
187
+ JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
188
+ [ -n "$CLASSPATH" ] &&
189
+ CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
190
+ fi
191
+
192
+ # Provide a "standardized" way to retrieve the CLI args that will
193
+ # work with both Windows and non-Windows executions.
194
+ MAVEN_CMD_LINE_ARGS="$@"
195
+ export MAVEN_CMD_LINE_ARGS
196
+
197
+ exec "$JAVACMD" \
198
+ $MAVEN_OPTS \
199
+ -classpath "${M2_HOME}"/boot/plexus-classworlds-*.jar \
200
+ "-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \
201
+ "-Dmaven.home=${M2_HOME}" \
202
+ ${CLASSWORLDS_LAUNCHER} "$@"
@@ -0,0 +1,197 @@
1
+ @REM ----------------------------------------------------------------------------
2
+ @REM Licensed to the Apache Software Foundation (ASF) under one
3
+ @REM or more contributor license agreements. See the NOTICE file
4
+ @REM distributed with this work for additional information
5
+ @REM regarding copyright ownership. The ASF licenses this file
6
+ @REM to you under the Apache License, Version 2.0 (the
7
+ @REM "License"); you may not use this file except in compliance
8
+ @REM with the License. You may obtain a copy of the License at
9
+ @REM
10
+ @REM http://www.apache.org/licenses/LICENSE-2.0
11
+ @REM
12
+ @REM Unless required by applicable law or agreed to in writing,
13
+ @REM software distributed under the License is distributed on an
14
+ @REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ @REM KIND, either express or implied. See the License for the
16
+ @REM specific language governing permissions and limitations
17
+ @REM under the License.
18
+ @REM ----------------------------------------------------------------------------
19
+
20
+ @REM ----------------------------------------------------------------------------
21
+ @REM Maven2 Start Up Batch script
22
+ @REM
23
+ @REM Required ENV vars:
24
+ @REM JAVA_HOME - location of a JDK home dir
25
+ @REM
26
+ @REM Optional ENV vars
27
+ @REM M2_HOME - location of maven2's installed home dir
28
+ @REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
29
+ @REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
30
+ @REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
31
+ @REM e.g. to debug Maven itself, use
32
+ @REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
33
+ @REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
34
+ @REM ----------------------------------------------------------------------------
35
+
36
+ @REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
37
+ @echo off
38
+ @REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
39
+ @if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
40
+
41
+ @REM set %HOME% to equivalent of $HOME
42
+ if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
43
+
44
+ @REM Execute a user defined script before this one
45
+ if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
46
+ if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
47
+ :skipRcPre
48
+
49
+ set ERROR_CODE=0
50
+
51
+ @REM set local scope for the variables with windows NT shell
52
+ if "%OS%"=="Windows_NT" @setlocal
53
+ if "%OS%"=="WINNT" @setlocal
54
+
55
+ @REM ==== START VALIDATION ====
56
+ if not "%JAVA_HOME%" == "" goto OkJHome
57
+
58
+ echo.
59
+ echo Error: JAVA_HOME not found in your environment. >&2
60
+ echo Please set the JAVA_HOME variable in your environment to match the >&2
61
+ echo location of your Java installation. >&2
62
+ echo.
63
+ goto error
64
+
65
+ :OkJHome
66
+ if exist "%JAVA_HOME%\bin\java.exe" goto chkMHome
67
+
68
+ echo.
69
+ echo Error: JAVA_HOME is set to an invalid directory. >&2
70
+ echo JAVA_HOME = "%JAVA_HOME%" >&2
71
+ echo Please set the JAVA_HOME variable in your environment to match the >&2
72
+ echo location of your Java installation. >&2
73
+ echo.
74
+ goto error
75
+
76
+ :chkMHome
77
+ if not "%M2_HOME%"=="" goto valMHome
78
+
79
+ if "%OS%"=="Windows_NT" SET "M2_HOME=%~dp0.."
80
+ if "%OS%"=="WINNT" SET "M2_HOME=%~dp0.."
81
+ if not "%M2_HOME%"=="" goto valMHome
82
+
83
+ echo.
84
+ echo Error: M2_HOME not found in your environment. >&2
85
+ echo Please set the M2_HOME variable in your environment to match the >&2
86
+ echo location of the Maven installation. >&2
87
+ echo.
88
+ goto error
89
+
90
+ :valMHome
91
+
92
+ :stripMHome
93
+ if not "_%M2_HOME:~-1%"=="_\" goto checkMBat
94
+ set "M2_HOME=%M2_HOME:~0,-1%"
95
+ goto stripMHome
96
+
97
+ :checkMBat
98
+ if exist "%M2_HOME%\bin\mvn.bat" goto init
99
+
100
+ echo.
101
+ echo Error: M2_HOME is set to an invalid directory. >&2
102
+ echo M2_HOME = "%M2_HOME%" >&2
103
+ echo Please set the M2_HOME variable in your environment to match the >&2
104
+ echo location of the Maven installation >&2
105
+ echo.
106
+ goto error
107
+ @REM ==== END VALIDATION ====
108
+
109
+ :init
110
+ @REM Decide how to startup depending on the version of windows
111
+
112
+ @REM -- Windows NT with Novell Login
113
+ if "%OS%"=="WINNT" goto WinNTNovell
114
+
115
+ @REM -- Win98ME
116
+ if NOT "%OS%"=="Windows_NT" goto Win9xArg
117
+
118
+ :WinNTNovell
119
+
120
+ @REM -- 4NT shell
121
+ if "%@eval[2+2]" == "4" goto 4NTArgs
122
+
123
+ @REM -- Regular WinNT shell
124
+ set MAVEN_CMD_LINE_ARGS=%*
125
+ goto endInit
126
+
127
+ @REM The 4NT Shell from jp software
128
+ :4NTArgs
129
+ set MAVEN_CMD_LINE_ARGS=%$
130
+ goto endInit
131
+
132
+ :Win9xArg
133
+ @REM Slurp the command line arguments. This loop allows for an unlimited number
134
+ @REM of agruments (up to the command line limit, anyway).
135
+ set MAVEN_CMD_LINE_ARGS=
136
+ :Win9xApp
137
+ if %1a==a goto endInit
138
+ set MAVEN_CMD_LINE_ARGS=%MAVEN_CMD_LINE_ARGS% %1
139
+ shift
140
+ goto Win9xApp
141
+
142
+ @REM Reaching here means variables are defined and arguments have been captured
143
+ :endInit
144
+ SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
145
+
146
+ @REM -- 4NT shell
147
+ if "%@eval[2+2]" == "4" goto 4NTCWJars
148
+
149
+ @REM -- Regular WinNT shell
150
+ for %%i in ("%M2_HOME%"\boot\plexus-classworlds-*) do set CLASSWORLDS_JAR="%%i"
151
+ goto runm2
152
+
153
+ @REM The 4NT Shell from jp software
154
+ :4NTCWJars
155
+ for %%i in ("%M2_HOME%\boot\plexus-classworlds-*") do set CLASSWORLDS_JAR="%%i"
156
+ goto runm2
157
+
158
+ @REM Start MAVEN2
159
+ :runm2
160
+ set CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
161
+ %MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath %CLASSWORLDS_JAR% "-Dclassworlds.conf=%M2_HOME%\bin\m2.conf" "-Dmaven.home=%M2_HOME%" %CLASSWORLDS_LAUNCHER% %MAVEN_CMD_LINE_ARGS%
162
+ if ERRORLEVEL 1 goto error
163
+ goto end
164
+
165
+ :error
166
+ if "%OS%"=="Windows_NT" @endlocal
167
+ if "%OS%"=="WINNT" @endlocal
168
+ set ERROR_CODE=1
169
+
170
+ :end
171
+ @REM set local scope for the variables with windows NT shell
172
+ if "%OS%"=="Windows_NT" goto endNT
173
+ if "%OS%"=="WINNT" goto endNT
174
+
175
+ @REM For old DOS remove the set variables from ENV - we assume they were not set
176
+ @REM before we started - at least we don't leave any baggage around
177
+ set MAVEN_JAVA_EXE=
178
+ set MAVEN_CMD_LINE_ARGS=
179
+ goto postExec
180
+
181
+ :endNT
182
+ @endlocal & set ERROR_CODE=%ERROR_CODE%
183
+
184
+ :postExec
185
+
186
+ if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
187
+ if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
188
+ :skipRcPost
189
+
190
+ @REM pause the batch file if MAVEN_BATCH_PAUSE is set to 'on'
191
+ if "%MAVEN_BATCH_PAUSE%" == "on" pause
192
+
193
+ if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
194
+
195
+ cmd /C exit /B %ERROR_CODE%
196
+
197
+