Permalink
Browse files

o getting the initial code moved over, i'll work on it here with anyo…

…ne who wants to help repackage it

git-svn-id: https://svn.apache.org/repos/asf/maven/archetype/branches/maven-archetypeng@553946 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
0 parents commit 08afde11fa5744caad9a2ebf80e47a892b07d3d3 @jvanzyl jvanzyl committed Jul 6, 2007
Showing with 19,548 additions and 0 deletions.
  1. +3 −0 NOTICE.txt
  2. +17 −0 archetype.xml
  3. +39 −0 maven-archetypeng-bundles/maven-archetypeng-archetype/pom.xml
  4. +29 −0 ...n-archetypeng-bundles/maven-archetypeng-archetype/src/main/resources/META-INF/maven/archetype.xml
  5. +16 −0 maven-archetypeng-bundles/maven-archetypeng-archetype/src/main/resources/archetype-resources/pom.xml
  6. +33 −0 ...-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/maven/archetype.xml
  7. +22 −0 ...g-archetype/src/main/resources/archetype-resources/src/main/resources/archetype-resources/pom.xml
  8. +12 −0 .../main/resources/archetype-resources/src/main/resources/archetype-resources/src/main/java/App.java
  9. +38 −0 ...n/resources/archetype-resources/src/main/resources/archetype-resources/src/test/java/AppTest.java
  10. +65 −0 maven-archetypeng-bundles/maven-archetypeng-j2ee-simple/pom.xml
  11. +51 −0 ...archetypeng-bundles/maven-archetypeng-j2ee-simple/src/main/resources/META-INF/maven/archetype.xml
  12. +47 −0 ...hetypeng-bundles/maven-archetypeng-j2ee-simple/src/main/resources/archetype-resources/ear/pom.xml
  13. +37 −0 ...etypeng-bundles/maven-archetypeng-j2ee-simple/src/main/resources/archetype-resources/ejbs/pom.xml
  14. 0 ...g-j2ee-simple/src/main/resources/archetype-resources/ejbs/src/main/resources/META-INF/ejb-jar.xml
  15. +36 −0 ...ndles/maven-archetypeng-j2ee-simple/src/main/resources/archetype-resources/pirmary-source/pom.xml
  16. +62 −0 ...-archetypeng-bundles/maven-archetypeng-j2ee-simple/src/main/resources/archetype-resources/pom.xml
  17. +12 −0 ...les/maven-archetypeng-j2ee-simple/src/main/resources/archetype-resources/projects/logging/pom.xml
  18. +16 −0 ...eng-bundles/maven-archetypeng-j2ee-simple/src/main/resources/archetype-resources/projects/pom.xml
  19. +17 −0 ...eng-bundles/maven-archetypeng-j2ee-simple/src/main/resources/archetype-resources/servlets/pom.xml
  20. +19 −0 ...les/maven-archetypeng-j2ee-simple/src/main/resources/archetype-resources/servlets/servlet/pom.xml
  21. 0 ...ee-simple/src/main/resources/archetype-resources/servlets/servlet/src/main/webapp/WEB-INF/web.xml
  22. +5 −0 ...eng-j2ee-simple/src/main/resources/archetype-resources/servlets/servlet/src/main/webapp/index.jsp
  23. +66 −0 maven-archetypeng-bundles/maven-archetypeng-plugin-site/pom.xml
  24. +45 −0 ...archetypeng-bundles/maven-archetypeng-plugin-site/src/main/resources/META-INF/maven/archetype.xml
  25. +16 −0 ...-archetypeng-bundles/maven-archetypeng-plugin-site/src/main/resources/archetype-resources/pom.xml
  26. +34 −0 ...-archetypeng-plugin-site/src/main/resources/archetype-resources/src/site/apt/examples/example.apt
  27. +30 −0 ...ndles/maven-archetypeng-plugin-site/src/main/resources/archetype-resources/src/site/apt/index.apt
  28. +21 −0 ...ndles/maven-archetypeng-plugin-site/src/main/resources/archetype-resources/src/site/apt/usage.apt
  29. +39 −0 ...ng-bundles/maven-archetypeng-plugin-site/src/main/resources/archetype-resources/src/site/site.xml
  30. +10 −0 maven-archetypeng-bundles/maven-archetypeng-plugin/archetype.properties
  31. +39 −0 maven-archetypeng-bundles/maven-archetypeng-plugin/pom.xml
  32. +26 −0 maven-archetypeng-bundles/maven-archetypeng-plugin/src/main/resources/META-INF/maven/archetype.xml
  33. +30 −0 maven-archetypeng-bundles/maven-archetypeng-plugin/src/main/resources/archetype-resources/pom.xml
  34. +80 −0 ...bundles/maven-archetypeng-plugin/src/main/resources/archetype-resources/src/main/java/MyMojo.java
  35. +65 −0 maven-archetypeng-bundles/maven-archetypeng-portlet/pom.xml
  36. +125 −0 maven-archetypeng-bundles/maven-archetypeng-portlet/src/main/resources/META-INF/maven/archetype.xml
  37. +270 −0 maven-archetypeng-bundles/maven-archetypeng-portlet/src/main/resources/archetype-resources/pom.xml
  38. +655 −0 ...les/maven-archetypeng-portlet/src/main/resources/archetype-resources/src/main/java/MyPortlet.java
  39. +324 −0 ...undles/maven-archetypeng-portlet/src/main/resources/archetype-resources/src/main/jetspeed/web.xml
  40. +300 −0 ...en-archetypeng-portlet/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/portlet.xml
  41. +1,144 −0 ...rchetypeng-portlet/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/tld/portlet.tld
  42. +360 −0 .../maven-archetypeng-portlet/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
  43. +27 −0 ...bundles/maven-archetypeng-portlet/src/main/resources/archetype-resources/src/main/webapp/help.jsp
  44. +27 −0 ...es/maven-archetypeng-portlet/src/main/resources/archetype-resources/src/main/webapp/maximized.jsp
  45. +27 −0 ...ndles/maven-archetypeng-portlet/src/main/resources/archetype-resources/src/main/webapp/normal.jsp
  46. +65 −0 maven-archetypeng-bundles/maven-archetypeng-profiles/pom.xml
  47. +44 −0 maven-archetypeng-bundles/maven-archetypeng-profiles/src/main/resources/META-INF/maven/archetype.xml
  48. +18 −0 maven-archetypeng-bundles/maven-archetypeng-profiles/src/main/resources/archetype-resources/pom.xml
  49. +1 −0 ...chetypeng-profiles/src/main/resources/archetype-resources/src/main/filters/development.properties
  50. +1 −0 ...rchetypeng-profiles/src/main/resources/archetype-resources/src/main/filters/production.properties
  51. +1 −0 .../maven-archetypeng-profiles/src/main/resources/archetype-resources/src/main/filters/qa.properties
  52. +11 −0 ...-bundles/maven-archetypeng-profiles/src/main/resources/archetype-resources/src/main/java/App.java
  53. +36 −0 ...dles/maven-archetypeng-profiles/src/main/resources/archetype-resources/src/test/java/AppTest.java
  54. +65 −0 maven-archetypeng-bundles/maven-archetypeng-site-simple/pom.xml
  55. +43 −0 ...archetypeng-bundles/maven-archetypeng-site-simple/src/main/resources/META-INF/maven/archetype.xml
  56. +14 −0 ...-archetypeng-bundles/maven-archetypeng-site-simple/src/main/resources/archetype-resources/pom.xml
  57. +18 −0 ...ndles/maven-archetypeng-site-simple/src/main/resources/archetype-resources/src/site/apt/index.apt
  58. +12 −0 ...ng-bundles/maven-archetypeng-site-simple/src/main/resources/archetype-resources/src/site/site.xml
  59. +42 −0 maven-archetypeng-bundles/maven-archetypeng-site/pom.xml
  60. +34 −0 maven-archetypeng-bundles/maven-archetypeng-site/src/main/resources/META-INF/maven/archetype.xml
  61. +33 −0 maven-archetypeng-bundles/maven-archetypeng-site/src/main/resources/archetype-resources/pom.xml
  62. +596 −0 ...eng-bundles/maven-archetypeng-site/src/main/resources/archetype-resources/src/site/apt/format.apt
  63. +16 −0 ...peng-bundles/maven-archetypeng-site/src/main/resources/archetype-resources/src/site/apt/index.apt
  64. +25 −0 ...typeng-bundles/maven-archetypeng-site/src/main/resources/archetype-resources/src/site/fml/faq.fml
  65. +596 −0 ...-bundles/maven-archetypeng-site/src/main/resources/archetype-resources/src/site/fr/apt/format.apt
  66. +17 −0 ...g-bundles/maven-archetypeng-site/src/main/resources/archetype-resources/src/site/fr/apt/index.apt
  67. +25 −0 ...eng-bundles/maven-archetypeng-site/src/main/resources/archetype-resources/src/site/fr/fml/faq.fml
  68. +15 −0 ...g-bundles/maven-archetypeng-site/src/main/resources/archetype-resources/src/site/fr/xdoc/xdoc.xml
  69. +24 −0 ...chetypeng-bundles/maven-archetypeng-site/src/main/resources/archetype-resources/src/site/site.xml
  70. +24 −0 ...typeng-bundles/maven-archetypeng-site/src/main/resources/archetype-resources/src/site/site_fr.xml
  71. +15 −0 ...peng-bundles/maven-archetypeng-site/src/main/resources/archetype-resources/src/site/xdoc/xdoc.xml
  72. +39 −0 maven-archetypeng-bundles/maven-archetypeng-start/pom.xml
  73. +36 −0 maven-archetypeng-bundles/maven-archetypeng-start/src/main/resources/META-INF/maven/archetype.xml
  74. +25 −0 maven-archetypeng-bundles/maven-archetypeng-start/src/main/resources/archetype-resources/pom.xml
  75. +31 −0 ...eng-bundles/maven-archetypeng-start/src/main/resources/archetype-resources/src/main/java/App.java
  76. +58 −0 ...bundles/maven-archetypeng-start/src/main/resources/archetype-resources/src/test/java/AppTest.java
  77. +65 −0 maven-archetypeng-bundles/maven-archetypeng-webapp/pom.xml
  78. +42 −0 maven-archetypeng-bundles/maven-archetypeng-webapp/src/main/resources/META-INF/maven/archetype.xml
  79. +21 −0 maven-archetypeng-bundles/maven-archetypeng-webapp/src/main/resources/archetype-resources/pom.xml
  80. +7 −0 ...s/maven-archetypeng-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
  81. +5 −0 ...bundles/maven-archetypeng-webapp/src/main/resources/archetype-resources/src/main/webapp/index.jsp
  82. +53 −0 maven-archetypeng-bundles/pom.xml
  83. +67 −0 maven-archetypeng-core/maven-archetypeng-archetype-descriptor/pom.xml
  84. +197 −0 maven-archetypeng-core/maven-archetypeng-archetype-descriptor/src/main/mdo/archetype-descriptor.mdo
  85. +67 −0 maven-archetypeng-core/maven-archetypeng-archetype-registry/pom.xml
  86. +106 −0 maven-archetypeng-core/maven-archetypeng-archetype-registry/src/main/mdo/archetype-registry.mdo
  87. +117 −0 maven-archetypeng-core/maven-archetypeng-common/pom.xml
  88. +180 −0 ...aven-archetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/ArchetypeArtifactManager.java
  89. +66 −0 ...g-core/maven-archetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/ArchetypeFactory.java
  90. +103 −0 .../maven-archetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/ArchetypeFilesResolver.java
  91. +41 −0 ...en-archetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/ArchetypePropertiesManager.java
  92. +68 −0 ...aven-archetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/ArchetypeRegistryManager.java
  93. +82 −0 ...hetypeng-core/maven-archetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/Constants.java
  94. +655 −0 ...chetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/DefaultArchetypeArtifactManager.java
  95. +354 −0 ...maven-archetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/DefaultArchetypeFactory.java
  96. +471 −0 ...archetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/DefaultArchetypeFilesResolver.java
  97. +97 −0 ...etypeng-common/src/main/java/org/codehaus/mojo/archetypeng/DefaultArchetypePropertiesManager.java
  98. +269 −0 ...chetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/DefaultArchetypeRegistryManager.java
  99. +453 −0 ...-core/maven-archetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/DefaultPomManager.java
  100. +116 −0 ...ore/maven-archetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/FileCharsetDetector.java
  101. +565 −0 ...typeng-core/maven-archetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/ListScanner.java
  102. +1,982 −0 ...ng-core/maven-archetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/MavenJDOMWriter.java
  103. +57 −0 ...hetypeng-core/maven-archetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/PathUtils.java
  104. +66 −0 ...etypeng-core/maven-archetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/PomManager.java
  105. +42 −0 ...rc/main/java/org/codehaus/mojo/archetypeng/exception/ArchetypeGenerationConfigurationFailure.java
  106. +42 −0 ...peng-common/src/main/java/org/codehaus/mojo/archetypeng/exception/ArchetypeGenerationFailure.java
  107. +42 −0 ...hetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/exception/ArchetypeNotConfigured.java
  108. +42 −0 ...archetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/exception/ArchetypeNotDefined.java
  109. +42 −0 ...ypeng-common/src/main/java/org/codehaus/mojo/archetypeng/exception/ArchetypeSelectionFailure.java
  110. +42 −0 ...en-archetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/exception/InvalidPackaging.java
  111. +42 −0 ...en-archetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/exception/OutputFileExists.java
  112. +42 −0 ...maven-archetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/exception/PomFileExists.java
  113. +42 −0 ...hetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/exception/ProjectDirectoryExists.java
  114. +42 −0 ...ypeng-common/src/main/java/org/codehaus/mojo/archetypeng/exception/TemplateCreationException.java
  115. +42 −0 ...en-archetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/exception/UnknownArchetype.java
  116. +42 −0 .../maven-archetypeng-common/src/main/java/org/codehaus/mojo/archetypeng/exception/UnknownGroup.java
  117. +480 −0 maven-archetypeng-core/maven-archetypeng-common/src/main/mdo/archetype-common.mdo
  118. +78 −0 maven-archetypeng-core/maven-archetypeng-creator/pom.xml
  119. +54 −0 ...ng-creator/src/main/java/org/codehaus/mojo/archetypeng/creator/ArchetypeCreationConfigurator.java
  120. +84 −0 ...etypeng-creator/src/main/java/org/codehaus/mojo/archetypeng/creator/ArchetypeCreationQueryer.java
  121. +45 −0 ...ven-archetypeng-creator/src/main/java/org/codehaus/mojo/archetypeng/creator/ArchetypeCreator.java
  122. +372 −0 ...tor/src/main/java/org/codehaus/mojo/archetypeng/creator/DefaultArchetypeCreationConfigurator.java
  123. +149 −0 ...-creator/src/main/java/org/codehaus/mojo/archetypeng/creator/DefaultArchetypeCreationQueryer.java
  124. +1,583 −0 ...hetypeng-creator/src/main/java/org/codehaus/mojo/archetypeng/creator/FilesetArchetypeCreator.java
  125. +135 −0 ...tor/src/main/java/org/codehaus/mojo/archetypeng/creator/olddescriptor/OldArchetypeDescriptor.java
  126. +91 −0 ...in/java/org/codehaus/mojo/archetypeng/creator/olddescriptor/OldArchetypeDescriptorXpp3Writer.java
  127. +375 −0 ...peng-creator/src/test/java/org/codehaus/mojo/archetypeng/creator/DefaultArchetypeCreatorTest.java
  128. +620 −0 .../src/test/java/org/codehaus/mojo/archetypeng/creator/DefaultArcheypeCreationConfiguratorTest.java
  129. +102 −0 ...e/maven-archetypeng-creator/src/test/java/org/codehaus/mojo/archetypeng/creator/MockPrompter.java
  130. +31 −0 ...ng-core/maven-archetypeng-creator/src/test/resources/projects/configure-creation-1/pom.xml.sample
  131. +2 −0 ...-archetypeng-creator/src/test/resources/projects/configure-creation-2/archetype.properties.sample
  132. +31 −0 ...ng-core/maven-archetypeng-creator/src/test/resources/projects/configure-creation-2/pom.xml.sample
  133. +4 −0 ...-archetypeng-creator/src/test/resources/projects/configure-creation-3/archetype.properties.sample
  134. +31 −0 ...ng-core/maven-archetypeng-creator/src/test/resources/projects/configure-creation-3/pom.xml.sample
  135. +1 −0 ...ces/projects/configure-creation-3/src/main/java/org/codehaus/mojo/archetypeng/subfolder1/App.java
  136. +1 −0 ...ces/projects/configure-creation-3/src/main/java/org/codehaus/mojo/archetypeng/subfolder2/App.java
  137. +6 −0 ...-archetypeng-creator/src/test/resources/projects/configure-creation-4/archetype.properties.sample
  138. +31 −0 ...ng-core/maven-archetypeng-creator/src/test/resources/projects/configure-creation-4/pom.xml.sample
  139. +1 −0 ...eator/src/test/resources/projects/configure-creation-4/src/main/java/com/company/project/App.java
  140. +1 −0 ...ces/projects/configure-creation-4/src/main/java/org/codehaus/mojo/archetypeng/subfolder1/App.java
  141. +6 −0 ...-archetypeng-creator/src/test/resources/projects/configure-creation-5/archetype.properties.sample
  142. +31 −0 ...ng-core/maven-archetypeng-creator/src/test/resources/projects/configure-creation-5/pom.xml.sample
  143. +1 −0 ...ces/projects/configure-creation-5/src/main/java/org/codehaus/mojo/archetypeng/subfolder1/App.java
  144. +1 −0 ...ces/projects/configure-creation-5/src/main/java/org/codehaus/mojo/archetypeng/subfolder2/App.java
  145. +7 −0 ...-archetypeng-creator/src/test/resources/projects/configure-creation-6/archetype.properties.sample
  146. +31 −0 ...ng-core/maven-archetypeng-creator/src/test/resources/projects/configure-creation-6/pom.xml.sample
  147. +1 −0 ...ces/projects/configure-creation-6/src/main/java/org/codehaus/mojo/archetypeng/subfolder1/App.java
  148. +1 −0 ...ces/projects/configure-creation-6/src/main/java/org/codehaus/mojo/archetypeng/subfolder2/App.java
  149. +31 −0 ...ng-core/maven-archetypeng-creator/src/test/resources/projects/configure-creation-7/pom.xml.sample
  150. +1 −0 ...ces/projects/configure-creation-7/src/main/java/org/codehaus/mojo/archetypeng/subfolder1/App.java
  151. +1 −0 ...ces/projects/configure-creation-7/src/main/java/org/codehaus/mojo/archetypeng/subfolder2/App.java
  152. +6 −0 ...-archetypeng-creator/src/test/resources/projects/configure-creation-8/archetype.properties.sample
  153. +31 −0 ...ng-core/maven-archetypeng-creator/src/test/resources/projects/configure-creation-8/pom.xml.sample
  154. +1 −0 ...ces/projects/configure-creation-8/src/main/java/org/codehaus/mojo/archetypeng/subfolder1/App.java
  155. +1 −0 ...ces/projects/configure-creation-8/src/main/java/org/codehaus/mojo/archetypeng/subfolder2/App.java
  156. +8 −0 ...g-core/maven-archetypeng-creator/src/test/resources/projects/create-1/archetype.properties.sample
  157. +31 −0 maven-archetypeng-core/maven-archetypeng-creator/src/test/resources/projects/create-1/pom.xml.sample
  158. +2 −0 .../test/resources/projects/create-1/src/main/java/org/codehaus/mojo/archetypeng/subfolder1/App.java
  159. +1 −0 .../test/resources/projects/create-1/src/main/java/org/codehaus/mojo/archetypeng/subfolder2/App.java
  160. +1 −0 ...aven-archetypeng-creator/src/test/resources/projects/create-1/src/main/resources/log4j.properties
  161. +3 −0 ...re/maven-archetypeng-creator/src/test/resources/projects/create-1/src/main/webapp/WEB-INF/web.xml
  162. +3 −0 ...archetypeng-core/maven-archetypeng-creator/src/test/resources/projects/create-1/src/site/site.xml
  163. +1 −0 ...rc/test/resources/projects/create-1/src/test/java/org/codehaus/mojo/archetypeng/test/AppTest.java
  164. +1 −0 ...aven-archetypeng-creator/src/test/resources/projects/create-1/src/test/resources/log4j.properties
  165. +8 −0 ...g-core/maven-archetypeng-creator/src/test/resources/projects/create-2/archetype.properties.sample
  166. +34 −0 maven-archetypeng-core/maven-archetypeng-creator/src/test/resources/projects/create-2/pom.xml.sample
  167. +2 −0 ...st/resources/projects/create-2/src/it-test/java/org/codehaus/mojo/archetypeng/subfolder1/App.java
  168. +1 −0 ...st/resources/projects/create-2/src/it-test/java/org/codehaus/mojo/archetypeng/subfolder2/App.java
  169. +1 −0 ...n-archetypeng-creator/src/test/resources/projects/create-2/src/it-test/resources/log4j.properties
  170. +2 −0 .../test/resources/projects/create-2/src/main/java/org/codehaus/mojo/archetypeng/subfolder1/App.java
  171. +1 −0 .../test/resources/projects/create-2/src/main/java/org/codehaus/mojo/archetypeng/subfolder2/App.java
  172. +1 −0 ...aven-archetypeng-creator/src/test/resources/projects/create-2/src/main/resources/log4j.properties
  173. +3 −0 ...re/maven-archetypeng-creator/src/test/resources/projects/create-2/src/main/webapp/WEB-INF/web.xml
  174. +3 −0 ...archetypeng-core/maven-archetypeng-creator/src/test/resources/projects/create-2/src/site/site.xml
  175. +1 −0 ...rc/test/resources/projects/create-2/src/test/java/org/codehaus/mojo/archetypeng/test/AppTest.java
  176. +1 −0 ...aven-archetypeng-creator/src/test/resources/projects/create-2/src/test/resources/log4j.properties
  177. +34 −0 ...archetypeng-core/maven-archetypeng-creator/src/test/resources/projects/create-2/subModule/pom.xml
  178. +26 −0 ...chetypeng-core/maven-archetypeng-creator/src/test/resources/projects/create-3/application/pom.xml
  179. +1 −0 ...hetypeng-creator/src/test/resources/projects/create-3/application/src/it-test/java/ItTestAll.java
  180. +1 −0 ...resources/projects/create-3/application/src/it-test/java/org/apache/archetypeng/test/ItTest1.java
  181. +1 −0 ...-creator/src/test/resources/projects/create-3/application/src/it-test/resources/ItTest1Result.txt
  182. +1 −0 ...aven-archetypeng-creator/src/test/resources/projects/create-3/application/src/main/java/Main.java
  183. +1 −0 ...jects/create-3/application/src/main/java/org/apache/archetypeng/test/application/Application.java
  184. +1 −0 ...create-3/application/src/main/java/org/apache/archetypeng/test/application/audios/Application.ogg
  185. +1 −0 ...create-3/application/src/main/java/org/apache/archetypeng/test/application/images/Application.png
  186. +1 −0 ...-creator/src/test/resources/projects/create-3/application/src/main/resources/META-INF/MANIFEST.MF
  187. +1 −0 ...peng-creator/src/test/resources/projects/create-3/application/src/main/resources/log4j.properties
  188. +1 −0 ...rchetypeng-creator/src/test/resources/projects/create-3/application/src/main/resources/splash.png
  189. +1 −0 ...n-archetypeng-creator/src/test/resources/projects/create-3/application/src/test/java/TestAll.java
  190. +1 −0 ...s/create-3/application/src/test/java/org/apache/archetypeng/test/application/ApplicationTest.java
  191. +10 −0 ...g-core/maven-archetypeng-creator/src/test/resources/projects/create-3/archetype.properties.sample
  192. +30 −0 ...archetypeng-core/maven-archetypeng-creator/src/test/resources/projects/create-3/libraries/pom.xml
  193. +26 −0 ...g-core/maven-archetypeng-creator/src/test/resources/projects/create-3/libraries/project-a/pom.xml
  194. +1 −0 ...peng-creator/src/test/resources/projects/create-3/libraries/project-a/src/main/mdo/descriptor.xml
  195. +26 −0 ...g-core/maven-archetypeng-creator/src/test/resources/projects/create-3/libraries/project-b/pom.xml
  196. +1 −0 ...ects/create-3/libraries/project-b/src/main/java/org/apache/archetypeng/test/common/Component.java
  197. +1 −0 ...ojects/create-3/libraries/project-b/src/main/java/org/apache/archetypeng/test/common/package.html
  198. +1 −0 .../create-3/libraries/project-b/src/test/java/org/apache/archetypeng/test/common/ComponentTest.java
  199. +27 −0 maven-archetypeng-core/maven-archetypeng-creator/src/test/resources/projects/create-3/pom.xml.sample
  200. +3 −0 maven-archetypeng-core/maven-archetypeng-creator/src/test/resources/projects/create-3/profiles.xml
  201. +1 −0 ...typeng-core/maven-archetypeng-creator/src/test/resources/projects/create-3/src/site/apt/index.apt
  202. +1 −0 ...g-core/maven-archetypeng-creator/src/test/resources/projects/create-3/src/site/resources/site.png
  203. +1 −0 ...archetypeng-core/maven-archetypeng-creator/src/test/resources/projects/create-3/src/site/site.xml
  204. +239 −0 maven-archetypeng-core/maven-archetypeng-generator/pom.xml
  205. +54 −0 ...erator/src/main/java/org/codehaus/mojo/archetypeng/generator/ArchetypeGenerationConfigurator.java
  206. +37 −0 ...g-generator/src/main/java/org/codehaus/mojo/archetypeng/generator/ArchetypeGenerationQueryer.java
  207. +65 −0 ...chetypeng-generator/src/main/java/org/codehaus/mojo/archetypeng/generator/ArchetypeGenerator.java
  208. +52 −0 ...ng-generator/src/main/java/org/codehaus/mojo/archetypeng/generator/ArchetypeSelectionQueryer.java
  209. +56 −0 ...rchetypeng-generator/src/main/java/org/codehaus/mojo/archetypeng/generator/ArchetypeSelector.java
  210. +250 −0 ...src/main/java/org/codehaus/mojo/archetypeng/generator/DefaultArchetypeGenerationConfigurator.java
  211. +77 −0 ...ator/src/main/java/org/codehaus/mojo/archetypeng/generator/DefaultArchetypeGenerationQueryer.java
  212. +298 −0 ...ng-generator/src/main/java/org/codehaus/mojo/archetypeng/generator/DefaultArchetypeGenerator.java
  213. +137 −0 ...rator/src/main/java/org/codehaus/mojo/archetypeng/generator/DefaultArchetypeSelectionQueryer.java
  214. +322 −0 ...eng-generator/src/main/java/org/codehaus/mojo/archetypeng/generator/DefaultArchetypeSelector.java
Sorry, we could not display the entire diff because too many files (338) changed.
3 NOTICE.txt
@@ -0,0 +1,3 @@
+We use jchardet jchardet.sourceforge.net for file encoding recognition.
+jchardet is using Mozilla 1.1 license
+
17 archetype.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?><archetype-descriptor id="core-integration-tests-archetype">
+ <fileSets>
+ <fileSet filtered="true" packaged="true" encoding="UTF-8">
+ <directory>src/test/java</directory>
+ <includes>
+ <include>**/*.java</include>
+ </includes>
+ </fileSet>
+ <fileSet filtered="true" encoding="UTF-8">
+ <directory>src/test/resources</directory>
+ <includes>
+ <include>**/*.java</include>
+ <include>**/*.xml</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+</archetype-descriptor>
39 maven-archetypeng-bundles/maven-archetypeng-archetype/pom.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Copyright 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">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.codehaus.mojo.archetypeng</groupId>
+ <artifactId>maven-archetypeng-bundles</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <groupId>org.codehaus.mojo.archetypes</groupId>
+ <artifactId>maven-archetypeng-archetype</artifactId>
+
+ <name>Archetype Archetype</name>
+ <packaging>maven-plugin</packaging>
+
+ <description>
+ An archetype which contains a sample archetype.
+ </description>
+</project>
29 ...ypeng-bundles/maven-archetypeng-archetype/src/main/resources/META-INF/maven/archetype.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Copyright 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.
+ -->
+<archetype>
+ <name>maven-archetypeng-archetype</name>
+ <resources-groups>
+ <resources-group>
+ <templates>
+ <template>archetype-resources/pom.xml</template>
+ <template>archetype-resources/src/main/java/App.java</template>
+ <template>archetype-resources/src/test/java/AppTest.java</template>
+ <template>META-INF/maven/archetype.xml</template>
+ </templates>
+ </resources-group>
+ </resources-groups>
+</archetype>
16 ...typeng-bundles/maven-archetypeng-archetype/src/main/resources/archetype-resources/pom.xml
@@ -0,0 +1,16 @@
+<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">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>${groupId}</groupId>
+ <artifactId>${artifactId}</artifactId>
+ <version>${version}</version>
+
+ <name>Archetype - ${artifactId}</name>
+ <packaging>jar</packaging>
+
+ <url>http://maven.apache.org</url>
+</project>
33 ...pe/src/main/resources/archetype-resources/src/main/resources/META-INF/maven/archetype.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Copyright 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.
+ -->
+<archetype>
+ <name>${artifactId}</name>
+ <sources-groups>
+ <sources-group>
+ <templates>
+ <template>App.java</template>
+ </templates>
+ </sources-group>
+ </sources-groups>
+ <test-sources-groups>
+ <test-sources-group>
+ <templates>
+ <template>AppTest.java</template>
+ </templates>
+ </test-sources-group>
+ </test-sources-groups>
+</archetype>
22 ...ype/src/main/resources/archetype-resources/src/main/resources/archetype-resources/pom.xml
@@ -0,0 +1,22 @@
+<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">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>\${groupId}</groupId>
+ <artifactId>\${artifactId}</artifactId>
+ <version>\${version}</version>
+
+ <name>\${artifactId}</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
12 ...sources/archetype-resources/src/main/resources/archetype-resources/src/main/java/App.java
@@ -0,0 +1,12 @@
+package \${packageName};
+/**
+ * Hello world!
+ *
+ */
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Hello World!" );
+ }
+}
38 ...ces/archetype-resources/src/main/resources/archetype-resources/src/test/java/AppTest.java
@@ -0,0 +1,38 @@
+package \${packageName};
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest
+ extends TestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public AppTest( String testName )
+ {
+ super( testName );
+ }
+
+ /**
+ * @return the suite of tests being tested
+ */
+ public static Test suite()
+ {
+ return new TestSuite( AppTest.class );
+ }
+
+ /**
+ * Rigourous Test :-)
+ */
+ public void testApp()
+ {
+ assertTrue( true );
+ }
+}
65 maven-archetypeng-bundles/maven-archetypeng-j2ee-simple/pom.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Copyright 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">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.codehaus.mojo.archetypeng</groupId>
+ <artifactId>maven-archetypeng-bundles</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>maven-archetypeng-start</artifactId>
+
+ <name>Starting Archetype</name>
+ <packaging>maven-plugin</packaging>
+</project>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ ~ Copyright 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-archetype-bundles</artifactId>
+ <groupId>org.apache.maven.archetypes</groupId>
+ <version>3-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <description>
+ An archetype which contains a simplifed sample J2EE application.
+ </description>
+ <artifactId>maven-archetype-j2ee-simple</artifactId>
+ <name>Maven Simple J2EE Archetype</name>
+ <version>1.1-SNAPSHOT</version>
+</project>
51 ...eng-bundles/maven-archetypeng-j2ee-simple/src/main/resources/META-INF/maven/archetype.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Copyright 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.
+ -->
+<archetype>
+ <name>start</name>
+ <sources-groups>
+ <sources-group>
+ <language>java</language>
+ <templates>
+ <template>App.java</template>
+ </templates>
+ </sources-group>
+ </sources-groups>
+ <test-sources-groups>
+ <test-sources-group>
+ <language>java</language>
+ <templates>
+ <template>AppTest.java</template>
+ </templates>
+ </test-sources-group>
+ </test-sources-groups>
+</archetype>
+<archetype>
+ <id>j2ee</id>
+ <resources>
+ <resource>pom.xml</resource>
+ <resource>ear/pom.xml</resource>
+ <resource>ejbs/src/main/resources/META-INF/ejb-jar.xml</resource>
+ <resource>ejbs/pom.xml</resource>
+ <resource>primary-source/pom.xml</resource>
+ <resource>projects/logging/pom.xml</resource>
+ <resource>projects/pom.xml</resource>
+ <resource>servlets/pom.xml</resource>
+ <resource>servlets/servlet/pom.xml</resource>
+ <resource>servlets/servlet/src/main/webapp/index.jsp</resource>
+ <resource>servlets/servlet/src/main/webapp/WEB-INF/web.xml</resource>
+ </resources>
+</archetype>
47 ...-bundles/maven-archetypeng-j2ee-simple/src/main/resources/archetype-resources/ear/pom.xml
@@ -0,0 +1,47 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>root.project</groupId>
+ <artifactId>ear</artifactId>
+ <packaging>ear</packaging>
+ <version>1.0</version>
+ <name>ear assembly</name>
+ <parent>
+ <groupId>root</groupId>
+ <artifactId>project</artifactId>
+ <version>1.0</version>
+ </parent>
+ <dependencies>
+ <dependency>
+ <groupId>root.project</groupId>
+ <artifactId>ejbs</artifactId>
+ <type>ejb</type>
+ </dependency>
+ <dependency>
+ <groupId>root.project.servlets</groupId>
+ <artifactId>servlet</artifactId>
+ <type>war</type>
+ </dependency>
+ <dependency>
+ <groupId>root.project</groupId>
+ <artifactId>primary-source</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>root.project.projects</groupId>
+ <artifactId>logging</artifactId>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-ear-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
37 ...bundles/maven-archetypeng-j2ee-simple/src/main/resources/archetype-resources/ejbs/pom.xml
@@ -0,0 +1,37 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>root.project</groupId>
+ <artifactId>ejbs</artifactId>
+ <packaging>ejb</packaging>
+ <version>1.0</version>
+ <name>enterprise java beans</name>
+ <parent>
+ <groupId>root</groupId>
+ <artifactId>project</artifactId>
+ <version>1.0</version>
+ </parent>
+ <dependencies>
+ <dependency>
+ <groupId>root.project</groupId>
+ <artifactId>primary-source</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>root.project.projects</groupId>
+ <artifactId>logging</artifactId>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-ejb-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
0 ...imple/src/main/resources/archetype-resources/ejbs/src/main/resources/META-INF/ejb-jar.xml
No changes.
36 ...ven-archetypeng-j2ee-simple/src/main/resources/archetype-resources/pirmary-source/pom.xml
@@ -0,0 +1,36 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>root.project</groupId>
+ <artifactId>primary-source</artifactId>
+ <packaging>jar</packaging>
+ <name>core project classes</name>
+ <parent>
+ <groupId>root</groupId>
+ <artifactId>project</artifactId>
+ <version>1.0</version>
+ </parent>
+ <dependencies>
+ <dependency>
+ <groupId>root.project.projects</groupId>
+ <artifactId>logging</artifactId>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <encoding>iso-8859-1</encoding>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration>
+ <minmemory>128m</minmemory>
+ <maxmemory>512m</maxmemory>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
62 ...peng-bundles/maven-archetypeng-j2ee-simple/src/main/resources/archetype-resources/pom.xml
@@ -0,0 +1,62 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>root</groupId>
+ <version>1.0</version>
+ <artifactId>project</artifactId>
+ <packaging>pom</packaging>
+ <name>project</name>
+ <modules>
+ <module>projects</module>
+ <module>primary-source</module>
+ <module>servlets</module>
+ <module>ejbs</module>
+ <module>ear</module>
+ <module>site</module>
+ </modules>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <configuration>
+ <unzipCommand>/usr/bin/unzip -o > err.txt</unzipCommand>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>root.project.projects</groupId>
+ <artifactId>logging</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>root.project</groupId>
+ <artifactId>primary-source</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>root.project.servlets</groupId>
+ <artifactId>servlet</artifactId>
+ <version>1.0</version>
+ <type>war</type>
+ </dependency>
+ <dependency>
+ <groupId>root.project</groupId>
+ <artifactId>ejbs</artifactId>
+ <version>1.0</version>
+ <type>ejb</type>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+ <distributionManagement>
+ <site>
+ <id>site</id>
+ <name>project website</name>
+ <url>scp://local.company.com/websites/project.company.com/</url>
+ </site>
+ </distributionManagement>
+</project>
12 ...n-archetypeng-j2ee-simple/src/main/resources/archetype-resources/projects/logging/pom.xml
@@ -0,0 +1,12 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>root.project.projects</groupId>
+ <artifactId>logging</artifactId>
+ <packaging>jar</packaging>
+ <name>logging</name>
+ <parent>
+ <groupId>root.project</groupId>
+ <artifactId>projects</artifactId>
+ <version>1.0</version>
+ </parent>
+</project>
16 ...les/maven-archetypeng-j2ee-simple/src/main/resources/archetype-resources/projects/pom.xml
@@ -0,0 +1,16 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>root.project</groupId>
+ <version>1.0</version>
+ <artifactId>projects</artifactId>
+ <packaging>pom</packaging>
+ <name>sub projects</name>
+ <parent>
+ <groupId>root</groupId>
+ <artifactId>project</artifactId>
+ <version>1.0</version>
+ </parent>
+ <modules>
+ <module>logging</module>
+ </modules>
+</project>
17 ...les/maven-archetypeng-j2ee-simple/src/main/resources/archetype-resources/servlets/pom.xml
@@ -0,0 +1,17 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>root.project</groupId>
+ <artifactId>servlets</artifactId>
+ <packaging>pom</packaging>
+ <name>servlets</name>
+ <version>1.0</version>
+ <parent>
+ <groupId>root</groupId>
+ <artifactId>project</artifactId>
+ <version>1.0</version>
+ </parent>
+ <modules>
+ <module>servlet</module>
+ </modules>
+</project>
+
19 ...n-archetypeng-j2ee-simple/src/main/resources/archetype-resources/servlets/servlet/pom.xml
@@ -0,0 +1,19 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>root.project.servlets</groupId>
+ <artifactId>servlet</artifactId>
+ <packaging>war</packaging>
+ <name>servlet</name>
+ <parent>
+ <groupId>root.project</groupId>
+ <artifactId>servlets</artifactId>
+ <version>1.0</version>
+ </parent>
+ <dependencies>
+ <dependency>
+ <groupId>root.project</groupId>
+ <artifactId>primary-source</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+</project>
0 ...e/src/main/resources/archetype-resources/servlets/servlet/src/main/webapp/WEB-INF/web.xml
No changes.
5 ...-simple/src/main/resources/archetype-resources/servlets/servlet/src/main/webapp/index.jsp
@@ -0,0 +1,5 @@
+<html>
+<body>
+<h2>Hello World!</h2>
+</body>
+</html>
66 maven-archetypeng-bundles/maven-archetypeng-plugin-site/pom.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Copyright 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">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.codehaus.mojo.archetypeng</groupId>
+ <artifactId>maven-archetypeng-bundles</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>maven-archetypeng-start</artifactId>
+
+ <name>Starting Archetype</name>
+ <packaging>maven-plugin</packaging>
+</project>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ ~ Copyright 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-archetype-bundles</artifactId>
+ <groupId>org.apache.maven.archetypes</groupId>
+ <version>3-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <description>
+ An archetype which contains a sample Maven plugin site. This archetype can be layered upon an
+ existing Maven plugin project.
+ </description>
+ <artifactId>maven-archetype-plugin-site</artifactId>
+ <version>1.1-SNAPSHOT</version>
+ <name>Maven Plugin Site Archetype</name>
+</project>
45 ...eng-bundles/maven-archetypeng-plugin-site/src/main/resources/META-INF/maven/archetype.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Copyright 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.
+ -->
+<archetype>
+ <name>start</name>
+ <sources-groups>
+ <sources-group>
+ <language>java</language>
+ <templates>
+ <template>App.java</template>
+ </templates>
+ </sources-group>
+ </sources-groups>
+ <test-sources-groups>
+ <test-sources-group>
+ <language>java</language>
+ <templates>
+ <template>AppTest.java</template>
+ </templates>
+ </test-sources-group>
+ </test-sources-groups>
+</archetype>
+<archetype>
+ <id>plugin</id>
+ <allowPartial>true</allowPartial>
+ <siteResources>
+ <resource>src/site/site.xml</resource>
+ <resource>src/site/apt/index.apt</resource>
+ <resource>src/site/apt/usage.apt</resource>
+ <resource>src/site/apt/examples/example.apt</resource>
+ </siteResources>
+</archetype>
16 ...peng-bundles/maven-archetypeng-plugin-site/src/main/resources/archetype-resources/pom.xml
@@ -0,0 +1,16 @@
+<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">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>${groupId}</groupId>
+ <artifactId>${artifactId}</artifactId>
+ <version>${version}</version>
+ <name>Maven</name>
+ <url>http://maven.apache.org/maven2</url>
+ <inceptionYear>2001</inceptionYear>
+ <distributionManagement>
+ <site>
+ <id>website</id>
+ <url>file://${basedir}/target/deployed-site</url>
+ </site>
+ </distributionManagement>
+</project>
34 ...peng-plugin-site/src/main/resources/archetype-resources/src/site/apt/examples/example.apt
@@ -0,0 +1,34 @@
+ ------
+ SMTP Authentication
+ ------
+ Allan Ramirez
+ ------
+ 21 October 2005
+ ------
+
+SMTP Authentication
+
+ If the SMTP host needs authentication, you can provide your username and password
+ in the <<<\<configuration\>>>> section:
+
+-------------------
+<project>
+ ...
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-changes-plugin</artifactId>
+ <configuration>
+ <smtpHost>mail.yourhost.com</smtpHost>
+ <smtpPort implementation="java.lang.Integer">25</smtpPort>
+ <username>some@email.com</username>
+ <password>somepassword</password>
+ ...
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ ...
+</project>
+-------------------
30 ...ven-archetypeng-plugin-site/src/main/resources/archetype-resources/src/site/apt/index.apt
@@ -0,0 +1,30 @@
+ ------
+ Introduction
+ ------
+ Jason van Zyl
+ ------
+ 27 November 2006
+ ------
+
+Maven 2 SuperDuper Plugin
+
+ This plugin is used to transform your development life. Don't bother with self-help
+ books on how to get over your build-time blues. Just use this plugin and
+ everything will miraculously change.
+
+* Goals Overview
+
+ * {{{superduper-transform.html}superduper:transform}} performs the miraculous build transformation.
+
+ []
+
+* Usage
+
+ Instructions on how to use the SuperDuper Plugin can be found {{{usage.html}here}}.
+
+* Examples
+
+ To provide you with better understanding of some usages of the SuperDuper Plugin,
+ you can take a look at the following examples:
+
+ * {{{examples/sample-example.html}Sample Example}}
21 ...ven-archetypeng-plugin-site/src/main/resources/archetype-resources/src/site/apt/usage.apt
@@ -0,0 +1,21 @@
+ ------
+ Usage
+ ------
+ Jason van Zyl
+ ------
+ 27 November 2006
+ ------
+
+Usage
+
+ This plugin is used to create miraculously transform your build!
+
+*How to miraculously transform your build
+
+ Describe here how you miraculously transform peoples' builds!
+
+-------------------
+
+Put your awesome example here.
+
+-------------------
39 ...es/maven-archetypeng-plugin-site/src/main/resources/archetype-resources/src/site/site.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!--
+/*
+ * Copyright 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>
+ <body>
+ <menu name="Overview">
+ <item name="Introduction" href="index.html"/>
+ <item name="Goals" href="plugin-info.html"/>
+ <item name="Usage" href="usage.html"/>
+ <item name="FAQ" href="faq.html"/>
+ </menu>
+ <menu name="Samples">
+ <item name="Sample Changes Report" href="changes-report.html"/>
+ <item name="Live JIRA Report" href="jira-report.html"/>
+ </menu>
+
+ <menu name="Examples">
+ <item name="Alternate Location for the changes.xml File" href="examples/alternate-changes-xml-location.html"/>
+ <item name="SMTP Authentication" href="examples/smtp-authentication.html"/>
+ </menu>
+ </body>
+</project>
10 maven-archetypeng-bundles/maven-archetypeng-plugin/archetype.properties
@@ -0,0 +1,10 @@
+#
+#Fri May 25 01:28:46 EDT 2007
+version=1.0-SNAPSHOT
+package=.svn
+archetype.groupId=org.codehaus.mojo.archetypes
+archetype.artifactId=maven-archetypeng-maven-plugin-archetype
+groupId=org.codehaus.mojo.archetypes
+=
+artifactId=maven-archetypeng-maven-plugin
+archetype.version=1.0-SNAPSHOT
39 maven-archetypeng-bundles/maven-archetypeng-plugin/pom.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Copyright 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">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.codehaus.mojo.archetypeng</groupId>
+ <artifactId>maven-archetypeng-bundles</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <groupId>org.codehaus.mojo.archetypes</groupId>
+ <artifactId>maven-archetypeng-maven-plugin</artifactId>
+
+ <name>Plugin Archetype</name>
+ <packaging>maven-plugin</packaging>
+
+ <description>
+ An archetype which contains a sample Maven plugin.
+ </description>
+</project>
26 ...hetypeng-bundles/maven-archetypeng-plugin/src/main/resources/META-INF/maven/archetype.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Copyright 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.
+-->
+<archetype>
+ <name>maven-archetypeng-maven-plugin</name>
+ <sources-groups>
+ <sources-group>
+ <templates>
+ <template>MyMojo.java</template>
+ </templates>
+ </sources-group>
+ </sources-groups>
+</archetype>
30 ...chetypeng-bundles/maven-archetypeng-plugin/src/main/resources/archetype-resources/pom.xml
@@ -0,0 +1,30 @@
+<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">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>${groupId}</groupId>
+ <artifactId>${artifactId}</artifactId>
+ <version>${version}</version>
+
+ <name>${artifactId} Maven Mojo</name>
+ <packaging>maven-plugin</packaging>
+
+ <url>http://maven.apache.org</url>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>2.0.4</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
80 ...maven-archetypeng-plugin/src/main/resources/archetype-resources/src/main/java/MyMojo.java
@@ -0,0 +1,80 @@
+package ${package};
+/*
+ * 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.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+
+/**
+ * Goal which touches a timestamp file.
+ *
+ * @goal touch
+ *
+ * @phase process-sources
+ */
+public class MyMojo
+ extends AbstractMojo
+{
+ /**
+ * Location of the file.
+ * @parameter expression="${project.build.directory}"
+ * @required
+ */
+ private File outputDirectory;
+
+ public void execute()
+ throws MojoExecutionException
+ {
+ File f = outputDirectory;
+
+ if ( !f.exists() )
+ {
+ f.mkdirs();
+ }
+
+ File touch = new File( f, "touch.txt" );
+
+ FileWriter w = null;
+ try
+ {
+ w = new FileWriter( touch );
+
+ w.write( "touch.txt" );
+ }
+ catch ( IOException e )
+ {
+ throw new MojoExecutionException( "Error creating file " + touch, e );
+ }
+ finally
+ {
+ if ( w != null )
+ {
+ try
+ {
+ w.close();
+ }
+ catch ( IOException e )
+ {
+ // ignore
+ }
+ }
+ }
+ }
+}
65 maven-archetypeng-bundles/maven-archetypeng-portlet/pom.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Copyright 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">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.codehaus.mojo.archetypeng</groupId>
+ <artifactId>maven-archetypeng-bundles</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>maven-archetypeng-start</artifactId>
+
+ <name>Starting Archetype</name>
+ <packaging>maven-plugin</packaging>
+</project>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ ~ Copyright 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-archetype-bundles</artifactId>
+ <groupId>org.apache.maven.archetypes</groupId>
+ <version>3-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <description>
+ An archetype which contains a sample JSR-268 Portlet.
+ </description>
+ <artifactId>maven-archetype-portlet</artifactId>
+ <name>Maven Portlet Archetype</name>
+ <version>1.1-SNAPSHOT</version>
+</project>
125 ...etypeng-bundles/maven-archetypeng-portlet/src/main/resources/META-INF/maven/archetype.xml
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Copyright 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.
+ -->
+<archetype>
+ <name>start</name>
+ <sources-groups>
+ <sources-group>
+ <language>java</language>
+ <templates>
+ <template>App.java</template>
+ </templates>
+ </sources-group>
+ </sources-groups>
+ <test-sources-groups>
+ <test-sources-group>
+ <language>java</language>
+ <templates>
+ <template>AppTest.java</template>
+ </templates>
+ </test-sources-group>
+ </test-sources-groups>
+</archetype>
+<archetype>
+ <id>webapp</id>
+ <sources>
+ <source>src/main/java/MyPortlet.java</source>
+ </sources>
+ <resources>
+ <resource>src/main/jetspeed/web.xml</resource>
+ <resource>src/main/webapp/normal.jsp</resource>
+ <resource>src/main/webapp/normal.jsp</resource>
+ <resource>src/main/webapp/maximized.jsp</resource>
+ <resource>src/main/webapp/help.jsp</resource>
+ <resource>src/main/webapp/WEB-INF/web.xml</resource>
+ <resource>src/main/webapp/WEB-INF/portlet.xml</resource>
+ </resources>
+</archetype>
+<archetype>
+ <id>webapp</id>
+ <sources>
+ <source>src/main/java/MyPortlet.java</source>
+ </sources>
+ <resources>
+ <resource>src/main/jetspeed/web.xml</resource>
+ <resource>src/main/webapp/normal.jsp</resource>
+ <resource>src/main/webapp/normal.jsp</resource>
+ <resource>src/main/webapp/maximized.jsp</resource>
+ <resource>src/main/webapp/help.jsp</resource>
+ <resource>src/main/webapp/WEB-INF/web.xml</resource>
+ <resource>src/main/webapp/WEB-INF/portlet.xml</resource>
+ </resources>
+</archetype>
+<archetype>
+ <id>webapp</id>
+ <sources>
+ <source>src/main/java/MyPortlet.java</source>
+ </sources>
+ <resources>
+ <resource>src/main/jetspeed/web.xml</resource>
+ <resource>src/main/webapp/normal.jsp</resource>
+ <resource>src/main/webapp/normal.jsp</resource>
+ <resource>src/main/webapp/maximized.jsp</resource>
+ <resource>src/main/webapp/help.jsp</resource>
+ <resource>src/main/webapp/WEB-INF/web.xml</resource>
+ <resource>src/main/webapp/WEB-INF/portlet.xml</resource>
+ </resources>
+</archetype>
+<archetype>
+ <id>webapp</id>
+ <sources>
+ <source>src/main/java/MyPortlet.java</source>
+ </sources>
+ <resources>
+ <resource>src/main/jetspeed/web.xml</resource>
+ <resource>src/main/webapp/normal.jsp</resource>
+ <resource>src/main/webapp/normal.jsp</resource>
+ <resource>src/main/webapp/maximized.jsp</resource>
+ <resource>src/main/webapp/help.jsp</resource>
+ <resource>src/main/webapp/WEB-INF/web.xml</resource>
+ <resource>src/main/webapp/WEB-INF/portlet.xml</resource>
+ </resources>
+</archetype>
+<archetype>
+ <id>webapp</id>
+ <sources>
+ <source>src/main/java/MyPortlet.java</source>
+ </sources>
+ <resources>
+ <resource>src/main/jetspeed/web.xml</resource>
+ <resource>src/main/webapp/normal.jsp</resource>
+ <resource>src/main/webapp/normal.jsp</resource>
+ <resource>src/main/webapp/maximized.jsp</resource>
+ <resource>src/main/webapp/help.jsp</resource>
+ <resource>src/main/webapp/WEB-INF/web.xml</resource>
+ <resource>src/main/webapp/WEB-INF/portlet.xml</resource>
+ </resources>
+</archetype>
+<archetype>
+ <id>webapp</id>
+ <sources>
+ <source>src/main/java/MyPortlet.java</source>
+ </sources>
+ <resources>
+ <resource>src/main/jetspeed/web.xml</resource>
+ <resource>src/main/webapp/normal.jsp</resource>
+ <resource>src/main/webapp/normal.jsp</resource>
+ <resource>src/main/webapp/maximized.jsp</resource>
+ <resource>src/main/webapp/help.jsp</resource>
+ <resource>src/main/webapp/WEB-INF/web.xml</resource>
+ <resource>src/main/webapp/WEB-INF/portlet.xml</resource>
+ </resources>
+</archetype>
270 ...hetypeng-bundles/maven-archetypeng-portlet/src/main/resources/archetype-resources/pom.xml
@@ -0,0 +1,270 @@
+<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">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>${groupId}</groupId>
+ <artifactId>${artifactId}</artifactId>
+ <packaging>war</packaging>
+ <version>${version}</version>
+ <name>Maven Portlet Archetype</name>
+ <url>http://maven.apache.org</url>
+ <profiles>
+ <profile>
+ <id>jetspeed</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <version>2.0-beta-2</version>
+ <configuration>
+ <webXml>src/main/jetspeed/web.xml</webXml>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+ <dependencies>
+ <dependency>
+ <groupId>portlet-api</groupId>
+ <artifactId>portlet-api</artifactId>
+ <version>1.0</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>jstl</groupId>
+ <artifactId>jstl</artifactId>
+ <version>1.0.2</version>
+ </dependency>
+ <dependency>
+ <groupId>taglibs</groupId>
+ <artifactId>standard</artifactId>
+ <version>1.0.4</version>
+ </dependency>
+ </dependencies>
+</project>
+<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">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>${groupId}</groupId>
+ <artifactId>${artifactId}</artifactId>
+ <packaging>war</packaging>
+ <version>${version}</version>
+ <name>Maven Portlet Archetype</name>
+ <url>http://maven.apache.org</url>
+ <profiles>
+ <profile>
+ <id>jetspeed</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <version>2.0-beta-2</version>
+ <configuration>
+ <webXml>src/main/jetspeed/web.xml</webXml>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+ <dependencies>
+ <dependency>
+ <groupId>portlet-api</groupId>
+ <artifactId>portlet-api</artifactId>
+ <version>1.0</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>jstl</groupId>
+ <artifactId>jstl</artifactId>
+ <version>1.0.2</version>
+ </dependency>
+ <dependency>
+ <groupId>taglibs</groupId>
+ <artifactId>standard</artifactId>
+ <version>1.0.4</version>
+ </dependency>
+ </dependencies>
+</project>
+<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">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>${groupId}</groupId>
+ <artifactId>${artifactId}</artifactId>
+ <packaging>war</packaging>
+ <version>${version}</version>
+ <name>Maven Portlet Archetype</name>
+ <url>http://maven.apache.org</url>
+ <profiles>
+ <profile>
+ <id>jetspeed</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <version>2.0-beta-2</version>
+ <configuration>
+ <webXml>src/main/jetspeed/web.xml</webXml>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+ <dependencies>
+ <dependency>
+ <groupId>portlet-api</groupId>
+ <artifactId>portlet-api</artifactId>
+ <version>1.0</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>jstl</groupId>
+ <artifactId>jstl</artifactId>
+ <version>1.0.2</version>
+ </dependency>
+ <dependency>
+ <groupId>taglibs</groupId>
+ <artifactId>standard</artifactId>
+ <version>1.0.4</version>
+ </dependency>
+ </dependencies>
+</project>
+<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">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>${groupId}</groupId>
+ <artifactId>${artifactId}</artifactId>
+ <packaging>war</packaging>
+ <version>${version}</version>
+ <name>Maven Portlet Archetype</name>
+ <url>http://maven.apache.org</url>
+ <profiles>
+ <profile>
+ <id>jetspeed</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <version>2.0-beta-2</version>
+ <configuration>
+ <webXml>src/main/jetspeed/web.xml</webXml>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+ <dependencies>
+ <dependency>
+ <groupId>portlet-api</groupId>
+ <artifactId>portlet-api</artifactId>
+ <version>1.0</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>jstl</groupId>
+ <artifactId>jstl</artifactId>
+ <version>1.0.2</version>
+ </dependency>
+ <dependency>
+ <groupId>taglibs</groupId>
+ <artifactId>standard</artifactId>
+ <version>1.0.4</version>
+ </dependency>
+ </dependencies>
+</project>
+<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">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>${groupId}</groupId>
+ <artifactId>${artifactId}</artifactId>
+ <packaging>war</packaging>
+ <version>${version}</version>
+ <name>Maven Portlet Archetype</name>
+ <url>http://maven.apache.org</url>
+ <profiles>
+ <profile>
+ <id>jetspeed</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <version>2.0-beta-2</version>
+ <configuration>
+ <webXml>src/main/jetspeed/web.xml</webXml>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+ <dependencies>
+ <dependency>
+ <groupId>portlet-api</groupId>
+ <artifactId>portlet-api</artifactId>
+ <version>1.0</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>jstl</groupId>
+ <artifactId>jstl</artifactId>
+ <version>1.0.2</version>
+ </dependency>
+ <dependency>
+ <groupId>taglibs</groupId>
+ <artifactId>standard</artifactId>
+ <version>1.0.4</version>
+ </dependency>
+ </dependencies>
+</project>
+<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">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>${groupId}</groupId>
+ <artifactId>${artifactId}</artifactId>
+ <packaging>war</packaging>
+ <version>${version}</version>
+ <name>Maven Portlet Archetype</name>
+ <url>http://maven.apache.org</url>
+ <profiles>
+ <profile>
+ <id>jetspeed</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <version>2.0-beta-2</version>
+ <configuration>
+ <webXml>src/main/jetspeed/web.xml</webXml>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+ <dependencies>
+ <dependency>
+ <groupId>portlet-api</groupId>
+ <artifactId>portlet-api</artifactId>
+ <version>1.0</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>jstl</groupId>
+ <artifactId>jstl</artifactId>
+ <version>1.0.2</version>
+ </dependency>
+ <dependency>
+ <groupId>taglibs</groupId>
+ <artifactId>standard</artifactId>
+ <version>1.0.4</version>
+ </dependency>
+ </dependencies>
+</project>
655 ...n-archetypeng-portlet/src/main/resources/archetype-resources/src/main/java/MyPortlet.java
@@ -0,0 +1,655 @@
+/*
+ * 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 java.io.IOException;
+import javax.portlet.PortletConfig;
+import javax.portlet.GenericPortlet;
+import javax.portlet.PortletException;
+import javax.portlet.PortletRequestDispatcher;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.WindowState;
+
+public class MyPortlet extends GenericPortlet {
+
+ private static final String NORMAL_VIEW = "/normal.jsp";
+ private static final String MAXIMIZED_VIEW = "/maximized.jsp";
+ private static final String HELP_VIEW = "/help.jsp";
+
+ private PortletRequestDispatcher normalView;
+ private PortletRequestDispatcher maximizedView;
+ private PortletRequestDispatcher helpView;
+
+ public void doView( RenderRequest request, RenderResponse response )
+ throws PortletException, IOException {
+
+ if( WindowState.MINIMIZED.equals( request.getWindowState() ) ) {
+ return;
+ }
+
+ if ( WindowState.NORMAL.equals( request.getWindowState() ) ) {
+ normalView.include( request, response );
+ } else {
+ maximizedView.include( request, response );
+ }
+ }
+
+ protected void doHelp( RenderRequest request, RenderResponse response )
+ throws PortletException, IOException {
+
+ helpView.include( request, response );
+
+ }
+
+ public void init( PortletConfig config ) throws PortletException {
+ super.init( config );
+ normalView = config.getPortletContext().getRequestDispatcher( NORMAL_VIEW );
+ maximizedView = config.getPortletContext().getRequestDispatcher( MAXIMIZED_VIEW );
+ helpView = config.getPortletContext().getRequestDispatcher( HELP_VIEW );
+ }
+
+ public void destroy() {
+ normalView = null;
+ maximizedView = null;
+ helpView = null;
+ super.destroy();
+ }
+
+}
+package $package;
+
+/*
+ * 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 java.io.IOException;
+import javax.portlet.PortletConfig;
+import javax.portlet.GenericPortlet;
+import javax.portlet.PortletException;
+import javax.portlet.PortletRequestDispatcher;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.WindowState;
+
+public class MyPortlet extends GenericPortlet {
+
+ private static final String NORMAL_VIEW = "/normal.jsp";
+ private static final String MAXIMIZED_VIEW = "/maximized.jsp";
+ private static final String HELP_VIEW = "/help.jsp";
+
+ private PortletRequestDispatcher normalView;
+ private PortletRequestDispatcher maximizedView;
+ private PortletRequestDispatcher helpView;
+
+ public void doView( RenderRequest request, RenderResponse response )
+ throws PortletException, IOException {
+
+ if( WindowState.MINIMIZED.equals( request.getWindowState() ) ) {
+ return;
+ }
+
+ if ( WindowState.NORMAL.equals( request.getWindowState() ) ) {
+ normalView.include( request, response );
+ } else {
+ maximizedView.include( request, response );
+ }
+ }
+
+ protected void doHelp( RenderRequest request, RenderResponse response )
+ throws PortletException, IOException {
+
+ helpView.include( request, response );
+
+ }
+
+ public void init( PortletConfig config ) throws PortletException {
+ super.init( config );
+ normalView = config.getPortletContext().getRequestDispatcher( NORMAL_VIEW );
+ maximizedView = config.getPortletContext().getRequestDispatcher( MAXIMIZED_VIEW );
+ helpView = config.getPortletContext().getRequestDispatcher( HELP_VIEW );
+ }
+
+ public void destroy() {
+ normalView = null;
+ maximizedView = null;
+ helpView = null;
+ super.destroy();
+ }
+
+}
+package $package;
+
+/*
+ * 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 java.io.IOException;
+import javax.portlet.PortletConfig;
+import javax.portlet.GenericPortlet;
+import javax.portlet.PortletException;
+import javax.portlet.PortletRequestDispatcher;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.WindowState;
+
+public class MyPortlet extends GenericPortlet {
+
+ private static final String NORMAL_VIEW = "/normal.jsp";
+ private static final String MAXIMIZED_VIEW = "/maximized.jsp";
+ private static final String HELP_VIEW = "/help.jsp";
+
+ private PortletRequestDispatcher normalView;
+ private PortletRequestDispatcher maximizedView;
+ private PortletRequestDispatcher helpView;
+
+ public void doView( RenderRequest request, RenderResponse response )
+ throws PortletException, IOException {
+
+ if( WindowState.MINIMIZED.equals( request.getWindowState() ) ) {
+ return;
+ }
+
+ if ( WindowState.NORMAL.equals( request.getWindowState() ) ) {
+ normalView.include( request, response );
+ } else {
+ maximizedView.include( request, response );
+ }
+ }
+
+ protected void doHelp( RenderRequest request, RenderResponse response )
+ throws PortletException, IOException {
+
+ helpView.include( request, response );
+
+ }
+
+ public void init( PortletConfig config ) throws PortletException {
+ super.init( config );
+ normalView = config.getPortletContext().getRequestDispatcher( NORMAL_VIEW );
+ maximizedView = config.getPortletContext().getRequestDispatcher( MAXIMIZED_VIEW );
+ helpView = config.getPortletContext().getRequestDispatcher( HELP_VIEW );
+ }
+
+ public void destroy() {
+ normalView = null;
+ maximizedView = null;
+ helpView = null;
+ super.destroy();
+ }
+
+}
+package $package;
+
+/*
+ * 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 java.io.IOException;
+import javax.portlet.PortletConfig;
+import javax.portlet.GenericPortlet;
+import javax.portlet.PortletException;
+import javax.portlet.PortletRequestDispatcher;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.WindowState;
+
+public class MyPortlet extends GenericPortlet {
+
+ private static final String NORMAL_VIEW = "/normal.jsp";
+ private static final String MAXIMIZED_VIEW = "/maximized.jsp";
+ private static final String HELP_VIEW = "/help.jsp";
+
+ private PortletRequestDispatcher normalView;
+ private PortletRequestDispatcher maximizedView;
+ private PortletRequestDispatcher helpView;
+
+ public void doView( RenderRequest request, RenderResponse response )
+ throws PortletException, IOException {
+
+ if( WindowState.MINIMIZED.equals( request.getWindowState() ) ) {
+ return;
+ }
+
+ if ( WindowState.NORMAL.equals( request.getWindowState() ) ) {
+ normalView.include( request, response );
+ } else {
+ maximizedView.include( request, response );
+ }
+ }
+
+ protected void doHelp( RenderRequest request, RenderResponse response )
+ throws PortletException, IOException {
+
+ helpView.include( request, response );
+
+ }
+
+ public void init( PortletConfig config ) throws PortletException {
+ super.init( config );
+ normalView = config.getPortletContext().getRequestDispatcher( NORMAL_VIEW );
+ maximizedView = config.getPortletContext().getRequestDispatcher( MAXIMIZED_VIEW );
+ helpView = config.getPortletContext().getRequestDispatcher( HELP_VIEW );
+ }
+
+ public void destroy() {
+ normalView = null;
+ maximizedView = null;
+ helpView = null;
+ super.destroy();
+ }
+
+}
+package $package;
+
+/*
+ * 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 java.io.IOException;
+import javax.portlet.PortletConfig;
+import javax.portlet.GenericPortlet;
+import javax.portlet.PortletException;
+import javax.portlet.PortletRequestDispatcher;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.WindowState;
+
+public class MyPortlet extends GenericPortlet {
+
+ private static final String NORMAL_VIEW = "/normal.jsp";
+ private static final String MAXIMIZED_VIEW = "/maximized.jsp";
+ private static final String HELP_VIEW = "/help.jsp";
+
+ private PortletRequestDispatcher normalView;
+ private PortletRequestDispatcher maximizedView;
+ private PortletRequestDispatcher helpView;
+
+ public void doView( RenderRequest request, RenderResponse response )
+ throws PortletException, IOException {
+
+ if( WindowState.MINIMIZED.equals( request.getWindowState() ) ) {
+ return;
+ }
+
+ if ( WindowState.NORMAL.equals( request.getWindowState() ) ) {
+ normalView.include( request, response );
+ } else {
+ maximizedView.include( request, response );
+ }
+ }
+