Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move application archetypes to <http://github.com/jboss-jdf/jboss-as-…

  • Loading branch information...
commit c4e7065f34bb0f7eba1c6722cdae10d1d455c908 1 parent ca4d002
@pmuir pmuir authored
Showing with 0 additions and 6,820 deletions.
  1. +0 −124 generate-blank.sh
  2. +0 −97 jboss-javaee6-webapp-archetype/pom.xml
  3. +0 −11 jboss-javaee6-webapp-archetype/release-procedure.txt
  4. +0 −58 jboss-javaee6-webapp-archetype/src/main/resources/META-INF/maven/archetype-metadata-blank.xml
  5. +0 −72 jboss-javaee6-webapp-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
  6. +0 −5 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/.factorypath
  7. +0 −10 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/.gitignore
  8. +0 −92 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/README.md
  9. +0 −289 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/pom.xml
  10. +0 −53 ...aee6-webapp-archetype/src/main/resources/archetype-resources/src/main/java/controller/MemberController.java
  11. +0 −51 ...-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/java/data/MemberListProducer.java
  12. +0 −81 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/java/model/Member.java
  13. +0 −21 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/java/rest/JaxRsActivator.java
  14. +0 −49 ...6-webapp-archetype/src/main/resources/archetype-resources/src/main/java/rest/MemberResourceRESTService.java
  15. +0 −32 ...vaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/java/service/MemberRegistration.java
  16. +0 −45 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/java/util/Resources.java
  17. +0 −17 ...javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml
  18. +0 −2  jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/resources/import.sql
  19. +0 −21 ...vaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/__artifactId__-ds.xml
  20. +0 −9 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/beans.xml
  21. +0 −14 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
  22. +0 −43 ...ee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/default.xhtml
  23. +0 −10 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/index.html
  24. +0 −71 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/index.xhtml
  25. +0 −186 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/css/screen.css
  26. BIN  ...-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/asidebkg.png
  27. BIN  jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/banner.png
  28. BIN  ...ee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/bkg-blkheader.png
  29. BIN  ...-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/dualbrand_as7eap.png
  30. BIN  ...type/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/dualbrand_catapillarbutterfly.png
  31. BIN  ...e6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/dualbrand_logo.png
  32. BIN  ...javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/headerbkg.png
  33. BIN  ...avaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/icon_large.png
  34. BIN  ...vaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/icon_medium.png
  35. BIN  ...avaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/icon_small.png
  36. BIN  jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/logo.png
  37. +0 −54 ...aee6-webapp-archetype/src/main/resources/archetype-resources/src/test/java/test/MemberRegistrationTest.java
  38. +0 −20 ...e6-webapp-archetype/src/main/resources/archetype-resources/src/test/resources/META-INF/test-persistence.xml
  39. +0 −23 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/test/resources/arquillian.xml
  40. +0 −21 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/test/resources/test-ds.xml
  41. +0 −8 jboss-javaee6-webapp-archetype/src/test/resources/projects/basic/archetype.properties
  42. +0 −1  jboss-javaee6-webapp-archetype/src/test/resources/projects/basic/goal.txt
  43. +0 −8 jboss-javaee6-webapp-archetype/src/test/resources/projects/enterprise/archetype.properties
  44. +0 −1  jboss-javaee6-webapp-archetype/src/test/resources/projects/enterprise/goal.txt
  45. +0 −97 jboss-javaee6-webapp-blank-archetype/pom.xml
  46. +0 −11 jboss-javaee6-webapp-blank-archetype/release-procedure.txt
  47. +0 −61 jboss-javaee6-webapp-blank-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
  48. +0 −5 jboss-javaee6-webapp-blank-archetype/src/main/resources/archetype-resources/.factorypath
  49. +0 −10 jboss-javaee6-webapp-blank-archetype/src/main/resources/archetype-resources/.gitignore
  50. +0 −92 jboss-javaee6-webapp-blank-archetype/src/main/resources/archetype-resources/README.md
  51. +0 −289 jboss-javaee6-webapp-blank-archetype/src/main/resources/archetype-resources/pom.xml
  52. +0 −53 ...ebapp-blank-archetype/src/main/resources/archetype-resources/src/main/java/controller/MemberController.java
  53. +0 −51 ...e6-webapp-blank-archetype/src/main/resources/archetype-resources/src/main/java/data/MemberListProducer.java
  54. +0 −81 jboss-javaee6-webapp-blank-archetype/src/main/resources/archetype-resources/src/main/java/model/Member.java
  55. +0 −21 ...avaee6-webapp-blank-archetype/src/main/resources/archetype-resources/src/main/java/rest/JaxRsActivator.java
  56. +0 −49 ...pp-blank-archetype/src/main/resources/archetype-resources/src/main/java/rest/MemberResourceRESTService.java
  57. +0 −32 ...webapp-blank-archetype/src/main/resources/archetype-resources/src/main/java/service/MemberRegistration.java
  58. +0 −45 jboss-javaee6-webapp-blank-archetype/src/main/resources/archetype-resources/src/main/java/util/Resources.java
  59. +0 −17 ...6-webapp-blank-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml
  60. +0 −2  jboss-javaee6-webapp-blank-archetype/src/main/resources/archetype-resources/src/main/resources/import.sql
  61. +0 −21 ...webapp-blank-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/__artifactId__-ds.xml
  62. +0 −9 jboss-javaee6-webapp-blank-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/beans.xml
  63. +0 −14 ...aee6-webapp-blank-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
  64. +0 −43 ...bapp-blank-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/default.xhtml
  65. +0 −10 jboss-javaee6-webapp-blank-archetype/src/main/resources/archetype-resources/src/main/webapp/index.html
  66. +0 −71 jboss-javaee6-webapp-blank-archetype/src/main/resources/archetype-resources/src/main/webapp/index.xhtml
  67. +0 −186 ...aee6-webapp-blank-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/css/screen.css
  68. BIN  ...e6-webapp-blank-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/asidebkg.png
  69. BIN  ...aee6-webapp-blank-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/banner.png
  70. BIN  ...bapp-blank-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/bkg-blkheader.png
  71. BIN  ...p-blank-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/dualbrand_as7eap.png
  72. BIN  ...type/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/dualbrand_catapillarbutterfly.png
  73. BIN  ...app-blank-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/dualbrand_logo.png
  74. BIN  ...6-webapp-blank-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/headerbkg.png
  75. BIN  ...-webapp-blank-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/icon_large.png
  76. BIN  ...webapp-blank-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/icon_medium.png
  77. BIN  ...-webapp-blank-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/icon_small.png
  78. BIN  ...avaee6-webapp-blank-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/logo.png
  79. +0 −54 ...ebapp-blank-archetype/src/main/resources/archetype-resources/src/test/java/test/MemberRegistrationTest.java
  80. +0 −20 ...app-blank-archetype/src/main/resources/archetype-resources/src/test/resources/META-INF/test-persistence.xml
  81. +0 −23 jboss-javaee6-webapp-blank-archetype/src/main/resources/archetype-resources/src/test/resources/arquillian.xml
  82. +0 −21 jboss-javaee6-webapp-blank-archetype/src/main/resources/archetype-resources/src/test/resources/test-ds.xml
  83. +0 −8 jboss-javaee6-webapp-blank-archetype/src/test/resources/projects/basic/archetype.properties
  84. +0 −1  jboss-javaee6-webapp-blank-archetype/src/test/resources/projects/basic/goal.txt
  85. +0 −8 jboss-javaee6-webapp-blank-archetype/src/test/resources/projects/enterprise/archetype.properties
  86. +0 −1  jboss-javaee6-webapp-blank-archetype/src/test/resources/projects/enterprise/goal.txt
  87. +0 −3  jboss-javaee6-webapp-ear-archetype/.gitignore
  88. +0 −10 jboss-javaee6-webapp-ear-archetype/build-readme.sh
  89. +0 −108 jboss-javaee6-webapp-ear-archetype/pom.xml
  90. +0 −13 jboss-javaee6-webapp-ear-archetype/release-procedure.txt
  91. +0 −110 jboss-javaee6-webapp-ear-archetype/src/main/resources/META-INF/maven/archetype-metadata-blank.xml
  92. +0 −128 jboss-javaee6-webapp-ear-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
  93. +0 −10 jboss-javaee6-webapp-ear-archetype/src/main/resources/archetype-resources/.gitignore
  94. +0 −123 jboss-javaee6-webapp-ear-archetype/src/main/resources/archetype-resources/README.md
  95. +0 −95 jboss-javaee6-webapp-ear-archetype/src/main/resources/archetype-resources/__rootArtifactId__-ear/pom.xml
  96. +0 −21 ...esources/archetype-resources/__rootArtifactId__-ear/src/main/application/META-INF/__rootArtifactId__-ds.xml
  97. +0 −5 jboss-javaee6-webapp-ear-archetype/src/main/resources/archetype-resources/__rootArtifactId__-ejb/.factorypath
  98. +0 −164 jboss-javaee6-webapp-ear-archetype/src/main/resources/archetype-resources/__rootArtifactId__-ejb/pom.xml
  99. +0 −48 ...pe/src/main/resources/archetype-resources/__rootArtifactId__-ejb/src/main/java/data/MemberListProducer.java
  100. +0 −78 ...ear-archetype/src/main/resources/archetype-resources/__rootArtifactId__-ejb/src/main/java/model/Member.java
  101. +0 −32 ...src/main/resources/archetype-resources/__rootArtifactId__-ejb/src/main/java/service/MemberRegistration.java
  102. +0 −33 ...r-archetype/src/main/resources/archetype-resources/__rootArtifactId__-ejb/src/main/java/util/Resources.java
  103. +0 −3  ...chetype/src/main/resources/archetype-resources/__rootArtifactId__-ejb/src/main/resources/META-INF/beans.xml
  104. +0 −17 ...e/src/main/resources/archetype-resources/__rootArtifactId__-ejb/src/main/resources/META-INF/persistence.xml
  105. +0 −2  ...p-ear-archetype/src/main/resources/archetype-resources/__rootArtifactId__-ejb/src/main/resources/import.sql
  106. +0 −53 ...rc/main/resources/archetype-resources/__rootArtifactId__-ejb/src/test/java/test/MemberRegistrationTest.java
  107. +0 −20 .../main/resources/archetype-resources/__rootArtifactId__-ejb/src/test/resources/META-INF/test-persistence.xml
  108. +0 −23 ...r-archetype/src/main/resources/archetype-resources/__rootArtifactId__-ejb/src/test/resources/arquillian.xml
  109. +0 −21 ...-ear-archetype/src/main/resources/archetype-resources/__rootArtifactId__-ejb/src/test/resources/test-ds.xml
  110. +0 −75 jboss-javaee6-webapp-ear-archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/pom.xml
  111. +0 −52 ...rc/main/resources/archetype-resources/__rootArtifactId__-web/src/main/java/controller/MemberController.java
  112. +0 −18 ...hetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/java/rest/JaxRsActivator.java
  113. +0 −46 ...main/resources/archetype-resources/__rootArtifactId__-web/src/main/java/rest/MemberResourceRESTService.java
  114. +0 −35 ...rchetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/java/util/WebResources.java
  115. +0 −9 ...r-archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/WEB-INF/beans.xml
  116. +0 −14 ...type/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/WEB-INF/faces-config.xml
  117. +0 −43 ...c/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/WEB-INF/templates/default.xhtml
  118. +0 −7 ...bapp-ear-archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/index.html
  119. +0 −71 ...app-ear-archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/index.xhtml
  120. +0 −186 ...type/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/css/screen.css
  121. BIN  ...pe/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/gfx/asidebkg.png
  122. BIN  ...type/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/gfx/banner.png
  123. BIN  ...c/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/gfx/bkg-blkheader.png
  124. BIN  ...ain/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/gfx/dualbrand_as7eap.png
  125. BIN  .../archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/gfx/dualbrand_catapillarbutterfly.png
  126. BIN  .../main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/gfx/dualbrand_logo.png
  127. BIN  ...e/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/gfx/headerbkg.png
  128. BIN  .../src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/gfx/icon_large.png
  129. BIN  ...src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/gfx/icon_medium.png
  130. BIN  .../src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/gfx/icon_small.png
  131. BIN  ...hetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/gfx/logo.png
  132. +0 −149 jboss-javaee6-webapp-ear-archetype/src/main/resources/archetype-resources/pom.xml
  133. +0 −6 jboss-javaee6-webapp-ear-archetype/src/test/resources/projects/enterprise/archetype.properties
  134. +0 −1  jboss-javaee6-webapp-ear-archetype/src/test/resources/projects/enterprise/goal.txt
  135. +0 −6 jboss-javaee6-webapp-ear-archetype/src/test/resources/projects/multi/archetype.properties
  136. +0 −1  jboss-javaee6-webapp-ear-archetype/src/test/resources/projects/multi/goal.txt
  137. +0 −3  jboss-javaee6-webapp-ear-blank-archetype/.gitignore
  138. +0 −10 jboss-javaee6-webapp-ear-blank-archetype/build-readme.sh
  139. +0 −108 jboss-javaee6-webapp-ear-blank-archetype/pom.xml
  140. +0 −13 jboss-javaee6-webapp-ear-blank-archetype/release-procedure.txt
  141. +0 −113 jboss-javaee6-webapp-ear-blank-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
  142. +0 −10 jboss-javaee6-webapp-ear-blank-archetype/src/main/resources/archetype-resources/.gitignore
  143. +0 −123 jboss-javaee6-webapp-ear-blank-archetype/src/main/resources/archetype-resources/README.md
  144. +0 −95 jboss-javaee6-webapp-ear-blank-archetype/src/main/resources/archetype-resources/__rootArtifactId__-ear/pom.xml
  145. +0 −21 ...esources/archetype-resources/__rootArtifactId__-ear/src/main/application/META-INF/__rootArtifactId__-ds.xml
  146. +0 −5 ...vaee6-webapp-ear-blank-archetype/src/main/resources/archetype-resources/__rootArtifactId__-ejb/.factorypath
  147. +0 −164 jboss-javaee6-webapp-ear-blank-archetype/src/main/resources/archetype-resources/__rootArtifactId__-ejb/pom.xml
  148. +0 −48 ...pe/src/main/resources/archetype-resources/__rootArtifactId__-ejb/src/main/java/data/MemberListProducer.java
  149. +0 −78 ...ank-archetype/src/main/resources/archetype-resources/__rootArtifactId__-ejb/src/main/java/model/Member.java
  150. +0 −32 ...src/main/resources/archetype-resources/__rootArtifactId__-ejb/src/main/java/service/MemberRegistration.java
  151. +0 −33 ...k-archetype/src/main/resources/archetype-resources/__rootArtifactId__-ejb/src/main/java/util/Resources.java
  152. +0 −3  ...chetype/src/main/resources/archetype-resources/__rootArtifactId__-ejb/src/main/resources/META-INF/beans.xml
  153. +0 −17 ...e/src/main/resources/archetype-resources/__rootArtifactId__-ejb/src/main/resources/META-INF/persistence.xml
  154. +0 −2  ...blank-archetype/src/main/resources/archetype-resources/__rootArtifactId__-ejb/src/main/resources/import.sql
  155. +0 −53 ...rc/main/resources/archetype-resources/__rootArtifactId__-ejb/src/test/java/test/MemberRegistrationTest.java
  156. +0 −20 .../main/resources/archetype-resources/__rootArtifactId__-ejb/src/test/resources/META-INF/test-persistence.xml
  157. +0 −23 ...k-archetype/src/main/resources/archetype-resources/__rootArtifactId__-ejb/src/test/resources/arquillian.xml
  158. +0 −21 ...lank-archetype/src/main/resources/archetype-resources/__rootArtifactId__-ejb/src/test/resources/test-ds.xml
  159. +0 −75 jboss-javaee6-webapp-ear-blank-archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/pom.xml
  160. +0 −52 ...rc/main/resources/archetype-resources/__rootArtifactId__-web/src/main/java/controller/MemberController.java
  161. +0 −18 ...hetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/java/rest/JaxRsActivator.java
  162. +0 −46 ...main/resources/archetype-resources/__rootArtifactId__-web/src/main/java/rest/MemberResourceRESTService.java
  163. +0 −35 ...rchetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/java/util/WebResources.java
  164. +0 −9 ...k-archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/WEB-INF/beans.xml
  165. +0 −14 ...type/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/WEB-INF/faces-config.xml
  166. +0 −43 ...c/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/WEB-INF/templates/default.xhtml
  167. +0 −7 ...ar-blank-archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/index.html
  168. +0 −71 ...r-blank-archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/index.xhtml
  169. +0 −186 ...type/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/css/screen.css
  170. BIN  ...pe/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/gfx/asidebkg.png
  171. BIN  ...type/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/gfx/banner.png
  172. BIN  ...c/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/gfx/bkg-blkheader.png
  173. BIN  ...ain/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/gfx/dualbrand_as7eap.png
  174. BIN  .../archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/gfx/dualbrand_catapillarbutterfly.png
  175. BIN  .../main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/gfx/dualbrand_logo.png
  176. BIN  ...e/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/gfx/headerbkg.png
  177. BIN  .../src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/gfx/icon_large.png
  178. BIN  ...src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/gfx/icon_medium.png
  179. BIN  .../src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/gfx/icon_small.png
  180. BIN  ...hetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/webapp/resources/gfx/logo.png
  181. +0 −149 jboss-javaee6-webapp-ear-blank-archetype/src/main/resources/archetype-resources/pom.xml
  182. +0 −6 jboss-javaee6-webapp-ear-blank-archetype/src/test/resources/projects/enterprise/archetype.properties
  183. +0 −1  jboss-javaee6-webapp-ear-blank-archetype/src/test/resources/projects/enterprise/goal.txt
  184. +0 −6 jboss-javaee6-webapp-ear-blank-archetype/src/test/resources/projects/multi/archetype.properties
  185. +0 −1  jboss-javaee6-webapp-ear-blank-archetype/src/test/resources/projects/multi/goal.txt
  186. +0 −27 release-process.md
  187. +0 −129 release-utils.sh
  188. +0 −106 release.sh
View
124 generate-blank.sh
@@ -1,124 +0,0 @@
-#!/bin/sh
-
-set -o errexit
-
-SOURCE="${BASH_SOURCE[0]}"
-while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
-DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
-
-# DEFINE
-
-ARCHETYPES="jboss-javaee6-webapp-archetype jboss-javaee6-webapp-ear-archetype"
-
-# SCRIPT
-
-usage()
-{
-
-HUMAN_READABLE_ARCHETYPES=""
-i=0
-for archetype in $ARCHETYPES
-do
- if [ $i -ne 0 ]
- then
- HUMAN_READABLE_ARCHETYPES="${HUMAN_READABLE_ARCHETYPES}, "
- fi
- echo ""
- HUMAN_READABLE_ARCHETYPES="${HUMAN_READABLE_ARCHETYPES}${archetype}"
- i=$[$i+1]
-done
-
-
-cat << EOF
-usage: $0 options
-
-This script generates a "blanked" version of an archetype.
-
-The name of archetype directory must match the artifactId of the archetype. Arcehtypes are placed in $DIR with the suffix -blank
-
-OPTIONS:
- -a Generate a blank archetype for all archetypes, currently ${HUMAN_READABLE_ARCHETYPES}
- -n The name of the archetype to blank.
- -c Removes the blank archetypes
- -h Shows this message
-
-EOF
-}
-
-clean()
-{
- echo "**** Cleaning $DIR/*-blank-archetype"
- rm -rf $DIR/*-blank-archetype
-}
-
-blank()
-{
- ARCHETYPE_NAME=$1
- ARCHETYPE_BLANK_NAME=${ARCHETYPE_NAME//archetype/blank-archetype}
- ARCHETYPE_DIR=${DIR}/${ARCHETYPE_NAME}
- ARCHETYPE_BLANK_DIR="${DIR}/${ARCHETYPE_BLANK_NAME}"
-
-cat << EOF
-
-**** Generating blank version of ${ARCHETYPE_NAME} into ${ARCHETYPE_BLANK_DIR}
-**** Blank artifactId is ${ARCHETYPE_BLANK_NAME}
-
-EOF
-
- rm -rf ${ARCHETYPE_BLANK_DIR}
-
- cp -r ${ARCHETYPE_DIR} ${ARCHETYPE_BLANK_DIR}
-
- cd $ARCHETYPE_BLANK_DIR
-
- mv src/main/resources/META-INF/maven/archetype-metadata-blank.xml src/main/resources/META-INF/maven/archetype-metadata.xml
-
- perl -pi -e "s/${ARCHETYPE_NAME}/${ARCHETYPE_BLANK_NAME}/g" `find . -name pom.xml`
-
-}
-
-ALL=0
-CLEAN=0
-
-while getopts “ahcn:” OPTION
-do
- case $OPTION in
- a)
- ALL=1
- ;;
- h)
- usage
- exit
- ;;
- c)
- clean
- CLEAN=1
- ;;
- n)
- NAME=$OPTARG
- ;;
- [?])
- usage
- exit
- ;;
- esac
-done
-
-if [ $ALL -eq 1 ]
-then
- for archetype in $ARCHETYPES
- do
- blank $archetype
- done
-else
- if [ -z "$NAME"] && [ $CLEAN -ne 1 ]
- then
- echo "No archetype name defined"
- usage
- exit
- elif [ -n "$NAME" ]
- then
- blank $NAME
- fi
-fi
-
View
97 jboss-javaee6-webapp-archetype/pom.xml
@@ -1,97 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.jboss</groupId>
- <artifactId>jboss-parent</artifactId>
- <version>6-beta-2</version>
- <relativePath />
- </parent>
-
- <groupId>org.jboss.spec.archetypes</groupId>
- <artifactId>jboss-javaee6-webapp-archetype</artifactId>
- <version>7.1.1-SNAPSHOT</version>
- <packaging>maven-archetype</packaging>
-
- <name>Java EE 6 Webapp</name>
-
- <description>An archetype that generates a starter Java EE 6 webapp project for JBoss AS 7.1 (by default) or EAP 6 (if the "enterprise" property is true)</description>
-
- <url>http://jboss.org/jbossas</url>
-
- <developers>
- <developer>
- <name>Steven Boscarine</name>
- <email>stevenboscarine@gmail.com</email>
- </developer>
- <developer>
- <id>fbricon</id>
- <name>Fred Bricon</name>
- <email>fbricon@gmail.com</email>
- <organization>Red Hat, Inc.</organization>
- <organizationUrl>http://redhat.com/jboss</organizationUrl>
- <url>http://community.jboss.org/people/fbricon</url>
- <timezone>+1</timezone>
- </developer>
- <developer>
- <name>Dan Allen</name>
- <email>dan.j.allen@gmail.com</email>
- <organization>JBoss, by Red Hat</organization>
- <organizationUrl>http://redhat.com/jboss</organizationUrl>
- <url>http://community.jboss.org/people/dan.j.allen</url>
- </developer>
- <developer>
- <name>Pete Muir</name>
- <email>pete.muir@jboss.org</email>
- <organization>Red Hat, Inc.</organization>
- <organizationUrl>http://redhat.com/jboss</organizationUrl>
- <url>http://in.relation.to/Bloggers/Pete</url>
- </developer>
- </developers>
-
-
- <build>
- <testResources>
- <testResource>
- <directory>src/test/resources</directory>
- <filtering>true</filtering>
- </testResource>
- </testResources>
-
- <extensions>
- <extension>
- <groupId>org.apache.maven.archetype</groupId>
- <artifactId>archetype-packaging</artifactId>
- <version>2.1</version>
- </extension>
- </extensions>
-
- <pluginManagement>
- <plugins>
- <plugin>
- <artifactId>maven-archetype-plugin</artifactId>
- <version>2.1</version>
- <extensions>true</extensions>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
-
- <properties>
- <enterprise.available>false</enterprise.available>
- </properties>
-
-
- <profiles>
- <!-- Build with -Penterprise to test against an EAP repository -->
- <profile>
- <id>enterprise</id>
- <properties>
- <enterprise.available>true</enterprise.available>
- </properties>
- </profile>
- </profiles>
-
-</project>
View
11 jboss-javaee6-webapp-archetype/release-procedure.txt
@@ -1,11 +0,0 @@
-(Assume Q is the qualifier of the release, e.g., Beta1)
-
-1. Edit archetype-pom.xml and set release version
-2. Tag this
-3. Edit archetype-pom.xml and set the development version
-4. Checkout the tag
-5. Build the archetype
- ./create-archetype.sh
-6. Publish it
- cd target/archetype
- mvn clean deploy -DaltDeploymentRepository=jboss-releases-repository::default::https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/
View
58 jboss-javaee6-webapp-archetype/src/main/resources/META-INF/maven/archetype-metadata-blank.xml
@@ -1,58 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<archetype-descriptor xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd" name="jboss-javaee6-webapp-src"
- xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <requiredProperties>
- <requiredProperty key="name">
- <defaultValue>Java EE 6 webapp project</defaultValue>
- </requiredProperty>
- <requiredProperty key="enterprise">
- <defaultValue>false</defaultValue>
- </requiredProperty>
- </requiredProperties>
- <fileSets>
- <fileSet encoding="UTF-8">
- <directory>src/main/java</directory>
- <excludes>
- <exclude>**/*</exclude>
- </excludes>
- </fileSet>
- <fileSet encoding="UTF-8">
- <directory>src/test/java</directory>
- <excludes>
- <exclude>**/*</exclude>
- </excludes>
- </fileSet>
- <fileSet encoding="UTF-8" filtered="true">
- <directory>src/test/resources</directory>
- <excludes>
- <include>**/*.xml</include>
- </excludes>
- </fileSet>
- <fileSet encoding="UTF-8" filtered="true">
- <directory>src/main/webapp</directory>
- <includes>
- <include>**/*.xml</include>
- </includes>
- </fileSet>
- <fileSet encoding="UTF-8">
- <directory>src/main/webapp/resources</directory>
- <excludes>
- <exclude>**/*</exclude>
- </excludes>
- </fileSet>
- <fileSet encoding="UTF-8" filtered="true">
- <directory>src/main/resources</directory>
- <includes>
- <include>**/*.xml</include>
- </includes>
- </fileSet>
- <fileSet encoding="UTF-8">
- <directory></directory>
- <includes>
- <include>**/*.factorypath</include>
- <include>**/*.gitignore</include>
- </includes>
- </fileSet>
- </fileSets>
-</archetype-descriptor>
View
72 jboss-javaee6-webapp-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<archetype-descriptor xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd" name="jboss-javaee6-webapp-src"
- xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <requiredProperties>
- <requiredProperty key="name">
- <defaultValue>Java EE 6 webapp project</defaultValue>
- </requiredProperty>
- <requiredProperty key="enterprise">
- <defaultValue>false</defaultValue>
- </requiredProperty>
- <requiredProperty key="jboss-bom-enterprise-version">
- <defaultValue>1.0.0.M12-redhat-1</defaultValue>
- </requiredProperty>
- </requiredProperties>
- <fileSets>
- <fileSet filtered="true" packaged="true" encoding="UTF-8">
- <directory>src/main/java</directory>
- <includes>
- <include>**/*.java</include>
- </includes>
- </fileSet>
- <fileSet filtered="true" encoding="UTF-8">
- <directory>src/main/webapp</directory>
- <includes>
- <include>**/*.html</include>
- <include>**/*.xml</include>
- </includes>
- </fileSet>
- <fileSet encoding="UTF-8">
- <directory>src/main/webapp</directory>
- <includes>
- <include>**/*.png</include>
- <include>**/*.xhtml</include>
- <include>**/*.css</include>
- </includes>
- </fileSet>
- <fileSet encoding="UTF-8" filtered="true">
- <directory>src/main/resources</directory>
- <includes>
- <include>**/*.sql</include>
- <include>**/*.xml</include>
- </includes>
- </fileSet>
- <fileSet filtered="true" packaged="true" encoding="UTF-8">
- <directory>src/test/java</directory>
- <includes>
- <include>**/*.java</include>
- </includes>
- </fileSet>
- <fileSet encoding="UTF-8" filtered="true">
- <directory>src/test/resources</directory>
- <includes>
- <include>**/*.xml</include>
- </includes>
- </fileSet>
- <fileSet encoding="UTF-8">
- <directory></directory>
- <includes>
- <include>**/*.factorypath</include>
- <include>**/*.gitignore</include>
- </includes>
- </fileSet>
- <fileSet filtered="true" encoding="UTF-8">
- <directory></directory>
- <includes>
- <include>readme.md</include>
- <include>README.md</include>
- </includes>
- </fileSet>
- </fileSets>
-</archetype-descriptor>
View
5 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/.factorypath
@@ -1,5 +0,0 @@
-<factorypath>
- <factorypathentry kind="PLUGIN" id="org.eclipse.jst.ws.annotations.core" enabled="true" runInBatchMode="false"/>
- <factorypathentry kind="VARJAR" id="M2_REPO/org/hibernate/hibernate-jpamodelgen/1.2.0.Final/hibernate-jpamodelgen-1.2.0.Final.jar" enabled="true" runInBatchMode="false"/>
- <factorypathentry kind="VARJAR" id="M2_REPO/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.1.Final/hibernate-jpa-2.0-api-1.0.1.Final.jar" enabled="true" runInBatchMode="false"/>
-</factorypath>
View
10 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/.gitignore
@@ -1,10 +0,0 @@
-*~
-.classpath
-.project
-target
-.settings
-.DS_Store
-.faces-config.xml.jsfdia
-MANIFEST.MF
-.idea
-*.iml
View
92 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/README.md
@@ -1,92 +0,0 @@
-${artifactId}
-========================
-
-What is it?
------------
-
-This is your project! It is a sample, deployable Maven 3 project to help you get your foot in the door developing with Java EE 6 on JBoss Enterprise Application Platform 6 or JBoss AS 7.1.
-
-This project is setup to allow you to create a compliant Java EE 6 application using JSF 2.0, CDI 1.0, EJB 3.1, JPA 2.0 and Bean Validation 1.0. It includes a persistence unit and some sample persistence and transaction code to introduce you to database access in enterprise Java.
-
-
-System requirements
--------------------
-
-All you need to build this project is Java 6.0 (Java SDK 1.6) or better, Maven 3.0 or better.
-
-The application this project produces is designed to be run on JBoss Enterprise Application Platform 6 or JBoss AS 7.1.
-
-
-Configure Maven
----------------
-
-If you have not yet done so, you must [Configure Maven](../README.html/#mavenconfiguration) before testing the quickstarts.
-
-
-Start JBoss Enterprise Application Platform 6 or JBoss AS 7.1
--------------------------
-
-1. Open a command line and navigate to the root of the JBoss server directory.
-2. The following shows the command line to start the server with the web profile:
-
- For Linux: JBOSS_HOME/bin/standalone.sh
- For Windows: JBOSS_HOME\bin\standalone.bat
-
-
-Build and Deploy the Quickstart
--------------------------
-
-_NOTE: The following build command assumes you have configured your Maven user settings. If you have not, you must include Maven setting arguments on the command line. See [Build and Deploy the Quickstarts](../README.html/#buildanddeploy) for complete instructions and additional options._
-
-1. Make sure you have started the JBoss Server as described above.
-2. Open a command line and navigate to the root directory of this quickstart.
-3. Type this command to build and deploy the archive:
-
- mvn clean package jboss-as:deploy
-
-4. This will deploy `target/${artifactId}.war` to the running instance of the server.
-
-
-Access the application
----------------------
-
-The application will be running at the following URL: <http://localhost:8080/${artifactId}/>.
-
-
-Undeploy the Archive
---------------------
-
-1. Make sure you have started the JBoss Server as described above.
-2. Open a command line and navigate to the root directory of this quickstart.
-3. When you are finished testing, type this command to undeploy the archive:
-
- mvn jboss-as:undeploy
-
-
-Run the Arquillian tests
-----------------------------
-
-This quickstart provides Arquillian tests. By default, these tests are configured to be skipped as Arquillian tests require the use of a container.
-
-_NOTE: The following commands assume you have configured your Maven user settings. If you have not, you must include Maven setting arguments on the command line. See [Run the Arquillian Tests](../README.html/#arquilliantests) for complete instructions and additional options._
-
-1. Make sure you have started the JBoss Server as described above.
-2. Open a command line and navigate to the root directory of this quickstart.
-3. Type the following command to run the test goal with the following profile activated:
-
- mvn clean test -Parq-jbossas-remote
-
-
-Run the Quickstart in JBoss Developer Studio or Eclipse
--------------------------------------
-You can also start the server and deploy the quickstarts from Eclipse using JBoss tools. For more information, see [Use JBoss Developer Studio or Eclipse to Run the Quickstarts](../README.html/#useeclipse)
-
-
-Debug the Application
-------------------------------------
-
-If you want to debug the source code or look at the Javadocs of any library in the project, run either of the following commands to pull them into your local repository. The IDE should then detect them.
-
- mvn dependency:sources
- mvn dependency:resolve -Dclassifier=javadoc
-
View
289 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/pom.xml
@@ -1,289 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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>
- <packaging>war</packaging>
-#if ($name != "")
- <name>${name}</name>
-#end
- <description>A starter Java EE 6 webapp project for use on JBoss AS 7.1 / EAP 6, generated from the jboss-javaee6-webapp archetype</description>
-
- <properties>
- <!-- Explicitly declaring the source encoding eliminates the following
- message: -->
- <!-- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
- resources, i.e. build is platform dependent! -->
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <!-- Define the version of JBoss' Java EE 6 APIs and Tools we want
- to import. -->
-#if ($enterprise == "true" || $enterprise == "y" || $enterprise == "yes" )
- <!-- Certified version of the JBoss EAP components we want to use -->
- <jboss.bom.version>${jboss-bom-enterprise-version}</jboss.bom.version>
- <!-- Alternatively, comment out the above line, and un-comment the
- line below to use version 1.0.0.Final which is based on community built dependencies. -->
- <!-- <jboss.bom.version>1.0.0.Final</jboss.bom.version> -->
-#else
- <jboss.bom.version>1.0.0.Final</jboss.bom.version>
- <!-- Alternatively, comment out the above line, and un-comment the
- line below to use version ${jboss-bom-enterprise-version} which is a release certified
- to work with JBoss EAP 6. It requires you have access to the JBoss EAP 6
- maven repository. -->
- <!-- <jboss.bom.version>${jboss-bom-enterprise-version}</jboss.bom.version>> -->
-#end
- </properties>
-
-
- <dependencyManagement>
- <dependencies>
- <!-- JBoss distributes a complete set of Java EE 6 APIs including
- a Bill of Materials (BOM). A BOM specifies the versions of a "stack" (or
- a collection) of artifacts. We use this here so that we always get the correct
- versions of artifacts. Here we use the jboss-javaee-6.0-with-tools stack
- (you can read this as the JBoss stack of the Java EE 6 APIs, with some extras
- tools for your project, such as Arquillian for testing) and the jboss-javaee-6.0-with-hibernate
- stack you can read this as the JBoss stack of the Java EE 6 APIs, with extras
- from the Hibernate family of projects) -->
- <dependency>
- <groupId>org.jboss.bom</groupId>
- <artifactId>jboss-javaee-6.0-with-tools</artifactId>
- <version>${jboss.bom.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.bom</groupId>
- <artifactId>jboss-javaee-6.0-with-hibernate</artifactId>
- <version>${jboss.bom.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
- <dependencies>
-
- <!-- First declare the APIs we depend on and need for compilation.
- All of them are provided by JBoss AS 7 -->
-
- <!-- Import the CDI API, we use provided scope as the API is included
- in JBoss AS 7 -->
- <dependency>
- <groupId>javax.enterprise</groupId>
- <artifactId>cdi-api</artifactId>
- <scope>provided</scope>
- </dependency>
-
- <!-- Import the Common Annotations API (JSR-250), we use provided
- scope as the API is included in JBoss AS 7 -->
- <dependency>
- <groupId>org.jboss.spec.javax.annotation</groupId>
- <artifactId>jboss-annotations-api_1.1_spec</artifactId>
- <scope>provided</scope>
- </dependency>
-
- <!-- Import the JAX-RS API, we use provided scope as the API is included
- in JBoss AS 7 -->
- <dependency>
- <groupId>org.jboss.spec.javax.ws.rs</groupId>
- <artifactId>jboss-jaxrs-api_1.1_spec</artifactId>
- <scope>provided</scope>
- </dependency>
-
- <!-- Import the JPA API, we use provided scope as the API is included
- in JBoss AS 7 -->
- <dependency>
- <groupId>org.hibernate.javax.persistence</groupId>
- <artifactId>hibernate-jpa-2.0-api</artifactId>
- <scope>provided</scope>
- </dependency>
-
- <!-- Import the EJB API, we use provided scope as the API is included
- in JBoss AS 7 -->
- <dependency>
- <groupId>org.jboss.spec.javax.ejb</groupId>
- <artifactId>jboss-ejb-api_3.1_spec</artifactId>
- <scope>provided</scope>
- </dependency>
-
- <!-- JSR-303 (Bean Validation) Implementation -->
- <!-- Provides portable constraints such as @Email -->
- <!-- Hibernate Validator is shipped in JBoss AS 7 -->
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-validator</artifactId>
- <scope>provided</scope>
- <exclusions>
- <exclusion>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
-
- <!-- Import the JSF API, we use provided scope as the API is included
- in JBoss AS 7 -->
- <dependency>
- <groupId>org.jboss.spec.javax.faces</groupId>
- <artifactId>jboss-jsf-api_2.1_spec</artifactId>
- <scope>provided</scope>
- </dependency>
-
- <!-- Now we declare any tools needed -->
-
- <!-- Annotation processor to generate the JPA 2.0 metamodel classes
- for typesafe criteria queries -->
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-jpamodelgen</artifactId>
- <scope>provided</scope>
- </dependency>
-
- <!-- Annotation processor that raising compilation errors whenever
- constraint annotations are incorrectly used. -->
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-validator-annotation-processor</artifactId>
- <scope>provided</scope>
- </dependency>
-
- <!-- Needed for running tests (you may also use TestNG) -->
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
-
- <!-- Optional, but highly recommended -->
- <!-- Arquillian allows you to test enterprise code such as EJBs and
- Transactional(JTA) JPA from JUnit/TestNG -->
- <dependency>
- <groupId>org.jboss.arquillian.junit</groupId>
- <artifactId>arquillian-junit-container</artifactId>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.jboss.arquillian.protocol</groupId>
- <artifactId>arquillian-protocol-servlet</artifactId>
- <scope>test</scope>
- </dependency>
-
- </dependencies>
-
- <build>
- <!-- Maven will append the version to the finalName (which is the
- name given to the generated war, and hence the context root) -->
- <finalName>${project.artifactId}</finalName>
- <plugins>
- <!-- Compiler plugin enforces Java 1.6 compatibility and activates
- annotation processors -->
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.3.1</version>
- <configuration>
- <source>1.6</source>
- <target>1.6</target>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-war-plugin</artifactId>
- <version>2.1.1</version>
- <configuration>
- <!-- Java EE 6 doesn't require web.xml, Maven needs to
- catch up! -->
- <failOnMissingWebXml>false</failOnMissingWebXml>
- </configuration>
- </plugin>
- <!-- The JBoss AS plugin deploys your war to a local JBoss AS
- container -->
- <!-- To use, run: mvn package jboss-as:deploy -->
- <plugin>
- <groupId>org.jboss.as.plugins</groupId>
- <artifactId>jboss-as-maven-plugin</artifactId>
- <version>7.1.1.Final</version>
- </plugin>
- </plugins>
- </build>
-
- <profiles>
- <profile>
- <!-- The default profile skips all tests, though you can tune
- it to run just unit tests based on a custom pattern -->
- <!-- Seperate profiles are provided for running all tests, including
- Arquillian tests that execute in the specified container -->
- <id>default</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.4.3</version>
- <configuration>
- <skip>true</skip>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
-
- <profile>
- <!-- An optional Arquillian testing profile that executes tests
- in your JBoss AS instance -->
- <!-- This profile will start a new JBoss AS instance, and execute
- the test, shutting it down when done -->
- <!-- Run with: mvn clean test -Parq-jbossas-managed -->
- <id>arq-jbossas-managed</id>
- <dependencies>
- <dependency>
- <groupId>org.jboss.as</groupId>
- <artifactId>jboss-as-arquillian-container-managed</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </profile>
-
- <profile>
- <!-- An optional Arquillian testing profile that executes tests
- in a remote JBoss AS instance -->
- <!-- Run with: mvn clean test -Parq-jbossas-remote -->
- <id>arq-jbossas-remote</id>
- <dependencies>
- <dependency>
- <groupId>org.jboss.as</groupId>
- <artifactId>jboss-as-arquillian-container-remote</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </profile>
-
- <profile>
- <!-- When built in OpenShift the 'openshift' profile will be
- used when invoking mvn. -->
- <!-- Use this profile for any OpenShift specific customization
- your app will need. -->
- <!-- By default that is to put the resulting archive into the
- 'deployments' folder. -->
- <!-- http://maven.apache.org/guides/mini/guide-building-for-different-environments.html -->
- <id>openshift</id>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-war-plugin</artifactId>
- <version>2.1.1</version>
- <configuration>
- <outputDirectory>deployments</outputDirectory>
- <warName>ROOT</warName>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
-
- </profiles>
-</project>
View
53 ...6-webapp-archetype/src/main/resources/archetype-resources/src/main/java/controller/MemberController.java
@@ -1,53 +0,0 @@
-#set( $symbol_pound = '#' )
-#set( $symbol_dollar = '$' )
-#set( $symbol_escape = '\' )
-package ${package}.controller;
-
-import java.util.logging.Logger;
-
-import javax.annotation.PostConstruct;
-import javax.ejb.Stateful;
-import javax.enterprise.event.Event;
-import javax.enterprise.inject.Model;
-import javax.enterprise.inject.Produces;
-import javax.faces.application.FacesMessage;
-import javax.faces.context.FacesContext;
-import javax.inject.Inject;
-import javax.inject.Named;
-import javax.persistence.EntityManager;
-
-import ${package}.model.Member;
-import ${package}.service.MemberRegistration;
-
-// The @Model stereotype is a convenience mechanism to make this a request-scoped bean that has an
-// EL name
-// Read more about the @Model stereotype in this FAQ:
-// http://sfwk.org/Documentation/WhatIsThePurposeOfTheModelAnnotation
-@Model
-public class MemberController {
-
- @Inject
- private FacesContext facesContext;
-
- @Inject
- private MemberRegistration memberRegistration;
-
- private Member newMember;
-
- @Produces
- @Named
- public Member getNewMember() {
- return newMember;
- }
-
- public void register() throws Exception {
- memberRegistration.register(newMember);
- facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, "Registered!", "Registration successful"));
- initNewMember();
- }
-
- @PostConstruct
- public void initNewMember() {
- newMember = new Member();
- }
-}
View
51 ...vaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/java/data/MemberListProducer.java
@@ -1,51 +0,0 @@
-#set( $symbol_pound = '#' )
-#set( $symbol_dollar = '$' )
-#set( $symbol_escape = '\' )
-package ${package}.data;
-
-import ${package}.model.Member;
-import java.util.List;
-import javax.annotation.PostConstruct;
-import javax.enterprise.context.RequestScoped;
-import javax.enterprise.event.Observes;
-import javax.enterprise.event.Reception;
-
-import javax.enterprise.inject.Produces;
-import javax.inject.Inject;
-import javax.inject.Named;
-import javax.persistence.EntityManager;
-import javax.persistence.criteria.CriteriaBuilder;
-import javax.persistence.criteria.CriteriaQuery;
-import javax.persistence.criteria.Root;
-
-@RequestScoped
-public class MemberListProducer {
- @Inject
- private EntityManager em;
-
- private List<Member> members;
-
- // @Named provides access the return value via the EL variable name "members" in the UI (e.g.,
- // Facelets or JSP view)
- @Produces
- @Named
- public List<Member> getMembers() {
- return members;
- }
-
- public void onMemberListChanged(@Observes(notifyObserver = Reception.IF_EXISTS) final Member member) {
- retrieveAllMembersOrderedByName();
- }
-
- @PostConstruct
- public void retrieveAllMembersOrderedByName() {
- CriteriaBuilder cb = em.getCriteriaBuilder();
- CriteriaQuery<Member> criteria = cb.createQuery(Member.class);
- Root<Member> member = criteria.from(Member.class);
- // Swap criteria statements if you would like to try out type-safe criteria queries, a new
- // feature in JPA 2.0
- // criteria.select(member).orderBy(cb.asc(member.get(Member_.name)));
- criteria.select(member).orderBy(cb.asc(member.get("name")));
- members = em.createQuery(criteria).getResultList();
- }
-}
View
81 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/java/model/Member.java
@@ -1,81 +0,0 @@
-#set( $symbol_pound = '#' )
-#set( $symbol_dollar = '$' )
-#set( $symbol_escape = '\' )
-package ${package}.model;
-
-import java.io.Serializable;
-
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.Id;
-import javax.persistence.Table;
-import javax.persistence.UniqueConstraint;
-import javax.validation.constraints.Digits;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Pattern;
-import javax.validation.constraints.Size;
-import javax.xml.bind.annotation.XmlRootElement;
-
-import org.hibernate.validator.constraints.Email;
-import org.hibernate.validator.constraints.NotEmpty;
-
-@Entity
-@XmlRootElement
-@Table(uniqueConstraints = @UniqueConstraint(columnNames = "email"))
-public class Member implements Serializable {
- /** Default value included to remove warning. Remove or modify at will. **/
- private static final long serialVersionUID = 1L;
-
- @Id
- @GeneratedValue
- private Long id;
-
- @NotNull
- @Size(min = 1, max = 25)
- @Pattern(regexp = "[A-Za-z ]*", message = "must contain only letters and spaces")
- private String name;
-
- @NotNull
- @NotEmpty
- @Email
- private String email;
-
- @NotNull
- @Size(min = 10, max = 12)
- @Digits(fraction = 0, integer = 12)
- @Column(name = "phone_number")
- private String phoneNumber;
-
- public Long getId() {
- return id;
- }
-
- public void setId(Long id) {
- this.id = id;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getEmail() {
- return email;
- }
-
- public void setEmail(String email) {
- this.email = email;
- }
-
- public String getPhoneNumber() {
- return phoneNumber;
- }
-
- public void setPhoneNumber(String phoneNumber) {
- this.phoneNumber = phoneNumber;
- }
-}
View
21 ...s-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/java/rest/JaxRsActivator.java
@@ -1,21 +0,0 @@
-#set( $symbol_pound = '#' )
-#set( $symbol_dollar = '$' )
-#set( $symbol_escape = '\' )
-package ${package}.rest;
-
-import javax.ws.rs.ApplicationPath;
-import javax.ws.rs.core.Application;
-
-/**
- * A class extending {@link Application} and annotated with @ApplicationPath is the Java EE 6
- * "no XML" approach to activating JAX-RS.
- *
- * <p>
- * Resources are served relative to the servlet path specified in the {@link ApplicationPath}
- * annotation.
- * </p>
- */
-@ApplicationPath("/rest")
-public class JaxRsActivator extends Application {
- /* class body intentionally left blank */
-}
View
49 ...ebapp-archetype/src/main/resources/archetype-resources/src/main/java/rest/MemberResourceRESTService.java
@@ -1,49 +0,0 @@
-#set( $symbol_pound = '#' )
-#set( $symbol_dollar = '$' )
-#set( $symbol_escape = '\' )
-package ${package}.rest;
-
-import java.util.List;
-
-import javax.enterprise.context.RequestScoped;
-import javax.inject.Inject;
-import javax.persistence.EntityManager;
-import javax.ws.rs.GET;
-import javax.ws.rs.Path;
-import javax.ws.rs.PathParam;
-import javax.ws.rs.Produces;
-
-import ${package}.model.Member;
-
-/**
- * JAX-RS Example
- *
- * This class produces a RESTful service to read the contents of the members table.
- */
-@Path("/members")
-@RequestScoped
-public class MemberResourceRESTService {
- @Inject
- private EntityManager em;
-
- @GET
- @Produces("text/xml")
- public List<Member> listAllMembers() {
- // Use @SupressWarnings to force IDE to ignore warnings about "genericizing" the results of
- // this query
- @SuppressWarnings("unchecked")
- // We recommend centralizing inline queries such as this one into @NamedQuery annotations on
- // the @Entity class
- // as described in the named query blueprint:
- // https://blueprints.dev.java.net/bpcatalog/ee5/persistence/namedquery.html
- final List<Member> results = em.createQuery("select m from Member m order by m.name").getResultList();
- return results;
- }
-
- @GET
- @Path("/{id:[0-9][0-9]*}")
- @Produces("text/xml")
- public Member lookupMemberById(@PathParam("id") long id) {
- return em.find(Member.class, id);
- }
-}
View
32 ...e6-webapp-archetype/src/main/resources/archetype-resources/src/main/java/service/MemberRegistration.java
@@ -1,32 +0,0 @@
-#set( $symbol_pound = '#' )
-#set( $symbol_dollar = '$' )
-#set( $symbol_escape = '\' )
-package ${package}.service;
-
-import ${package}.model.Member;
-
-import javax.ejb.Stateless;
-import javax.enterprise.event.Event;
-import javax.inject.Inject;
-import javax.persistence.EntityManager;
-import java.util.logging.Logger;
-
-// The @Stateless annotation eliminates the need for manual transaction demarcation
-@Stateless
-public class MemberRegistration {
-
- @Inject
- private Logger log;
-
- @Inject
- private EntityManager em;
-
- @Inject
- private Event<Member> memberEventSrc;
-
- public void register(Member member) throws Exception {
- log.info("Registering " + member.getName());
- em.persist(member);
- memberEventSrc.fire(member);
- }
-}
View
45 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/java/util/Resources.java
@@ -1,45 +0,0 @@
-#set( $symbol_pound = '#' )
-#set( $symbol_dollar = '$' )
-#set( $symbol_escape = '\' )
-package ${package}.util;
-
-import java.util.logging.Logger;
-
-import javax.enterprise.context.RequestScoped;
-import javax.enterprise.inject.Produces;
-import javax.enterprise.inject.spi.InjectionPoint;
-import javax.faces.context.FacesContext;
-import javax.persistence.EntityManager;
-import javax.persistence.PersistenceContext;
-
-/**
- * This class uses CDI to alias Java EE resources, such as the persistence context, to CDI beans
- *
- * <p>
- * Example injection on a managed bean field:
- * </p>
- *
- * <pre>
- * &${symbol_pound}064;Inject
- * private EntityManager em;
- * </pre>
- */
-public class Resources {
- // use @SuppressWarnings to tell IDE to ignore warnings about field not being referenced directly
- @SuppressWarnings("unused")
- @Produces
- @PersistenceContext
- private EntityManager em;
-
- @Produces
- public Logger produceLog(InjectionPoint injectionPoint) {
- return Logger.getLogger(injectionPoint.getMember().getDeclaringClass().getName());
- }
-
- @Produces
- @RequestScoped
- public FacesContext produceFacesContext() {
- return FacesContext.getCurrentInstance();
- }
-
-}
View
17 ...aee6-webapp-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<persistence version="2.0"
- xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="
- http://java.sun.com/xml/ns/persistence
- http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
- <persistence-unit name="primary">
- <!-- If you are running in a production environment, add a managed
- data source, the example data source is just for development and testing! -->
- <jta-data-source>java:jboss/datasources/${artifactId}DS</jta-data-source>
- <properties>
- <!-- Properties for Hibernate -->
- <property name="hibernate.hbm2ddl.auto" value="create-drop" />
- <property name="hibernate.show_sql" value="false" />
- </properties>
- </persistence-unit>
-</persistence>
View
2  jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/resources/import.sql
@@ -1,2 +0,0 @@
--- You can use this file to load seed data into the database using SQL statements
-insert into Member (id, name, email, phone_number) values (0, 'John Smith', 'john.smith@mailinator.com', '2125551212')
View
21 ...e6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/__artifactId__-ds.xml
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- This is an unmanaged datasource. It should be used for proofs of concept
- or testing only. It uses H2, an in memory database that ships with JBoss
- AS. -->
-<datasources xmlns="http://www.jboss.org/ironjacamar/schema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.jboss.org/ironjacamar/schema http://docs.jboss.org/ironjacamar/schema/datasources_1_0.xsd">
- <!-- The datasource is bound into JNDI at this location. We reference
- this in META-INF/persistence.xml -->
- <datasource jndi-name="java:jboss/datasources/${artifactId}DS"
- pool-name="{artifactId}" enabled="true"
- use-java-context="true">
- <connection-url>jdbc:h2:mem:${artifactId};DB_CLOSE_DELAY=-1</connection-url>
- <driver>h2</driver>
- <security>
- <user-name>sa</user-name>
- <password>sa</password>
- </security>
- </datasource>
-</datasources>
-
View
9 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/beans.xml
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- This file can be an empty text file (0 bytes) -->
-<!-- We're declaring the schema to save you time if you do have to configure
- this in the future -->
-<beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="
- http://java.sun.com/xml/ns/javaee
- http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
-</beans>
View
14 ...javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- This file is not required if you don't need any extra configuration. -->
-<faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="
- http://java.sun.com/xml/ns/javaee
- http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">
-
- <!-- This descriptor activates the JSF 2.0 Servlet -->
-
- <!-- Write your navigation rules here. You are encouraged to use CDI for
- creating @Named managed beans. -->
-
-</faces-config>
View
43 ...-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/default.xhtml
@@ -1,43 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:ui="http://java.sun.com/jsf/facelets">
-<h:head>
- <title>Java EE 6 Starter Application</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <h:outputStylesheet name="css/screen.css" />
-</h:head>
-<h:body>
- <div id="container">
- <div class="dualbrand">
- <img src="resources/gfx/dualbrand_logo.png" />
- </div>
- <div id="content">
- <ui:insert name="content">
- [Template content will be inserted here]
- </ui:insert>
- </div>
- <div id="aside">
- <p>Learn more about JBoss Enterprise Application Platform 6.</p>
- <ul>
- <li><a
- href="http://red.ht/jbeap-6-docs">Documentation</a></li>
- <li><a href="http://red.ht/jbeap-6">Product Information</a></li>
- </ul>
- <p>Learn more about JBoss AS 7.</p>
- <ul>
- <li><a
- href="https://docs.jboss.org/author/display/AS7/Getting+Started+Developing+Applications+Guide">Getting Started Developing Applications Guide</a></li>
- <li><a href="http://jboss.org/jbossas">Community Project Information</a></li>
- </ul>
- </div>
- <div id="footer">
- <p>
- This project was generated from a Maven archetype from
- JBoss.<br />
- </p>
- </div>
- </div>
-</h:body>
-</html>
View
10 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/index.html
@@ -1,10 +0,0 @@
-#set( $symbol_pound = '#' )
-#set( $symbol_dollar = '$' )
-#set( $symbol_escape = '\' )
-<!-- Plain HTML page that kicks us into the app -->
-
-<html>
-<head>
-<meta http-equiv="Refresh" content="0; URL=index.jsf">
-</head>
-</html>
View
71 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/index.xhtml
@@ -1,71 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- template="/WEB-INF/templates/default.xhtml">
- <ui:define name="content">
- <h1>Welcome to JBoss!</h1>
-
- <div>
- <p>You have successfully deployed a Java EE 6 web application.</p>
- <h3>Your application can run on:</h3>
- <img src="resources/gfx/dualbrand_as7eap.png"/>
- </div>
-
- <h:form id="reg">
- <h2>Member Registration</h2>
- <p>Enforces annotation-based constraints defined on the model class.</p>
- <h:panelGrid columns="3" columnClasses="titleCell">
- <h:outputLabel for="name" value="Name:"/>
- <h:inputText id="name" value="#{newMember.name}" />
- <h:message for="name" errorClass="invalid"/>
-
- <h:outputLabel for="email" value="Email:"/>
- <h:inputText id="email" value="#{newMember.email}"/>
- <h:message for="email" errorClass="invalid"/>
-
- <h:outputLabel for="phoneNumber" value="Phone #:"/>
- <h:inputText id="phoneNumber" value="#{newMember.phoneNumber}"/>
- <h:message for="phoneNumber" errorClass="invalid"/>
- </h:panelGrid>
-
- <p>
- <h:panelGrid columns="2">
- <h:commandButton id="register" action="#{memberController.register}" value="Register" styleClass="register"/>
- <h:messages styleClass="messages" errorClass="invalid" infoClass="valid" warnClass="warning"
- globalOnly="true"/>
- </h:panelGrid>
- </p>
- </h:form>
- <h2>Members</h2>
- <h:panelGroup rendered="#{empty members}">
- <em>No registered members.</em>
- </h:panelGroup>
- <h:dataTable var="_member" value="#{members}" rendered="#{not empty members}" styleClass="simpletablestyle">
- <h:column>
- <f:facet name="header">Id</f:facet>
- #{_member.id}
- </h:column>
- <h:column>
- <f:facet name="header">Name</f:facet>
- #{_member.name}
- </h:column>
- <h:column>
- <f:facet name="header">Email</f:facet>
- #{_member.email}
- </h:column>
- <h:column>
- <f:facet name="header">Phone #</f:facet>
- #{_member.phoneNumber}
- </h:column>
- <h:column>
- <f:facet name="header">REST URL</f:facet>
- <a href="#{request.contextPath}/rest/members/#{_member.id}">/rest/members/#{_member.id}</a>
- </h:column>
- <f:facet name="footer">
- REST URL for all members: <a href="#{request.contextPath}/rest/members">/rest/members</a>
- </f:facet>
- </h:dataTable>
- </ui:define>
-</ui:composition>
View
186 ...javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/css/screen.css
@@ -1,186 +0,0 @@
-/* Core styles for the page */
-body {
- margin: 0;
- padding: 0;
- background-color: #F1F1F1;
- font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
- font-size: 0.8em;
- color:#363636;
-}
-
-#container {
- margin: 0 auto;
- padding: 0 20px 10px 20px;
- border-top: 5px solid #000000;
- border-left: 5px solid #8c8f91;
- border-right: 5px solid #8c8f91;
- border-bottom: 25px solid #8c8f91;
- width: 865px; /* subtract 40px from banner width for padding */
- background: #FFFFFF;
- background-image: url(#{request.contextPath}/resources/gfx/headerbkg.png);
- background-repeat: repeat-x;
- padding-top: 30px;
- box-shadow: 3px 3px 15px #d5d5d5;
-}
-#content {
- float: left;
- width: 500px;
- margin: 20px;
-}
-#aside {
- font-size: 0.9em;
- width: 275px;
- float: left;
- margin: 20px 0px;
- border: 1px solid #D5D5D5;
- background: #F1F1F1;
- background-image: url(#{request.contextPath}/resources/gfx/asidebkg.png);
- background-repeat: repeat-x;
- padding: 20px;
-}
-
-#aside ul {
- padding-left: 30px;
-}
-.dualbrand {
- float: right;
- padding-right: 10px;
-}
-#footer {
- clear: both;
- text-align: center;
- color: #666666;
- font-size: 0.85em;
-}
-code {
- font-size: 1.1em;
-}
-a {
- color: #4a5d75;
- text-decoration: none;
-}
-a:hover {
- color: #369;
- text-decoration: underline;
-}
-h1 {
- color:#243446;
- font-size: 2.25em;
-}
-h2 {
- font-size: 1em;
-}
-h3 {
- color:#243446;
-}
-h4 {
-}
-h5 {
-}
-h6 {
-}
-/* Member registration styles */
-span.invalid {
- padding-left: 3px;
- color: red;
-}
-form {
- padding: 1em;
- font: 80%/1 sans-serif;
- width: 375px;
- border: 1px solid #D5D5D5;
-}
-label {
- float: left;
- width: 15%;
- margin-left: 20px;
- margin-right: 0.5em;
- padding-top: 0.2em;
- text-align: right;
- font-weight: bold;
- color:#363636;
-}
-input {
- margin-bottom: 8px;
-}
-.register {
- float: left;
- margin-left: 85px;
-}
-
-/* ----- table style ------- */
-
-
-/* = Simple Table style (black header, grey/white stripes */
-
-.simpletablestyle {
- background-color:#E6E7E8;
- clear:both;
- width: 550px;
-}
-
-.simpletablestyle img {
- border:0px;
-}
-
-.simpletablestyle td {
- height:2em;
- padding-left: 6px;
- font-size:11px;
- padding:5px 5px;
-}
-
-.simpletablestyle th {
- background: url(#{request.contextPath}/resources/gfx/bkg-blkheader.png) black repeat-x top left;
- font-size:12px;
- font-weight:normal;
- padding:0 10px 0 5px;
- border-bottom:#999999 dotted 1px;
-}
-
-.simpletablestyle thead {
- background: url(#{request.contextPath}/resources/gfx/bkg-blkheader.png) black repeat-x top left;
- height:31px;
- font-size:10px;
- font-weight:bold;
- color:#FFFFFF;
- text-align:left;
-}
-
-.simpletablestyle .header a {
- color:#94aebd;
-}
-
-.simpletablestype tfoot {
- height: 20px;
- font-size: 10px;
- font-weight: bold;
- background-color: #EAECEE;
- text-align: center;
-}
-
-.simpletablestyle tr.header td {
- padding: 0px 10px 0px 5px;
-}
-
-
-.simpletablestyle .subheader {
- background-color: #e6e7e8;
- font-size:10px;
- font-weight:bold;
- color:#000000;
- text-align:left;
-}
-
-/* Using new CSS3 selectors for styling*/
-.simpletablestyle tr:nth-child(odd) {
- background: #f4f3f3;
-}
-.simpletablestyle tr:nth-child(even) {
- background: #ffffff;
-}
-
-.simpletablestyle td a:hover {
- color:#3883ce;
- text-decoration:none;
-}
View
BIN  ...vaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/asidebkg.png
Deleted file not rendered
View
BIN  ...javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/banner.png
Deleted file not rendered
View
BIN  ...-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/bkg-blkheader.png
Deleted file not rendered
View
BIN  ...bapp-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/dualbrand_as7eap.png
Deleted file not rendered
View
BIN  ...e/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/dualbrand_catapillarbutterfly.png
Deleted file not rendered
View
BIN  ...webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/dualbrand_logo.png
Deleted file not rendered
View
BIN  ...aee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/headerbkg.png
Deleted file not rendered
View
BIN  ...ee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/icon_large.png
Deleted file not rendered
View
BIN  ...e6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/icon_medium.png
Deleted file not rendered
View
BIN  ...ee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/icon_small.png
Deleted file not rendered
View
BIN  ...s-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/logo.png
Deleted file not rendered
View
54 ...6-webapp-archetype/src/main/resources/archetype-resources/src/test/java/test/MemberRegistrationTest.java
@@ -1,54 +0,0 @@
-#set( $symbol_pound = '#' )
-#set( $symbol_dollar = '$' )
-#set( $symbol_escape = '\' )
-package ${package}.test;
-
-import static org.junit.Assert.assertNotNull;
-
-import java.util.logging.Logger;
-
-import javax.inject.Inject;
-
-import org.jboss.arquillian.container.test.api.Deployment;
-import org.jboss.arquillian.junit.Arquillian;
-import ${package}.controller.MemberController;
-import ${package}.model.Member;
-import ${package}.service.MemberRegistration;
-import ${package}.util.Resources;
-import org.jboss.shrinkwrap.api.Archive;
-import org.jboss.shrinkwrap.api.ShrinkWrap;
-import org.jboss.shrinkwrap.api.asset.EmptyAsset;
-import org.jboss.shrinkwrap.api.spec.WebArchive;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-
-@RunWith(Arquillian.class)
-public class MemberRegistrationTest {
- @Deployment
- public static Archive<?> createTestArchive() {
- return ShrinkWrap.create(WebArchive.class, "test.war")
- .addClasses(Member.class, MemberRegistration.class, Resources.class)
- .addAsResource("META-INF/test-persistence.xml", "META-INF/persistence.xml")
- .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
- // Deploy our test datasource
- .addAsWebInfResource("test-ds.xml", "test-ds.xml");
- }
-
- @Inject
- MemberRegistration memberRegistration;
-
- @Inject
- Logger log;
-
- @Test
- public void testRegister() throws Exception {
- Member newMember = new Member();
- newMember.setName("Jane Doe");
- newMember.setEmail("jane@mailinator.com");
- newMember.setPhoneNumber("2125551234");
- memberRegistration.register(newMember);
- assertNotNull(newMember.getId());
- log.info(newMember.getName() + " was persisted with id " + newMember.getId());
- }
-
-}
View
20 ...webapp-archetype/src/main/resources/archetype-resources/src/test/resources/META-INF/test-persistence.xml
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<persistence version="2.0"
- xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="
- http://java.sun.com/xml/ns/persistence
- http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
- <persistence-unit name="primary">
- <!-- We use a different datasource for tests, so as to not overwrite
- production data. This is an unmanaged data source, backed by H2, an in memory
- database. Production applications should use a managed datasource. -->
- <!-- The datasource is deployed as WEB-INF/test-ds.xml,
- you can find it in the source at src/test/resources/test-ds.xml -->
- <jta-data-source>java:jboss/datasources/${artifactId}TestDS</jta-data-source>
- <properties>
- <!-- Properties for Hibernate -->
- <property name="hibernate.hbm2ddl.auto" value="create-drop" />
- <property name="hibernate.show_sql" value="false" />
- </properties>
- </persistence-unit>
-</persistence>
View
23 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/test/resources/arquillian.xml
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<arquillian xmlns="http://jboss.org/schema/arquillian"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://jboss.org/schema/arquillian
- http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
-
- <!-- Uncomment to have test archives exported to the file system for inspection -->
-<!-- <engine> -->
-<!-- <property name="deploymentExportPath">target/</property> -->
-<!-- </engine> -->
-
- <!-- Force the use of the Servlet 3.0 protocol with all containers, as it is the most mature -->
- <defaultProtocol type="Servlet 3.0" />
-
- <!-- Example configuration for a remote JBoss AS 7 instance -->
- <container qualifier="jboss" default="true">
- <!-- If you want to use the JBOSS_HOME environment variable, just delete the jbossHome property -->
- <configuration>
- <property name="jbossHome">/path/to/jboss/as</property>
- </configuration>
- </container>
-
-</arquillian>
View
21 jboss-javaee6-webapp-archetype/src/main/resources/archetype-resources/src/test/resources/test-ds.xml
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- This is an unmanaged datasource. It should be used for proofs of concept
- or testing only. It uses H2, an in memory database that ships with JBoss
- AS. -->
-<datasources xmlns="http://www.jboss.org/ironjacamar/schema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.jboss.org/ironjacamar/schema http://docs.jboss.org/ironjacamar/schema/datasources_1_0.xsd">
- <!-- The datasource is bound into JNDI at this location. We reference
- this in META-INF/test-persistence.xml -->
- <datasource jndi-name="java:jboss/datasources/${artifactId}TestDS"
- pool-name="${artifactId}-test" enabled="true"
- use-java-context="true">
- <connection-url>jdbc:h2:mem:${artifactId}-test;DB_CLOSE_DELAY=-1</connection-url>
- <driver>h2</driver>
- <security>
- <user-name>sa</user-name>
- <password>sa</password>
- </security>
- </datasource>
-</datasources>
-
View
8 jboss-javaee6-webapp-archetype/src/test/resources/projects/basic/archetype.properties
@@ -1,8 +0,0 @@
-#Mon Nov 14 16:24:40 EST 2011
-package=it.pkg
-version=0.1-SNAPSHOT
-name=Java EE 6 webapp project
-groupId=archetype.it
-artifactId=basic
-enterprise=false
-jboss-bom-enterprise-version=1.0.0.M12-redhat-1
View
1  jboss-javaee6-webapp-archetype/src/test/resources/projects/basic/goal.txt
@@ -1 +0,0 @@
-clean verify
View
8 jboss-javaee6-webapp-archetype/src/test/resources/projects/enterprise/archetype.properties
@@ -1,8 +0,0 @@
-#Mon Nov 14 16:24:40 EST 2011
-package=it.pkg
-version=0.1-SNAPSHOT
-name=Java EE 6 Enterprise webapp project
-groupId=archetype.it
-artifactId=enterprise
-enterprise=${enterprise.available}
-jboss-bom-enterprise-version=1.0.0.M12-redhat-1
View
1  jboss-javaee6-webapp-archetype/src/test/resources/projects/enterprise/goal.txt
@@ -1 +0,0 @@
-clean verify
View
97 jboss-javaee6-webapp-blank-archetype/pom.xml
@@ -1,97 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.jboss</groupId>
- <artifactId>jboss-parent</artifactId>
- <version>6-beta-2</version>
- <relativePath />
- </parent>
-
- <groupId>org.jboss.spec.archetypes</groupId>
- <artifactId>jboss-javaee6-webapp-blank-archetype</artifactId>
- <version>7.1.1-SNAPSHOT</version>
- <packaging>maven-archetype</packaging>
-
- <name>Java EE 6 Webapp</name>
-
- <description>An archetype that generates a starter Java EE 6 webapp project for JBoss AS 7.1 (by default) or EAP 6 (if the "enterprise" property is true)</description>
-
- <url>http://jboss.org/jbossas</url>
-
- <developers>
- <developer>
- <name>Steven Boscarine</name>
- <email>stevenboscarine@gmail.com</email>
- </developer>
- <developer>
- <id>fbricon</id>
- <name>Fred Bricon</name>
- <email>fbricon@gmail.com</email>
- <organization>Red Hat, Inc.</organization>
- <organizationUrl>http://redhat.com/jboss</organizationUrl>
- <url>http://community.jboss.org/people/fbricon</url>
- <timezone>+1</timezone>
- </developer>
- <developer>
- <name>Dan Allen</name>
- <email>dan.j.allen@gmail.com</email>
- <organization>JBoss, by Red Hat</organization>
- <organizationUrl>http://redhat.com/jboss</organizationUrl>
- <url>http://community.jboss.org/people/dan.j.allen</url>
- </developer>
- <developer>
- <name>Pete Muir</name>
- <email>pete.muir@jboss.org</email>
- <organization>Red Hat, Inc.</organization>
- <organizationUrl>http://redhat.com/jboss</organizationUrl>
- <url>http://in.relation.to/Bloggers/Pete</url>
- </developer>
- </developers>
-
-
- <build>
- <testResources>
- <testResource>
- <directory>src/test/resources</directory>
- <filtering>true</filtering>
- </testResource>
- </testResources>
-
- <extensions>
- <extension>
- <groupId>org.apache.maven.archetype</groupId>
- <artifactId>archetype-packaging</artifactId>
- <version>2.1</version>
- </extension>
- </extensions>
-
- <pluginManagement>
- <plugins>
- <plugin>
- <artifactId>maven-archetype-plugin</artifactId>
- <version>2.1</version>
- <extensions>true</extensions>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
-
- <properties>
- <enterprise.available>false</enterprise.available>
- </properties>
-
-
- <profiles>
- <!-- Build with -Penterprise to test against an EAP repository -->
- <profile>
- <id>enterprise</id>
- <properties>
- <enterprise.available>true</enterprise.available>
- </properties>
- </profile>
- </profiles>
-
-</project>
View
11 jboss-javaee6-webapp-blank-archetype/release-procedure.txt
@@ -1,11 +0,0 @@
-(Assume Q is the qualifier of the release, e.g., Beta1)
-
-1. Edit archetype-pom.xml and set release version
-2. Tag this
-3. Edit archetype-pom.xml and set the development version
-4. Checkout the tag
-5. Build the archetype
- ./create-archetype.sh
-6. Publish it
- cd target/archetype
- mvn clean deploy -DaltDeploymentRepository=jboss-releases-repository::default::https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/
View
61 jboss-javaee6-webapp-blank-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
@@ -1,61 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<archetype-descriptor xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd" name="jboss-javaee6-webapp-src"
- xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <requiredProperties>
- <requiredProperty key="name">
- <defaultValue>Java EE 6 webapp project</defaultValue>
- </requiredProperty>
- <requiredProperty key="enterprise">
- <defaultValue>false</defaultValue>
- </requiredProperty>
- <requiredProperty key="jboss-bom-enterprise-version">
- <defaultValue>1.0.0.M12-redhat-1</defaultValue>
- </requiredProperty>
- </requiredProperties>
- <fileSets>
- <fileSet encoding="UTF-8">
- <directory>src/main/java</directory>
- <excludes>
- <exclude>**/*</exclude>
- </excludes>
- </fileSet>
- <fileSet encoding="UTF-8">
- <directory>src/test/java</directory>
- <excludes>
- <exclude>**/*</exclude>
- </excludes>
- </fileSet>
- <fileSet encoding="UTF-8" filtered="true">
- <directory>src/test/resources</directory>
- <excludes>
- <include>**/*.xml</include>
- </excludes>
- </fileSet>
- <fileSet encoding="UTF-8" filtered="true">
- <directory>src/main/webapp</directory>
- <includes>
- <include>**/*.xml</include>
- </includes>
- </fileSet>
- <fileSet encoding="UTF-8">
- <directory>src/main/webapp/resources</directory>
- <excludes>
- <exclude>**/*</exclude>
- </excludes>
- </fileSet>
- <fileSet encoding="UTF-8" filtered="true">
- <directory>src/main/resources</directory>
- <includes>
- <include>**/*.xml</include>
- </includes>
- </fileSet>
- <fileSet encoding="UTF-8">
- <directory></directory>
- <includes>
- <include>**/*.factorypath</include>
- <include>**/*.gitignore</include>
- </includes>
- </fileSet>
- </fileSets>
-</archetype-descriptor>
View
5 jboss-javaee6-webapp-blank-archetype/src/main/resources/archetype-resources/.factorypath
@@ -1,5 +0,0 @@
-<factorypath>
- <factorypathentry kind="PLUGIN" id="org.eclipse.jst.ws.annotations.core" enabled="true" runInBatchMode="false"/>
- <factorypathentry kind="VARJAR" id="M2_REPO/org/hibernate/hibernate-jpamodelgen/1.2.0.Final/hibernate-jpamodelgen-1.2.0.Final.jar" enabled="true" runInBatchMode="false"/>
- <factorypathentry kind="VARJAR" id="M2_REPO/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.1.Final/hibernate-jpa-2.0-api-1.0.1.Final.jar" enabled="true" runInBatchMode="false"/>
-</factorypath>
View
10 jboss-javaee6-webapp-blank-archetype/src/main/resources/archetype-resources/.gitignore
@@ -1,10 +0,0 @@
-*~
-.classpath
-.project
-target
-.settings
-.DS_Store
-.faces-config.xml.jsfdia
-MANIFEST.MF
-.idea
-*.iml
View
92 jboss-javaee6-webapp-blank-archetype/src/main/resources/archetype-resources/README.md
@@ -1,92 +0,0 @@
-${artifactId}
-========================
-
-What is it?
------------
-
-This is your project! It is a sample, deployable Maven 3 project to help you get your foot in the door developing with Java EE 6 on JBoss Enterprise Application Platform 6 or JBoss AS 7.1.
-
-This project is setup to allow you to create a compliant Java EE 6 application using JSF 2.0, CDI 1.0, EJB 3.1, JPA 2.0 and Bean Validation 1.0. It includes a persistence unit and some sample persistence and transaction code to introduce you to database access in enterprise Java.
-
-
-System requirements
--------------------
-
-All you need to build this project is Java 6.0 (Java SDK 1.6) or better, Maven 3.0 or better.
-
-The application this project produces is designed to be run on JBoss Enterprise Application Platform 6 or JBoss AS 7.1.
-
-
-Configure Maven
----------------
-
-If you have not yet done so, you must [Configure Maven](../README.html/#mavenconfiguration) before testing the quickstarts.
-
-
-Start JBoss Enterprise Application Platform 6 or JBoss AS 7.1
--------------------------
-
-1. Open a command line and navigate to the root of the JBoss server directory.
-2. The following shows the command line to start the server with the web profile:
-
- For Linux: JBOSS_HOME/bin/standalone.sh
- For Windows: JBOSS_HOME\bin\standalone.bat
-
-
-Build and Deploy the Quickstart
--------------------------
-
-_NOTE: The following build command assumes you have configured your Maven user settings. If you have not, you must include Maven setting arguments on the command line. See [Build and Deploy the Quickstarts](../README.html/#buildanddeploy) for complete instructions and additional options._
-
-1. Make sure you have started the JBoss Server as described above.
-2. Open a command line and navigate to the root directory of this quickstart.
-3. Type this command to build and deploy the archive:
-
- mvn clean package jboss-as:deploy
-
-4. This will deploy `target/${artifactId}.war` to the running instance of the server.
-
-
-Access the application
----------------------
-
-The application will be running at the following URL: <http://localhost:8080/${artifactId}/>.
-
-
-Undeploy the Archive
---------------------
-
-1. Make sure you have started the JBoss Server as described above.
-2. Open a command line and navigate to the root directory of this quickstart.
-3. When you are finished testing, type this command to undeploy the archive:
-
- mvn jboss-as:undeploy
-
-
-Run the Arquillian tests
-----------------------------
-
-This quickstart provides Arquillian tests. By default, these tests are configured to be skipped as Arquillian tests require the use of a container.
-
-_NOTE: The following commands assume you have configured your Maven user settings. If you have not, you must include Maven setting arguments on the command line. See [Run the Arquillian Tests](../README.html/#arquilliantests) for complete instructions and additional options._
-
-1. Make sure you have started the JBoss Server as described above.
-2. Open a command line and navigate to the root directory of this quickstart.
-3. Type the following command to run the test goal with the following profile activated:
-
- mv