Skip to content
Browse files

Removed it tests. Couldn't get a clean checkout.

git-svn-id: https://svn.apache.org/repos/asf/maven/sandbox/branches/MNG-3536@656498 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent e50e832 commit 276aae77e343af4eaf3913f25cb15aaa9b733a6a Britton Isbell committed May 15, 2008
Showing with 0 additions and 9,671 deletions.
  1. +0 −149 core-integration-testing/ITProblems.txt
  2. +0 −43 core-integration-testing/core-integration-testing-plugins/maven-it-plugin-all/pom.xml
  3. +0 −22 .../maven-it-plugin-all/src/main/java/org/apache/maven/plugin/coreit/AggregatorDependenciesMojo.java
  4. +0 −58 core-integration-testing/core-integration-testing-plugins/maven-it-plugin-configuration/pom.xml
  5. +0 −155 ...plugin-configuration/src/main/java/org/apache/maven/plugin/coreit/PluginConfigurationEmitter.java
  6. +0 −43 core-integration-testing/core-integration-testing-plugins/maven-it-plugin-context-passing/pom.xml
  7. +0 −78 ...ugins/maven-it-plugin-context-passing/src/main/java/org/apache/maven/plugin/coreit/CatchMojo.java
  8. +0 −39 ...ugins/maven-it-plugin-context-passing/src/main/java/org/apache/maven/plugin/coreit/ThrowMojo.java
  9. +0 −43 core-integration-testing/core-integration-testing-plugins/maven-it-plugin-fork/pom.xml
  10. +0 −54 ...g-plugins/maven-it-plugin-fork/src/main/java/org/apache/maven/plugin/coreit/CoreItForkerMojo.java
  11. +0 −54 ...ugins/maven-it-plugin-fork/src/main/java/org/apache/maven/plugin/coreit/CoreItGoalForkerMojo.java
  12. +0 −151 ...testing-plugins/maven-it-plugin-fork/src/main/java/org/apache/maven/plugin/coreit/CoreItMojo.java
  13. +0 −28 ...-integration-testing-plugins/maven-it-plugin-fork/src/main/resources/META-INF/maven/lifecycle.xml
  14. +0 −43 ...ration-testing/core-integration-testing-plugins/maven-it-plugin-generate-envar-properties/pom.xml
  15. +0 −52 ...r-properties/src/main/java/org/apache/maven/plugin/coreit/InterpolatedEnvarConfigurationMojo.java
  16. +0 −43 ...-integration-testing/core-integration-testing-plugins/maven-it-plugin-generate-properties/pom.xml
  17. +0 −92 ...ate-properties/src/main/java/org/apache/maven/plugin/coreit/InterpolatedPomConfigurationMojo.java
  18. +0 −48 core-integration-testing/core-integration-testing-plugins/maven-it-plugin-loadable/pom.xml
  19. +0 −59 ...g-plugins/maven-it-plugin-loadable/src/main/java/org/apache/maven/plugin/coreit/LoadableMojo.java
  20. +0 −43 core-integration-testing/core-integration-testing-plugins/maven-it-plugin-no-project/pom.xml
  21. +0 −79 ...lugins/maven-it-plugin-no-project/src/main/java/org/apache/maven/plugin/coreit/NoProjectMojo.java
  22. +0 −53 core-integration-testing/core-integration-testing-plugins/maven-it-plugin-packaging/pom.xml
  23. +0 −81 ...plugins/maven-it-plugin-packaging/src/main/java/org/apache/maven/plugin/coreit/PackagingMojo.java
  24. +0 −27 ...ation-testing-plugins/maven-it-plugin-packaging/src/main/resources/META-INF/plexus/components.xml
  25. +0 −43 ...gration-testing/core-integration-testing-plugins/maven-it-plugin-parameter-implementation/pom.xml
  26. +0 −7 ...ns/maven-it-plugin-parameter-implementation/src/main/java/org/apache/maven/plugin/coreit/Bla.java
  27. +0 −42 ...eter-implementation/src/main/java/org/apache/maven/plugin/coreit/ParameterImplementationMojo.java
  28. +0 −26 ...en-it-plugin-parameter-implementation/src/main/java/org/apache/maven/plugin/coreit/sub/MyBla.java
  29. +0 −49 ...ntegration-testing/core-integration-testing-plugins/maven-it-plugin-project-interpolation/pom.xml
  30. +0 −47 ...ject-interpolation/src/main/java/org/apache/maven/plugin/coreit/PluginParamInterpolationMojo.java
  31. +0 −47 ...project-interpolation/src/main/java/org/apache/maven/plugin/coreit/PropertyInterpolationMojo.java
  32. +0 −43 core-integration-testing/core-integration-testing-plugins/maven-it-plugin-setter/pom.xml
  33. +0 −113 ...ns/maven-it-plugin-setter/src/main/java/org/apache/maven/plugin/coreit/CoreItMojoWithSetters.java
  34. +0 −53 core-integration-testing/core-integration-testing-plugins/maven-it-plugin-touch/pom.xml
  35. +0 −151 ...esting-plugins/maven-it-plugin-touch/src/main/java/org/apache/maven/plugin/coreit/CoreItMojo.java
  36. +0 −43 core-integration-testing/core-integration-testing-plugins/maven-it-plugin-uses-properties/pom.xml
  37. +0 −41 ...en-it-plugin-uses-properties/src/main/java/org/apache/maven/plugin/coreit/UsesPropertiesMojo.java
  38. +0 −44 core-integration-testing/core-integration-testing-plugins/pom.xml
  39. +0 −50 core-integration-testing/core-integration-testing-support/pom.xml
  40. +0 −33 core-integration-testing/core-integration-testing-support/src/main/assembly/repo.xml
  41. +0 −31 ...pache/maven/its/maven-core-it-support-old-location/1.1/maven-core-it-support-old-location-1.1.pom
  42. BIN ...upport/src/main/repo/org/apache/maven/its/maven-core-it-support/1.0/maven-core-it-support-1.0.jar
  43. +0 −25 ...upport/src/main/repo/org/apache/maven/its/maven-core-it-support/1.0/maven-core-it-support-1.0.pom
  44. BIN ...upport/src/main/repo/org/apache/maven/its/maven-core-it-support/1.1/maven-core-it-support-1.1.jar
  45. +0 −25 ...upport/src/main/repo/org/apache/maven/its/maven-core-it-support/1.1/maven-core-it-support-1.1.pom
  46. BIN ...ort/src/main/repo/org/apache/maven/its/maven-core-it-support/1.2/maven-core-it-support-1.2-it.jar
  47. +0 −36 ...upport/src/main/repo/org/apache/maven/its/maven-core-it-support/1.2/maven-core-it-support-1.2.pom
  48. BIN ...upport/src/main/repo/org/apache/maven/its/maven-core-it-support/1.3/maven-core-it-support-1.3.jar
  49. +0 −48 ...upport/src/main/repo/org/apache/maven/its/maven-core-it-support/1.3/maven-core-it-support-1.3.pom
  50. BIN ...upport/src/main/repo/org/apache/maven/its/maven-core-it-support/1.4/maven-core-it-support-1.4.jar
  51. +0 −42 ...upport/src/main/repo/org/apache/maven/its/maven-core-it-support/1.4/maven-core-it-support-1.4.pom
  52. +0 −38 core-integration-testing/core-integration-testing-wagon/pom.xml
  53. +0 −117 ...n-testing-wagon/src/main/java/org/apache/maven/wagon/providers/ssh/external/ScpExternalWagon.java
  54. +0 −70 core-integration-testing/core-integration-tests/pom.xml
  55. +0 −248 .../core-integration-tests/src/test/java/org/apache/maven/integrationtests/IntegrationTestSuite.java
  56. +0 −33 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0000Test.java
  57. +0 −31 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0001Test.java
  58. +0 −33 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0002Test.java
  59. +0 −33 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0003Test.java
  60. +0 −29 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0004Test.java
  61. +0 −29 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0005Test.java
  62. +0 −26 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0006Test.java
  63. +0 −33 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0007Test.java
  64. +0 −32 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0008Test.java
  65. +0 −31 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0009Test.java
  66. +0 −33 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0010Test.java
  67. +0 −27 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0011Test.java
  68. +0 −28 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0012Test.java
  69. +0 −37 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0013Test.java
  70. +0 −28 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0014Test.java
  71. +0 −36 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0016Test.java
  72. +0 −30 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0017Test.java
  73. +0 −31 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0018Test.java
  74. +0 −27 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0019Test.java
  75. +0 −34 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0020Test.java
  76. +0 −33 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0021Test.java
  77. +0 −32 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0022Test.java
  78. +0 −34 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0023Test.java
  79. +0 −28 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0024Test.java
  80. +0 −28 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0025Test.java
  81. +0 −37 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0026Test.java
  82. +0 −32 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0027Test.java
  83. +0 −28 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0028Test.java
  84. +0 −29 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0029Test.java
  85. +0 −32 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0030Test.java
  86. +0 −46 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0031Test.java
  87. +0 −30 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0032Test.java
  88. +0 −29 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0033Test.java
  89. +0 −30 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0034Test.java
  90. +0 −32 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0035Test.java
  91. +0 −27 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0036Test.java
  92. +0 −32 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0037Test.java
  93. +0 −33 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0038Test.java
  94. +0 −35 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0039Test.java
  95. +0 −27 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0040Test.java
  96. +0 −30 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0041Test.java
  97. +0 −34 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0042Test.java
  98. +0 −38 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0043Test.java
  99. +0 −32 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0044Test.java
  100. +0 −34 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0045Test.java
  101. +0 −36 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0046Test.java
  102. +0 −28 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0047Test.java
  103. +0 −28 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0048Test.java
  104. +0 −29 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0049Test.java
  105. +0 −28 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0050Test.java
  106. +0 −39 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0051Test.java
  107. +0 −34 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0052Test.java
  108. +0 −35 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0053Test.java
  109. +0 −30 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0054Test.java
  110. +0 −31 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0055Test.java
  111. +0 −33 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0056Test.java
  112. +0 −30 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0057Test.java
  113. +0 −33 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0058Test.java
  114. +0 −32 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0059Test.java
  115. +0 −32 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0060Test.java
  116. +0 −30 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0061Test.java
  117. +0 −30 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0062Test.java
  118. +0 −30 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0063Test.java
  119. +0 −30 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0064Test.java
  120. +0 −28 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0065Test.java
  121. +0 −32 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0066Test.java
  122. +0 −33 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0067Test.java
  123. +0 −32 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0068Test.java
  124. +0 −32 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0069Test.java
  125. +0 −29 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0070Test.java
  126. +0 −29 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0071Test.java
  127. +0 −28 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0072Test.java
  128. +0 −33 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0073Test.java
  129. +0 −28 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0074Test.java
  130. +0 −36 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0075Test.java
  131. +0 −28 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0076Test.java
  132. +0 −29 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0077Test.java
  133. +0 −29 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0078Test.java
  134. +0 −31 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0079Test.java
  135. +0 −35 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0080Test.java
  136. +0 −27 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0081Test.java
  137. +0 −28 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0082Test.java
  138. +0 −35 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0083Test.java
  139. +0 −46 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0084Test.java
  140. +0 −32 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0085Test.java
  141. +0 −28 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0086Test.java
  142. +0 −28 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0087Test.java
  143. +0 −28 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0088Test.java
  144. +0 −29 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0089Test.java
  145. +0 −32 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0090Test.java
  146. +0 −32 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0091Test.java
  147. +0 −39 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0092Test.java
  148. +0 −26 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0094Test.java
  149. +0 −41 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0095Test.java
  150. +0 −26 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0096Test.java
  151. +0 −29 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0097Test.java
  152. +0 −34 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0098Test.java
  153. +0 −28 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0099Test.java
  154. +0 −41 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0100Test.java
  155. +0 −33 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0101Test.java
  156. +0 −39 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0102Test.java
  157. +0 −28 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0103Test.java
  158. +0 −26 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0104Test.java
  159. +0 −32 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0105Test.java
  160. +0 −29 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0106Test.java
  161. +0 −33 ...sting/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0107Test.java
  162. +0 −302 ...egration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0108SnapshotUpdateTest.java
  163. +0 −135 ...tegration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0109ReleaseUpdateTest.java
  164. +0 −28 .../java/org/apache/maven/integrationtests/MavenIT0110PluginDependenciesComeFromPluginReposTest.java
  165. +0 −51 .../org/apache/maven/integrationtests/MavenIT0111PluginsThatRequireAResourceFromAnExtensionTest.java
  166. +0 −55 ...ts/src/test/java/org/apache/maven/integrationtests/MavenIT0112ExtensionsThatDragDependencies.java
  167. +0 −60 ...est/java/org/apache/maven/integrationtests/MavenIT0113ServerAuthzAvailableToWagonMgrInPlugin.java
  168. +0 −50 ...ts/src/test/java/org/apache/maven/integrationtests/MavenIT0114ExtensionThatProvidesResources.java
  169. +0 −59 ...ava/org/apache/maven/integrationtests/MavenIT0115CustomArtifactHandlerAndCustomLifecycleTest.java
  170. +0 −31 ...-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0118AttachedArtifactsInReactor.java
  171. +0 −45 ...tegration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0119PluginPrefixOrder.java
  172. +0 −47 ...gration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0120EjbClientDependency.java
  173. +0 −65 ...ion-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0121TransitiveDepManVersion.java
  174. +0 −30 ...s/src/test/java/org/apache/maven/integrationtests/MavenIT0122ReactorDependencyResolutionTest.java
  175. +0 −25 ...tests/src/test/java/org/apache/maven/integrationtests/MavenIT0123SnapshotRangeRepositoryTest.java
  176. +0 −37 ...src/test/java/org/apache/maven/integrationtests/MavenIT0124PomExtensionComponentOverrideTest.java
  177. +0 −37 ...-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0125NewestConflictResolverTest.java
  178. +0 −55 ...tegration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0126TestJarDependency.java
  179. +0 −50 ...egration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0127AntrunDependencies.java
  180. +0 −26 .../test/java/org/apache/maven/integrationtests/MavenIT0128DistMgmtSiteUrlParentCalculationTest.java
  181. +0 −42 ...va/org/apache/maven/integrationtests/MavenIT0129ResourceProvidedToAPluginAsAPluginDependency.java
  182. +0 −45 ...on-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng1412DependenciesOrderTest.java
  183. +0 −34 ...sts/src/test/java/org/apache/maven/integrationtests/MavenITmng1491ReactorArtifactIdCollision.java
  184. +0 −43 ...ests/src/test/java/org/apache/maven/integrationtests/MavenITmng1493NonStandardModulePomNames.java
  185. +0 −44 .../java/org/apache/maven/integrationtests/MavenITmng2045testJarDependenciesBrokenInReactorTest.java
  186. +0 −104 ...sts/src/test/java/org/apache/maven/integrationtests/MavenITmng2123VersionRangeDependencyTest.java
  187. +0 −39 ...src/test/java/org/apache/maven/integrationtests/MavenITmng2234ActiveProfilesFromSettingsTest.java
  188. +0 −44 ...egration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2254PomEncodingTest.java
  189. +0 −60 ...test/java/org/apache/maven/integrationtests/MavenITmng2277AggregatorAndResolutionPluginsTest.java
  190. +0 −90 ...ts/src/test/java/org/apache/maven/integrationtests/MavenITmng2339BadProjectInterpolationTest.java
  191. +0 −45 ...tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2744checksumVerificationTest.java
  192. +0 −48 ...ion-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2861RelocationsAndRanges.java
  193. +0 −350 ...on-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2883LegacyRepoOfflineTest.java
  194. +0 −106 ...tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2972OverridePluginDependency.java
  195. +0 −87 ...ests/src/test/java/org/apache/maven/integrationtests/MavenITmng3099SettingsProfilesWithNoPOM.java
  196. +0 −78 ...egration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3220ImportScopeTest.java
  197. +0 −107 ...egration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3221InfiniteForking.java
  198. +0 −39 .../src/test/java/org/apache/maven/integrationtests/MavenITmng3259DepsDroppedInMultiModuleBuild.java
  199. +0 −43 ...tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3268MultipleDashPCommandLine.java
  200. +0 −77 ...n-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3284UsingCachedPluginsTest.java
  201. +0 −87 ...-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3331ModulePathNormalization.java
  202. +0 −73 .../org/apache/maven/integrationtests/MavenITmng3341MetadataUpdatedFromDeploymentRepositoryTest.java
  203. +0 −57 ...rc/test/java/org/apache/maven/integrationtests/MavenITmng3355TranslatedPathInterpolationTest.java
  204. +0 −82 ...ests/src/test/java/org/apache/maven/integrationtests/MavenITmng3372DirectInvocationOfPlugins.java
  205. +0 −84 .../src/test/java/org/apache/maven/integrationtests/MavenITmng3391ImportScopeErrorScenariosTest.java
  206. +0 −108 .../src/test/java/org/apache/maven/integrationtests/MavenITmng3394POMPluginVersionDominanceTest.java
  207. +0 −76 ...org/apache/maven/integrationtests/MavenITmng3396DependencyManagementForOverConstrainedRanges.java
Sorry, we could not display the entire diff because too many files (978) changed.
View
149 core-integration-testing/ITProblems.txt
@@ -1,149 +0,0 @@
-* Instructions
-
-Running the following from the top-level directory builds a distributable:
-
-----
-mvn install
-----
-
-If you wish to also run the integration tests themselves:
-
-----
-mvn -Prun-its install
-----
-
-This command can also be run from the core-integration-tests directory if the prerequisite artifacts have already been
-installed or deployed.
-
-* Reusing the suite
-
-The suite is bundled up as a JAR containing all the tests and resources. All artifacts are now versioned according to the
-version of Maven they are testing (currently, 2.1-SNAPSHOT), though it can be run against older versions as the verifier
-will detect and omit tests that require the newer version of Maven to pass.
-
-* Outstanding Issues
-
-The top things that could be done:
-
-1) The issues that would be most helpful that could be tackled on a piecewise basis by many would be to take plugin
- specific ITs out of the ITs. There are many in there for the surefire plugin so while you're doing that you can look
- at it. Piecewise but probably totally simple because you have to replace it with an IT that actually tests what it
- was testing. A lot of time I have had to make a new IT plugin flavour.
-
-2) The next issue of importance would be to collect all the in IT plugin plugins, invokers and verifiers and align all
- these.
-
-3) Once 2) is done then we wire the embedder option into the resulting invoker.
-
-4) Proper isolation. The tests currently pick up your Maven settings file and current local repository. A clean local
- repo can be used but it would result in a lot of unnecessary artifact retrieval. This fails in a locked down
- environment (as additional repositories declared in IT 92, 94 and 120 are ignored). It also causes other risks.
- A possible solution is to construct a repository artifact (using a POM with the dependency plugin to create an
- assembly) that represents everything used by the ITs, then to have the setUp lay that out as a remote repo and use a
- controlled settings.xml that uses a clean local repository, and mirrors central to that remote repository.
-
-5) The support artifacts are currently deployed to the central repository, meaning they can get out of sync with those
- in SVN (unless they are assumed to have been 'released'). After solving (4), these could be injected into the
- constructed repository instead.
-
-6) It's not obvious how to run them from and IDE and that's where I've found it to be most convenient to run them.
- In particular, the resources directory is treated as test sources, which is not the case as each are projects
-
-7) it0119 places artifacts in the o.a.m.plugins and o.c.mojo group IDs to test plugin prefix order instead of using a
- replacement settings file and subgroups of o.a.m.its as it should
-
-Other issues:
-
- - [ ] An IT should be completely self-contained so that the problem
- can be understood by looking in one place, in one Maven
- project.
- - [ ] We should be able to create an Archetype so that users can
- easily create ITs for us. The is not completed but we do have the
- core-integration-test-sample directory with has a sample I
- offered to users.
- - [ ] We should be able to easily integrate the IT into a larger
- run where we can use forked or embedded execution.
- - [ ] We should create Archetypes for all categories of problems so
- that anyone can generate tests cases for us. Then there is so
- much that we can do in terms of automating this process of
- checking tests for quality along with the patches.
- - [ ] automate the testing of ITs submitted by users
- - [ ] Each IT should have its own repository if it needs resources
- from repository. We can't mess with a users repository when
- testing.
- - [ ] We need to have a file system based remote repository for
- testing
- - [ ] We need a primary run that can done entirely offline to simply test
- the guts of Maven from a baseline, then a secondary run possibly using
- the exact same repository except served via different means like http,
- ftp, scp which would allow us to find all the holes in the transport
- mechanisms.
- - [ ] We need to standardize on integration testing in general. We
- have people going all over the place and it's a disaster.
- - [ ] We have too many IT plugins (3)
- - [ ] We have too many invokers (5)
- - [ ] We have too many verifiers (3)
- - [ ] The ITs should run nicely from an IDE. Solution: this does
- work but requires that you run mvn clean
- resources:testResources first as the IDE doesn't know how to
- set that up. Needs to be fully fixed. But it is much nicer
- running this stuff in your IDE.
-- [-] Problems with ITs
- - [ ] it0006 is an integration test for the verifier plugin.
- - [ ] it0014 uses the compiler plugin to test plugin configuration.
- - [ ] it0016 is an integration test for the WAR plugin.
- - [ ] it0017 is an integration test for the EJB plugin.
- - [ ] it0018 uses real dependencies to test artifact resolution.
- - [ ] it0020 tests beanshell mojo support.
- - [ ] it0024 uses the compiler plugin to test mojo configuration.
- - [ ] it0028 uses the compiler plugin to test mojo configuration.
- - [ ] it0029 uses the compiler plugin to test for pluginManagement
- injection of plugin configuration.
- - [ ] it0033 is an integration test for the EAR plugin.
- - [ ] it0043 uses the help plugin to look at the state of the final
- POM, we should have this built into Maven for testing.
- - [ ] it0047 uses plexus-container-default for testing.
- - [ ] it0048 uses the surefire plugin to test default value
- population for mojo parameters.
- - [ ] it0050 is an integration test for the surefire plugin.
- - [ ] it0051 is an integration test for the release plugin.
- - [ ] it0052 is an integration test for the release plugin.
- - [ ] it0054 is an integration test for the resources plugin.
- - [ ] it0055 is an integration test for the compiler plugin.
- - [ ] it0056 uses the compiler plugin to test multiple executions.
- - [ ] it0060 uses the compiler plugin to test aggregation of list
- configuration items when using 'combine.children=append'
- attribute.
- - [ ] it0063 tests JDK 1.4.2 specifics.
- - [ ] it0068 uses the modello plugin to test repository
- accumulation (i'm not sure what that means, John?)
- - [ ] it0069 uses classworlds dependency to test offline mode.
- - [ ] it0070 is an integration test for the RAR plugin.
- - [ ] it0074 uses the compiler plugin to test mojo configuration.
- - [ ] it0076 uses the WAR plugin to test pluginManagement.
- - [ ] it0078 uses the compiler plugin to test pluginManagement.
- - [ ] it0079 uses the source plugin to test that attached artifacts
- have the same build number as the primary artifact.
- - [ ] it0080 uses the WAR plugin to test an artifact handler that
- specifies no contribution to transitive dependencies. if the
- behavior of this handler changed the test would break.
- - [ ] it0081 uses production dependency of wagon as a dependency
- - [ ] it0083 uses the WAR plugin to test an artifact handler that
- the WAR artifact handler currently behaves like
- - [ ] it0086 uses production dependency of bsh to test classloading
- - [ ] it0087 uses prodcution dependency of commons-logging to test
- classloading
- - [ ] it0089 is an integration test for the checkstyle plugin,
- and places an artifact in the wrong group ID
- - [x] it0094 has a test that attempts to access a protected field
- in a ClassRealm
- - [ ] it0095 uses the help and verifier plugins to test URL
- calculation
- - [ ] it0100 uses the antrun plugin to make sure
- ${parent.artifactId} resolves correctly
- - [ ] it0102 uses the help and antrun plugins to test profile
- activation
- - [ ] it0104 uses the surefire plugin to test interpolation
- - [ ] it0105 is an integration test for the resources plugin
- - [ ] artifactIds should be aligned with directories
-
View
43 core-integration-testing/core-integration-testing-plugins/maven-it-plugin-all/pom.xml
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- ~ Copyright 2005-2006 The Apache Software Foundation.
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License");
- ~ you may not use this file except in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>maven-it-plugins</artifactId>
- <groupId>org.apache.maven.its.plugins</groupId>
- <version>2.1-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>maven-it-plugin-all</artifactId>
- <packaging>maven-plugin</packaging>
- <name>Maven Integration Test Plugin :: This plugin should contain the mojos needed by all tests.</name>
- <inceptionYear>2007</inceptionYear>
-
- <properties>
- <maven.test.skip>true</maven.test.skip>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-plugin-api</artifactId>
- <version>2.0</version>
- </dependency>
- </dependencies>
-</project>
View
22 ...t-plugin-all/src/main/java/org/apache/maven/plugin/coreit/AggregatorDependenciesMojo.java
@@ -1,22 +0,0 @@
-package org.apache.maven.plugin.coreit;
-
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-
-/**
- * @requiresDependencyResolution test
- * @aggregator
- * @goal aggregator-dependencies
- * @phase validate
- */
-public class AggregatorDependenciesMojo
- extends AbstractMojo
-{
-
-
- public void execute()
- throws MojoExecutionException
- {
- //nothing to do, we are checking Maven's behavior here.
- }
-}
View
58 ...ntegration-testing/core-integration-testing-plugins/maven-it-plugin-configuration/pom.xml
@@ -1,58 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- ~ Copyright 2005-2006 The Apache Software Foundation.
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License");
- ~ you may not use this file except in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>maven-it-plugins</artifactId>
- <groupId>org.apache.maven.its.plugins</groupId>
- <version>2.1-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>maven-it-plugin-configuration</artifactId>
- <packaging>maven-plugin</packaging>
- <name>Maven Integration Test Plugin :: Configuration</name>
- <description>
- A plugin that allows any configuration in the form of a DOM which allows inspection after
- configuration processing inside Maven's core.
- </description>
- <inceptionYear>2001</inceptionYear>
- <dependencies>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-plugin-api</artifactId>
- <version>2.0</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-project</artifactId>
- <version>2.0</version>
- </dependency>
- <dependency>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-utils</artifactId>
- <version>1.4</version>
- </dependency>
- <dependency>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-container-default</artifactId>
- <version>1.0-alpha-9</version>
- </dependency>
- </dependencies>
-</project>
-
View
155 ...onfiguration/src/main/java/org/apache/maven/plugin/coreit/PluginConfigurationEmitter.java
@@ -1,155 +0,0 @@
-package org.apache.maven.plugin.coreit;
-
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.project.MavenProject;
-import org.codehaus.plexus.configuration.PlexusConfiguration;
-
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.Writer;
-import java.io.OutputStream;
-import java.io.FileOutputStream;
-import java.util.Properties;
-
-//MAPI: This is a canidate for the internal state dump (ISD). This is probably similar to what is in the help plugin.
-
-// Compare:
-// MavenProject
-// PluginExpressionEvaluator
-// Raw DOM
-//
-// Currently we don't have the means to easily test this inside the core. So this will be a model to drive
-// making the core more testable.
-
-/**
- * @goal config
- * @phase generate-resources
- * @description Goal produces a raw string with contains full interpolated plugin configurations.
- */
-public class PluginConfigurationEmitter
- extends AbstractMojo
-{
- /**
- * The MavenProject we will use for comparision.
- *
- * @parameter expression="${project}"
- */
- private MavenProject project;
-
- // How to enumerate all the possible expressions that can be used.
-
- /**
- * This is the raw interpolated DOM will be used for comparison.
- *
- * @parameter expression="${dom}"
- */
- private PlexusConfiguration dom;
-
- /** @parameter expression="${directory}" default-value="${project.build.directory}" */
- private File directory;
-
- /**
- * Where to place the serialized version of the DOM for analysis.
- *
- * @parameter expression="${fileName}" default-value="interpolated-plugin-configuration.xml"
- */
- private String fileName;
-
- public void execute()
- throws MojoExecutionException
- {
- if ( !directory.exists() )
- {
- directory.mkdirs();
- }
-
- emitMavenProjectValues();
-
- emitExpressionEvaluatorValues();
-
- emitRawDomValues();
- }
-
- private void emitMavenProjectValues()
- throws MojoExecutionException
- {
- try
- {
- Properties p = new Properties();
-
- p.setProperty( "project.build.directory", directory.getAbsolutePath() );
-
- File file = new File( directory, "maven-project-output.txt" );
-
- OutputStream os = new FileOutputStream( file );
-
- p.store( os, "expression evaluator values" );
-
- os.close();
- }
- catch ( IOException e )
- {
- throw new MojoExecutionException( "Error writing out plugin configuration.", e );
- }
- }
-
- private void emitExpressionEvaluatorValues()
- throws MojoExecutionException
- {
- try
- {
- Properties p = new Properties();
-
- p.setProperty( "project.build.directory", directory.getAbsolutePath() );
-
- File file = new File( directory, "expression-evaluator-output.txt" );
-
- OutputStream os = new FileOutputStream( file );
-
- p.store( os, "expression evaluator values" );
-
- os.close();
- }
- catch ( IOException e )
- {
- throw new MojoExecutionException( "Error writing out plugin configuration.", e );
- }
- }
-
- private void emitRawDomValues()
- throws MojoExecutionException
- {
- try
- {
- File file = new File( directory, fileName );
-
- Writer writer = new FileWriter( file );
-
- writer.write( dom.toString() );
-
- writer.close();
- }
- catch ( IOException e )
- {
- throw new MojoExecutionException( "Error writing out plugin configuration.", e );
- }
- }
-}
View
43 ...egration-testing/core-integration-testing-plugins/maven-it-plugin-context-passing/pom.xml
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- ~ Copyright 2005-2006 The Apache Software Foundation.
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License");
- ~ you may not use this file except in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>maven-it-plugins</artifactId>
- <groupId>org.apache.maven.its.plugins</groupId>
- <version>2.1-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>maven-it-plugin-context-passing</artifactId>
- <packaging>maven-plugin</packaging>
- <name>Maven Integration Test Plugin :: Context Passing</name>
- <inceptionYear>2006</inceptionYear>
-
- <properties>
- <maven.test.skip>true</maven.test.skip>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-plugin-api</artifactId>
- <version>2.0</version>
- </dependency>
- </dependencies>
-</project>
View
78 ...ven-it-plugin-context-passing/src/main/java/org/apache/maven/plugin/coreit/CatchMojo.java
@@ -1,78 +0,0 @@
-package org.apache.maven.plugin.coreit;
-
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.Writer;
-
-/**
- * "Catch" a parameter "thrown" by the ThrowMojo through the plugin context, and
- * write a file based on it's value to the build output directory.
- *
- * @goal catch
- */
-public class CatchMojo
- extends AbstractMojo
-{
-
- /**
- * @parameter expression="${project.build.directory}"
- * @required
- * @readonly
- */
- private File outDir;
-
- public File getOutDir()
- {
- return outDir;
- }
-
- public void setOutDir( File outDir )
- {
- this.outDir = outDir;
- }
-
- public void execute()
- throws MojoExecutionException
- {
- String value = (String) getPluginContext().get( ThrowMojo.THROWN_PARAMETER );
-
- if ( !outDir.exists() )
- {
- outDir.mkdirs();
- }
-
- File outfile = new File( outDir, value );
-
- Writer writer = null;
- try
- {
- writer = new FileWriter( outfile );
-
- writer.write( value );
-
- writer.flush();
- }
- catch ( IOException e )
- {
- throw new MojoExecutionException( "Cannot write output file: " + outfile, e );
- }
- finally
- {
- if ( writer != null )
- {
- try
- {
- writer.close();
- }
- catch ( IOException e )
- {
- }
- }
- }
- }
-
-}
View
39 ...ven-it-plugin-context-passing/src/main/java/org/apache/maven/plugin/coreit/ThrowMojo.java
@@ -1,39 +0,0 @@
-package org.apache.maven.plugin.coreit;
-
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-
-/**
- * "Throw" a parameter into the plugin context, for the "catch" mojo to
- * pickup and process.
- *
- * @goal throw
- */
-public class ThrowMojo
- extends AbstractMojo
-{
-
- public static final String THROWN_PARAMETER = "throw-parameter";
-
- /**
- * @parameter expression="${value}" default-value="thrown"
- */
- private String value;
-
- public void setValue( String value )
- {
- this.value = value;
- }
-
- public String getValue()
- {
- return value;
- }
-
- public void execute()
- throws MojoExecutionException
- {
- getPluginContext().put( THROWN_PARAMETER, value );
- }
-
-}
View
43 core-integration-testing/core-integration-testing-plugins/maven-it-plugin-fork/pom.xml
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- ~ Copyright 2005-2006 The Apache Software Foundation.
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License");
- ~ you may not use this file except in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>maven-it-plugins</artifactId>
- <groupId>org.apache.maven.its.plugins</groupId>
- <version>2.1-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>maven-it-plugin-fork</artifactId>
- <packaging>maven-plugin</packaging>
- <name>Maven Integration Test Plugin :: Fork</name>
- <inceptionYear>2006</inceptionYear>
- <dependencies>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-plugin-api</artifactId>
- <version>2.0</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-project</artifactId>
- <version>2.0</version>
- </dependency>
- </dependencies>
-</project>
View
54 ...s/maven-it-plugin-fork/src/main/java/org/apache/maven/plugin/coreit/CoreItForkerMojo.java
@@ -1,54 +0,0 @@
-package org.apache.maven.plugin.coreit;
-
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.project.MavenProject;
-
-/**
- * @goal fork
- *
- * @execute phase="generate-sources" lifecycle="foo"
- */
-public class CoreItForkerMojo
- extends AbstractMojo
-{
- /**
- * @parameter expression="${project}"
- */
- private MavenProject project;
-
- /**
- * @parameter expression="${executedProject}"
- */
- private MavenProject executedProject;
-
- public void execute()
- throws MojoExecutionException
- {
- if ( !executedProject.getBuild().getFinalName().equals( "coreitified" ) )
- {
- throw new MojoExecutionException( "Unexpected result, final name of executed project is " + executedProject.getBuild().getFinalName() );
- }
-
- if ( project.getBuild().getFinalName().equals( "coreitified" ) )
- {
- throw new MojoExecutionException( "forked project was polluted" );
- }
- }
-}
View
54 ...ven-it-plugin-fork/src/main/java/org/apache/maven/plugin/coreit/CoreItGoalForkerMojo.java
@@ -1,54 +0,0 @@
-package org.apache.maven.plugin.coreit;
-
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.project.MavenProject;
-
-/**
- * @goal fork-goal
- *
- * @execute goal="touch"
- */
-public class CoreItGoalForkerMojo
- extends AbstractMojo
-{
- /**
- * @parameter expression="${project}"
- */
- private MavenProject project;
-
- /**
- * @parameter expression="${executedProject}"
- */
- private MavenProject executedProject;
-
- public void execute()
- throws MojoExecutionException
- {
- if ( !executedProject.getBuild().getFinalName().equals( "coreitified" ) )
- {
- throw new MojoExecutionException( "Unexpected result, final name of executed project is " + executedProject.getBuild().getFinalName() );
- }
-
- if ( project.getBuild().getFinalName().equals( "coreitified" ) )
- {
- throw new MojoExecutionException( "forked project was polluted" );
- }
- }
-}
View
151 ...plugins/maven-it-plugin-fork/src/main/java/org/apache/maven/plugin/coreit/CoreItMojo.java
@@ -1,151 +0,0 @@
-package org.apache.maven.plugin.coreit;
-
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.project.MavenProject;
-
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.util.Map;
-
-/**
- * @goal touch
- *
- * @phase process-sources
- *
- * @description Goal which cleans the build
- */
-public class CoreItMojo
- extends AbstractMojo
-{
- /**
- * @parameter expression="${project}"
- */
- private MavenProject project;
-
- /**
- * @parameter expression="${project.build.directory}"
- * @required
- */
- private String outputDirectory;
-
- /** Test setting of plugin-artifacts on the PluginDescriptor instance.
- * @parameter expression="${plugin.artifactMap}"
- * @required
- */
- private Map pluginArtifacts;
-
- /**
- * @parameter expression="target/test-basedir-alignment"
- */
- private File basedirAlignmentDirectory;
-
- /**
- * @parameter alias="pluginFile"
- */
- private String pluginItem = "foo";
-
- /**
- * @parameter
- */
- private String goalItem = "bar";
-
- /**
- * @parameter expression="${artifactToFile}"
- */
- private String artifactToFile;
-
- /**
- * @parameter expression="${fail}"
- */
- private boolean fail = false;
-
- public void execute()
- throws MojoExecutionException
- {
- if ( fail )
- {
- throw new MojoExecutionException( "Failing per \'fail\' parameter (specified in pom or system properties)" );
- }
-
- touch( new File( outputDirectory ), "touch.txt" );
-
- // This parameter should be aligned to the basedir as the parameter type is specified
- // as java.io.File
-
- if ( basedirAlignmentDirectory.getPath().equals( "target/test-basedir-alignment" ) )
- {
- throw new MojoExecutionException( "basedirAlignmentDirectory not aligned" );
- }
-
- touch( basedirAlignmentDirectory, "touch.txt" );
-
- File outDir = new File( outputDirectory );
-
- // Test parameter setting
- if ( pluginItem != null )
- {
- touch( outDir, pluginItem );
- }
-
- if ( goalItem != null )
- {
- touch( outDir, goalItem );
- }
-
- if ( artifactToFile != null )
- {
- Artifact artifact = (Artifact) pluginArtifacts.get( artifactToFile );
-
- File artifactFile = artifact.getFile();
-
- String filename = artifactFile.getAbsolutePath().replace('/', '_').replace(':', '_') + ".txt";
-
- touch( outDir, filename );
- }
-
- project.getBuild().setFinalName( "coreitified" );
- }
-
- private static void touch( File dir, String file )
- throws MojoExecutionException
- {
- try
- {
- if ( !dir.exists() )
- {
- dir.mkdirs();
- }
-
- File touch = new File( dir, file );
-
- FileWriter w = new FileWriter( touch );
-
- w.write( file );
-
- w.close();
- }
- catch ( IOException e )
- {
- throw new MojoExecutionException( "Error touching file", e );
- }
- }
-}
View
28 ...tion-testing-plugins/maven-it-plugin-fork/src/main/resources/META-INF/maven/lifecycle.xml
@@ -1,28 +0,0 @@
-<lifecycles>
- <lifecycle>
- <id>foo</id>
- <phases>
- <phase>
- <id>generate-sources</id>
- <executions>
- <execution>
- <configuration>
- <outputDirectory>${project.build.directory}/forked</outputDirectory>
- </configuration>
- <goals>
- <goal>touch</goal>
- </goals>
- </execution>
- <execution>
- <configuration>
- <outputDirectory>${project.build.directory}/forked2</outputDirectory>
- </configuration>
- <goals>
- <goal>touch</goal>
- </goals>
- </execution>
- </executions>
- </phase>
- </phases>
- </lifecycle>
-</lifecycles>
View
43 ...esting/core-integration-testing-plugins/maven-it-plugin-generate-envar-properties/pom.xml
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- ~ Copyright 2005-2006 The Apache Software Foundation.
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License");
- ~ you may not use this file except in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>maven-it-plugins</artifactId>
- <groupId>org.apache.maven.its.plugins</groupId>
- <version>2.1-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>maven-it-plugin-generate-envar-properties</artifactId>
- <packaging>maven-plugin</packaging>
- <name>Maven Integration Test Plugin :: Envar</name>
- <inceptionYear>2006</inceptionYear>
-
- <properties>
- <maven.test.skip>true</maven.test.skip>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-plugin-api</artifactId>
- <version>2.0</version>
- </dependency>
- </dependencies>
-</project>
View
52 ...ties/src/main/java/org/apache/maven/plugin/coreit/InterpolatedEnvarConfigurationMojo.java
@@ -1,52 +0,0 @@
-package org.apache.maven.plugin.coreit;
-
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-
-import java.util.Properties;
-import java.io.FileOutputStream;
-import java.io.File;
-
-/**
- * Interpolate some envars that are embedded in the POM and make sure they pass through
- * the system.
- *
- * @goal generate-envar-properties
- */
-public class InterpolatedEnvarConfigurationMojo
- extends AbstractMojo
-{
- /**
- * @parameter expression="${basedir}"
- */
- private String basedir;
-
- /**
- * @parameter expression="${mavenTestEnvar}"
- */
- private String mavenTestEnvar;
-
- public void execute()
- throws MojoExecutionException
- {
- if ( mavenTestEnvar == null )
- {
- throw new MojoExecutionException( "The mavenTestEnvar field should not be null! You must run this using the maven-core-it scripts! ");
- }
-
- try
- {
- Properties mojoGeneratedPropeties = new Properties();
-
- mojoGeneratedPropeties.put( "maven.test.envar", mavenTestEnvar );
-
- FileOutputStream fos = new FileOutputStream( new File( basedir, "target/mojo-generated.properties" ) );
-
- mojoGeneratedPropeties.store( fos, "# Properties generated by the execution of a mojo that uses interpolated envar values." );
- }
- catch( Exception e )
- {
- getLog().error( "Error creating mojo generated properties.", e );
- }
- }
-}
View
43 ...tion-testing/core-integration-testing-plugins/maven-it-plugin-generate-properties/pom.xml
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- ~ Copyright 2005-2006 The Apache Software Foundation.
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License");
- ~ you may not use this file except in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>maven-it-plugins</artifactId>
- <groupId>org.apache.maven.its.plugins</groupId>
- <version>2.1-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>maven-it-plugin-generate-properties</artifactId>
- <packaging>maven-plugin</packaging>
- <name>Maven Integration Test Plugin :: Interpolated POM Configuration</name>
- <inceptionYear>2006</inceptionYear>
-
- <properties>
- <maven.test.skip>true</maven.test.skip>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-plugin-api</artifactId>
- <version>2.0</version>
- </dependency>
- </dependencies>
-</project>
View
92 ...erties/src/main/java/org/apache/maven/plugin/coreit/InterpolatedPomConfigurationMojo.java
@@ -1,92 +0,0 @@
-package org.apache.maven.plugin.coreit;
-
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-
-import java.util.Properties;
-import java.io.FileOutputStream;
-import java.io.File;
-
-/**
- * Take some configuration values that use interpolated POM values and write them to a properties file
- * to make sure they are passing through the system properly. We are using this mojo in it0088, and the
- * configuration looks like the following:
- *
- * <plugin>
- * <groupId>org.apache.maven.its.plugins</groupId>
- * <artifactId>maven-it-plugin-generate-properties</artifactId>
- * <version>1.0-SNAPSHOT</version>
- * <executions>
- * <execution>
- * <phase>process-resources</phase>
- * <configuration>
- * <projectBuildDirectory>${project.build.directory}</projectBuildDirectory>
- * <targetDirectoryString>target</targetDirectoryString>
- * <targetDirectoryFile>target</targetDirectoryFile>
- * </configuration>
- * <goals>
- * <goal>generate-properties</goal>
- * </goals>
- * </execution>
- * </executions>
- * </plugin>
- *
- * @goal generate-properties
- *
- */
-public class InterpolatedPomConfigurationMojo
- extends AbstractMojo
-{
- /**
- * @parameter expression="${basedir}"
- */
- private String basedir;
-
- /**
- * This is using the plugin configuration above and so ${project.build.directory} is the value
- * of the expression ${projectBuildDirectory} and should be the full path to the scratch directory
- * which often looks something like /path/to/project/target. For the 2.0.x family this always results
- * in a full path, and bugs have resulted when it resolves to something that is not a full path like "target".
- *
- * @parameter expression="${projectBuildDirectory}"
- */
- private String projectBuildDirectory;
-
- /**
- * @parameter expression="${targetDirectoryString}"
- */
- private String targetDirectoryString;
-
- /**
- * @parameter expression="${targetDirectoryFile}"
- */
- private File targetDirectoryFile;
-
- public void execute()
- throws MojoExecutionException
- {
- try
- {
- Properties mojoGeneratedPropeties = new Properties();
-
- mojoGeneratedPropeties.put( "project.build.directory", projectBuildDirectory );
-
- if ( targetDirectoryString != null )
- {
- mojoGeneratedPropeties.put( "targetDirectoryString", targetDirectoryString );
- }
- if ( targetDirectoryFile != null )
- {
- mojoGeneratedPropeties.put( "targetDirectoryFile", targetDirectoryFile.getAbsolutePath() );
- }
-
- FileOutputStream fos = new FileOutputStream( new File( basedir, "target/mojo-generated.properties" ) );
-
- mojoGeneratedPropeties.store( fos, "# Properties generated by the execution of a mojo that uses interpolated POM values for configuration." );
- }
- catch( Exception e )
- {
- getLog().error( "Error creating mojo generated properties.", e );
- }
- }
-}
View
48 core-integration-testing/core-integration-testing-plugins/maven-it-plugin-loadable/pom.xml
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- ~ Copyright 2005-2006 The Apache Software Foundation.
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License");
- ~ you may not use this file except in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>maven-it-plugins</artifactId>
- <groupId>org.apache.maven.its.plugins</groupId>
- <version>2.1-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>maven-it-plugin-loadable</artifactId>
- <packaging>maven-plugin</packaging>
- <name>Maven Integration Test Plugin :: Loadable</name>
- <inceptionYear>2006</inceptionYear>
-
- <properties>
- <maven.test.skip>true</maven.test.skip>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-plugin-api</artifactId>
- <version>2.0</version>
- </dependency>
- <dependency>
- <groupId>bsh</groupId>
- <artifactId>bsh</artifactId>
- <version>1.3.0</version>
- </dependency>
- </dependencies>
-</project>
View
59 ...s/maven-it-plugin-loadable/src/main/java/org/apache/maven/plugin/coreit/LoadableMojo.java
@@ -1,59 +0,0 @@
-package org.apache.maven.plugin.coreit;
-
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoFailureException;
-
-/**
- * @goal loadable
- * @requiresDependencyResolution test
- */
-public class LoadableMojo
- extends AbstractMojo
-{
- /**
- * @parameter
- * @required
- */
- private String className;
-
- public void execute() throws MojoFailureException
- {
- if ( !load( true ) || !load( false ) )
- {
- throw new MojoFailureException( this, "Class-loading test failed..", "Failed to load class: " + className + " using one or more methods." );
- }
- }
-
- private boolean load( boolean useContextClassloader ) throws MojoFailureException
- {
- getLog().info( "Executing in java version: " + System.getProperty( "java.version" ) );
-
- ClassLoader cl;
- if ( useContextClassloader )
- {
- cl = Thread.currentThread().getContextClassLoader();
- }
- else
- {
- cl = this.getClass().getClassLoader();
- }
-
- getLog().info( "Attepting to load: " + className + " from: " + cl + (useContextClassloader ? " (context classloader)" : "" ) );
-
- try
- {
- Class result = cl.loadClass( className );
-
- getLog().info( "Load succeeded." );
-
- return true;
- }
- catch ( ClassNotFoundException e )
- {
- getLog().info( "Failed to load class: " + className
- + (useContextClassloader ? " using context classloader" : "") );
-
- return false;
- }
- }
-}
View
43 core-integration-testing/core-integration-testing-plugins/maven-it-plugin-no-project/pom.xml
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- ~ Copyright 2005-2006 The Apache Software Foundation.
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License");
- ~ you may not use this file except in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>maven-it-plugins</artifactId>
- <groupId>org.apache.maven.its.plugins</groupId>
- <version>2.1-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>maven-it-plugin-no-project</artifactId>
- <packaging>maven-plugin</packaging>
- <name>Maven Core Integration Test Plugin</name>
- <inceptionYear>2001</inceptionYear>
-
- <properties>
- <maven.test.skip>true</maven.test.skip>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-plugin-api</artifactId>
- <version>2.0</version>
- </dependency>
- </dependencies>
-</project>
View
79 ...aven-it-plugin-no-project/src/main/java/org/apache/maven/plugin/coreit/NoProjectMojo.java
@@ -1,79 +0,0 @@
-package org.apache.maven.plugin.coreit;
-
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.util.Map;
-
-/**
- * Mojo which touches a file without requiring a project.
- *
- * @goal light-touch
- * @requiresProject false
- *
- */
-public class NoProjectMojo
- extends AbstractMojo
-{
- /**
- * @parameter expression="${project.build.directory}"
- * @required
- */
- private String outputDirectory;
-
- /**
- * @parameter expression="target/test-basedir-alignment"
- */
- private File basedirAlignmentDirectory;
-
- public void execute()
- throws MojoExecutionException
- {
- touch( new File( outputDirectory ), "touch.txt" );
- }
-
- private void touch( File dir, String file )
- throws MojoExecutionException
- {
- try
- {
- if ( !dir.exists() )
- {
- dir.mkdirs();
- }
-
- File touch = new File( dir, file );
-
- getLog().info( "Touching: " + touch );
-
- FileWriter w = new FileWriter( touch );
-
- w.write( file );
-
- w.close();
- }
- catch ( IOException e )
- {
- throw new MojoExecutionException( "Error touching file", e );
- }
- }
-}
View
53 core-integration-testing/core-integration-testing-plugins/maven-it-plugin-packaging/pom.xml
@@ -1,53 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- ~ Copyright 2005-2006 The Apache Software Foundation.
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License");
- ~ you may not use this file except in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>maven-it-plugins</artifactId>
- <groupId>org.apache.maven.its.plugins</groupId>
- <version>2.1-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>maven-it-plugin-packaging</artifactId>
- <packaging>maven-plugin</packaging>
- <name>Maven Integration Test Plugin :: Packaging</name>
- <inceptionYear>2006</inceptionYear>
- <dependencies>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-plugin-api</artifactId>
- <version>2.0</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-project</artifactId>
- <version>2.0</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-artifact</artifactId>
- <version>2.0</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-archiver</artifactId>
- <version>2.0</version>
- </dependency>
- </dependencies>
-</project>
View
81 ...maven-it-plugin-packaging/src/main/java/org/apache/maven/plugin/coreit/PackagingMojo.java
@@ -1,81 +0,0 @@
-package org.apache.maven.plugin.coreit;
-
-/*
- * Copyright 2001-2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import org.apache.maven.archiver.MavenArchiver;
-import org.apache.maven.archiver.MavenArchiveConfiguration;
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.project.MavenProject;
-import org.codehaus.plexus.archiver.jar.JarArchiver;
-
-import java.io.File;
-
-/**
- * @author <a href="brett@apache.org">Brett Porter</a>
- * @version $Id$
- * @goal package
- */
-public class PackagingMojo
- extends AbstractMojo
-{
-
- /**
- * @parameter expression="${project}"
- * @required
- */
- private MavenProject project;
-
- /**
- * @parameter expression="${project.build.finalName}"
- * @required
- */
- private String finalName;
-
- /**
- * @parameter expression="${project.build.directory}"
- * @required
- * @readonly
- */
- private String outputDirectory;
-
- public void execute()
- throws MojoExecutionException
- {
- File jarFile = new File( outputDirectory, finalName + "-it.jar" );
-
- MavenArchiver archiver = new MavenArchiver();
-
- archiver.setArchiver( new JarArchiver() );
-
- archiver.setOutputFile( jarFile );
-
- try
- {
- archiver.createArchive( project, new MavenArchiveConfiguration() );
- }
- catch ( Exception e )
- {
- // TODO: improve error handling
- throw new MojoExecutionException( "Error assembling JAR", e );
- }
-
- project.getArtifact().setFile( jarFile );
- }
-
-}
-
View
27 ...sting-plugins/maven-it-plugin-packaging/src/main/resources/META-INF/plexus/components.xml
@@ -1,27 +0,0 @@
-<component-set>
- <components>
- <component>
- <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
- <role-hint>it-packaging</role-hint>
- <implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
- <configuration>
- <phases>
- <package>org.apache.maven.its.plugins:maven-it-plugin-packaging:package</package>
- <install>org.apache.maven.plugins:maven-install-plugin:install</install>
- <deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
- </phases>
- </configuration>
- </component>
- <component>
- <role>org.apache.maven.artifact.handler.ArtifactHandler</role>
- <role-hint>it-artifact</role-hint>
- <implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
- <configuration>
- <type>it-artifact</type>
- <extension>jar</extension>
- <packaging>it-packaging</packaging>
- <classifier>it</classifier>
- </configuration>
- </component>
- </components>
-</component-set>
View
43 ...testing/core-integration-testing-plugins/maven-it-plugin-parameter-implementation/pom.xml
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- ~ Copyright 2005-2006 The Apache Software Foundation.
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License");
- ~ you may not use this file except in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>maven-it-plugins</artifactId>
- <groupId>org.apache.maven.its.plugins</groupId>
- <version>2.1-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>maven-it-plugin-parameter-implementation</artifactId>
- <packaging>maven-plugin</packaging>
- <name>Maven Integration Test Plugin :: Parameter Implementation</name>
- <inceptionYear>2006</inceptionYear>
-
- <properties>
- <maven.test.skip>true</maven.test.skip>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-plugin-api</artifactId>
- <version>2.0</version>
- </dependency>
- </dependencies>
-</project>
View
7 ...-it-plugin-parameter-implementation/src/main/java/org/apache/maven/plugin/coreit/Bla.java
@@ -1,7 +0,0 @@
-package org.apache.maven.plugin.coreit;
-
-/**
- */
-public interface Bla
-{
-}
View
42 ...lementation/src/main/java/org/apache/maven/plugin/coreit/ParameterImplementationMojo.java
@@ -1,42 +0,0 @@
-package org.apache.maven.plugin.coreit;
-
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-
-/**
- * Check that we correctly use the implementation parameter. See MNG-2293
- *
- * @goal param-implementation
- * @description Prints out the name of the implementation of the bla field.
- */
-public class ParameterImplementationMojo
- extends AbstractMojo
-{
-
- /**
- * @parameter implementation="org.apache.maven.plugin.coreit.sub.MyBla"
- * @required
- */
- private Bla bla;
-
- /**
- * The expected value of bla.toString().
- *
- * @parameter
- * @required
- */
- private String expected;
-
- public void execute()
- throws MojoExecutionException
- {
-
- getLog().info( "bla: " + bla );
-
- if ( ! expected.equals( bla.toString() ) )
- {
- throw new MojoExecutionException( "Expected '" + expected + "'; found '" + bla + "'" );
- }
- }
-
-}
View
26 ...ugin-parameter-implementation/src/main/java/org/apache/maven/plugin/coreit/sub/MyBla.java
@@ -1,26 +0,0 @@
-package org.apache.maven.plugin.coreit.sub;
-
-import org.apache.maven.plugin.coreit.Bla;
-
-/**
- */
-public class MyBla
- implements Bla
-{
- private String field;
-
- public String getField()
- {
- return field;
- }
-
- public void setField( String field )
- {
- this.field = field;
- }
-
- public String toString()
- {
- return getClass() + "-" + field;
- }
-}
View
49 ...on-testing/core-integration-testing-plugins/maven-it-plugin-project-interpolation/pom.xml
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- ~ Copyright 2005-2006 The Apache Software Foundation.
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License");
- ~ you may not use this file except in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>maven-it-plugins</artifactId>
- <groupId>org.apache.maven.its.plugins</groupId>
- <version>2.1-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>maven-it-plugin-project-interpolation</artifactId>
- <packaging>maven-plugin</packaging>
- <name>Maven Integration Test Plugin :: Project Interpolation</name>
- <inceptionYear>2001</inceptionYear>
- <dependencies>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-plugin-api</artifactId>
- <version>2.0</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-project</artifactId>
- <version>2.0</version>
- </dependency>
- <!-- Test the resolution of the version -->
- <dependency>
- <groupId>org.apache.maven.its</groupId>
- <artifactId>maven-integration-test-helper</artifactId>
- <version>${project.version}</version>
- </dependency>
- </dependencies>
-</project>
View
47 ...erpolation/src/main/java/org/apache/maven/plugin/coreit/PluginParamInterpolationMojo.java
@@ -1,47 +0,0 @@
-package org.apache.maven.plugin.coreit;
-
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.project.MavenProject;
-
-/**
- * @goal check-plugin
- *
- * @phase validate
- */
-public class PluginParamInterpolationMojo
- extends AbstractMojo
-{
- /** @parameter */
- private String myDirectory;
-
- /** @parameter expression="${project}" */
- private MavenProject project;
-
- public void execute()
- throws MojoExecutionException
- {
-
- if ( !myDirectory.equals( project.getBuild().getDirectory() + "/foo" ) )
- {
- throw new MojoExecutionException( "Directory supplied: " + myDirectory + " is not the same as the project build directory: " + project.getBuild().getDirectory() + " + '/foo'" );
- }
- }
-}
View
47 ...interpolation/src/main/java/org/apache/maven/plugin/coreit/PropertyInterpolationMojo.java
@@ -1,47 +0,0 @@
-package org.apache.maven.plugin.coreit;
-
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.project.MavenProject;
-
-/**
- * @goal check-property
- *
- * @phase validate
- */
-public class PropertyInterpolationMojo
- extends AbstractMojo
-{
- /** @parameter */
- private String myDirectory;
-
- /** @parameter expression="${project}" */
- private MavenProject project;
-
- public void execute()
- throws MojoExecutionException
- {
- String value = project.getProperties().getProperty( "myDirectory" );
- if ( !value.equals( project.getBuild().getDirectory() + "/foo" ) )
- {
- throw new MojoExecutionException( "Property value of 'myDirectory': " + value + " should equal project build directory: " + project.getBuild().getDirectory() + " + '/foo'" );
- }
- }
-}
View
43 core-integration-testing/core-integration-testing-plugins/maven-it-plugin-setter/pom.xml
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- ~ Copyright 2005-2006 The Apache Software Foundation.
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License");
- ~ you may not use this file except in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>maven-it-plugins</artifactId>
- <groupId>org.apache.maven.its.plugins</groupId>
- <version>2.1-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>maven-it-plugin-setter</artifactId>
- <packaging>maven-plugin</packaging>
- <name>Maven Integration Test Plugin :: Setter</name>
- <inceptionYear>2006</inceptionYear>
-
- <properties>
- <maven.test.skip>true</maven.test.skip>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-plugin-api</artifactId>
- <version>2.0</version>
- </dependency>
- </dependencies>
-</project>
View
113 ...-it-plugin-setter/src/main/java/org/apache/maven/plugin/coreit/CoreItMojoWithSetters.java
@@ -1,113 +0,0 @@
-/*
- * Copyright (c) 2005 Your Corporation. All Rights Reserved.
- */
-package org.apache.maven.plugin.coreit;
-
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-
-/**
- * @goal setter-touch
- *
- * @description Goal which cleans the build
- */
-public class CoreItMojoWithSetters
- extends AbstractMojo