Author: dan.j.allen
Date: 2011-01-21 15:44:12 -0500 (Fri, 21 Jan 2011)
New Revision: 7191
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/pom.xml
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/META-INF/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/META-INF/maven/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/META-INF/maven/archetype-metadata.xml
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/pom.xml
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/readme.html
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/readme.txt
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/java/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/java/HelloWorld.java
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/java/MemberResourceRESTService.java
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/resources/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/resources/META-INF/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/META-INF/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/META-INF/context.xml
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/beans.xml
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jetty-web.xml
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/default.xhtml
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/index.jsf
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/index.xhtml
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/resources/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/resources/css/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/resources/css/screen.css
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/banner.png
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/weld.png
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/test/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/test/java/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/test/java/BeanManagerTest.java
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/test/java/HelloWorldTest.java
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/test/resources/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/test/resources/jetty-env.xml
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/test/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/test/resources/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/test/resources/projects/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/test/resources/projects/basic/
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/test/resources/projects/basic/archetype.properties
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/test/resources/projects/basic/goal.txt
Log:
prepare for 1.0.1.Beta1 release
Added: archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/pom.xml
===================================================================
--- archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/pom.xml
(rev 0)
+++ archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/pom.xml 2011-01-21 20:44:12 UTC
(rev 7191)
@@ -0,0 +1,96 @@
+<?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.weld</groupId>
+ <artifactId>weld-parent</artifactId>
+ <version>17</version>
+ </parent>
+
+ <groupId>org.jboss.weld.archetypes</groupId>
+ <artifactId>jboss-jsf-weld-servlet-webapp</artifactId>
+ <version>1.0.1.Beta1</version>
+ <packaging>maven-archetype</packaging>
+
+ <name>JBoss JSF and CDI Servlet Webapp</name>
+
+ <description>An archetype that generates a starter JSF webapp project with CDI
capabilities for Servlet containers</description>
+
+
<
url>http://seamframework.org/Documentation/WeldQuickstartForMavenUsers...
+
+ <developers>
+ <developer>
+ <name>Steven Boscarine</name>
+ <roles>
+ <role>Weld archetypes co-lead</role>
+ </roles>
+ <email>stevenboscarine(a)gmail.com</email>
+ <organization>Community Volunteer</organization>
+ <
organizationUrl>http://chip.org/</organizationUrl>
+ <
url>http://www.beacon16.com/</url>
+ </developer>
+ <developer>
+ <name>Dan Allen</name>
+ <roles>
+ <role>Weld archetypes co-lead</role>
+ </roles>
+ <email>dan.j.allen(a)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>
+ <roles>
+ <role>Weld project lead</role>
+ </roles>
+ <email>pete.muir(a)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>
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.archetype</groupId>
+ <artifactId>archetype-packaging</artifactId>
+ <version>2.0-alpha-5</version>
+ </extension>
+ </extensions>
+
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-archetype-plugin</artifactId>
+ <version>2.0-alpha-5</version>
+ <extensions>true</extensions>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <scm>
+
<
connection>scm:svn:http://anonsvn.jboss.org/repos/weld/archetypes/jsf-...
+
<
developerConnection>scm:svn:https://svn.jboss.org/repos/weld/archetype...
+
<
url>http://fisheye.jboss.org/browse/weld/archetypes/jsf-weld-servlet-w...
+ </scm>
+
+ <!-- Uncomment to deploy to central -->
+ <!--
+ <distributionManagement>
+ <repository>
+ <id>central-releases-repository</id>
+ <name>Sonatype Nexus Maven Repository</name>
+ <
url>http://oss.sonatype.org/service/local/staging/deploy/maven2</ur...
+ </repository>
+ <snapshotRepository>
+ <id>central-snapshots-repository</id>
+ <name>Sonatype Nexus Snapshot Repository</name>
+
<
url>http://oss.sonatype.org/content/repositories/jboss-snapshots</u...
+ </snapshotRepository>
+ </distributionManagement>
+ -->
+</project>
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/META-INF/maven/archetype-metadata.xml
===================================================================
---
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/META-INF/maven/archetype-metadata.xml
(rev 0)
+++
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/META-INF/maven/archetype-metadata.xml 2011-01-21
20:44:12 UTC (rev 7191)
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archetype-descriptor
xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-...
http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd"
name="jboss-jsf-weld-servlet-webapp-src"
+
xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archet...
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <requiredProperties>
+ <requiredProperty key="name">
+ <defaultValue>JSF and CDI webapp project</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>**/*.xml</include>
+ </includes>
+ </fileSet>
+ <fileSet filtered="true" encoding="UTF-8">
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>**/*.xml</include>
+ </includes>
+ </fileSet>
+ <fileSet encoding="UTF-8">
+ <directory>src/main/webapp</directory>
+ <includes>
+ <include>**/*.png</include>
+ <include>**/*.xhtml</include>
+ <include>**/*.css</include>
+ <include>**/*.jsf</include>
+ </includes>
+ </fileSet>
+ <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>**/*.xml</include>
+ </includes>
+ </fileSet>
+ <fileSet filtered="true" encoding="UTF-8">
+ <directory>.settings</directory>
+ <includes>
+ <include>**/*.xml</include>
+ </includes>
+ </fileSet>
+ <fileSet encoding="UTF-8">
+ <directory>.settings</directory>
+ <includes>
+ <include>**/*.prefs</include>
+ <include>**/*.component</include>
+ <include>**/*.container</include>
+ <include>**/*.jsdtscope</include>
+ <include>**/*.name</include>
+ </includes>
+ </fileSet>
+ <fileSet filtered="true" encoding="UTF-8">
+ <directory></directory>
+ <includes>
+ <include>archetype-pom.xml</include>
+ <include>readme.txt</include>
+ <include>release-procedure.txt</include>
+ <include>readme.html</include>
+ <include>archetype-excludes.txt</include>
+ </includes>
+ </fileSet>
+ <fileSet encoding="UTF-8">
+ <directory></directory>
+ <includes>
+ <include>.classpath</include>
+ <include>.release-procedure.txt.swp</include>
+ <include>.project</include>
+ <include>create-archetype.sh</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+</archetype-descriptor>
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/pom.xml
===================================================================
---
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/pom.xml
(rev 0)
+++
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/pom.xml 2011-01-21
20:44:12 UTC (rev 7191)
@@ -0,0 +1,295 @@
+<?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>
+
+ <name>${name}</name>
+ <description>A starter JSF and CDI webapp project that targets Servlet
containers, generated from the jboss-jsf-weld-servlet-webapp
archetype</description>
+
+ <properties>
+ <version.weld-servlet>1.1.0.Final</version.weld-servlet>
+ <version.arquillian>1.0.0.Alpha4</version.arquillian>
+ <version.mojarra>2.0.3</version.mojarra>
+ <version.myfaces>2.0.3</version.myfaces>
+
+ <!--
+ 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>
+ </properties>
+
+ <repositories>
+ <!-- The JBoss public Nexus repository is a composite repository of several
major repositories -->
+ <!-- see
http://community.jboss.org/wiki/MavenGettingStarted-Users -->
+ <!-- At the time of writing, Arquillian and the JBoss Java EE specification POMs
are only in the JBoss Community public repository (not Maven central) -->
+ <repository>
+ <id>jboss-public-repository</id>
+ <name>JBoss Repository</name>
+ <
url>https://repository.jboss.org/nexus/content/groups/public</url>
+ <releases>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ <snapshots>
+ <updatePolicy>daily</updatePolicy>
+ </snapshots>
+ </repository>
+ </repositories>
+
+ <pluginRepositories>
+ <pluginRepository>
+ <id>jboss-public-repository</id>
+ <name>JBoss Repository</name>
+ <
url>https://repository.jboss.org/nexus/content/groups/public</url>
+ <releases>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ <updatePolicy>daily</updatePolicy>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+
+ <dependencyManagement>
+ <dependencies>
+ <!-- Import scope will provide versions for dependencies below. -->
+ <dependency>
+ <groupId>org.jboss.weld.servlet</groupId>
+ <artifactId>weld-servlet-parent</artifactId>
+ <version>${version.weld-servlet}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+
+ <!-- Common to JEE and Servlet containers -->
+ <dependency>
+ <groupId>javax.enterprise</groupId>
+ <artifactId>cdi-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>javax.annotation</groupId>
+ <artifactId>jsr250-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.5</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <!--
+ <dependency>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ <version>2.2.1-b04</version>
+ <scope>compile</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.glassfish.web</groupId>
+ <artifactId>el-impl</artifactId>
+ <version>2.2.1-b04</version>
+ <scope>runtime</scope>
+ </dependency>
+ -->
+
+ <dependency>
+ <groupId>org.jboss.weld.servlet</groupId>
+ <artifactId>weld-servlet</artifactId>
+ <scope>runtime</scope>
+ </dependency>
+
+ <!-- Bean Validation API (JSR 303) -->
+ <dependency>
+ <groupId>javax.validation</groupId>
+ <artifactId>validation-api</artifactId>
+ </dependency>
+
+ <!-- Bean Validation Implementation -->
+ <!-- Provides portable constraints such as @NotEmpty, @Email and @Url -->
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-validator</artifactId>
+ <version>4.0.0.GA</version>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.8.1</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.arquillian</groupId>
+ <artifactId>arquillian-junit</artifactId>
+ <version>${version.arquillian}</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <finalName>${project.artifactId}</finalName>
+ <plugins>
+ <!-- Compiler plugin enforces Java 1.5 compatibility -->
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.3.1</version>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+
+ <!-- Embedded Jetty (jetty:run) -->
+ <plugin>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>maven-jetty-plugin</artifactId>
+ <version>6.1.26</version>
+ <configuration>
+ <!-- Delete this block to have Jetty run default port (8080) -->
+ <connectors>
+ <connector
implementation="org.mortbay.jetty.nio.SelectChannelConnector">
+ <port>9090</port>
+ </connector>
+ </connectors>
+ <!-- force friendly name instead of artifact name + version -->
+ <contextPath>${project.build.finalName}</contextPath>
+ <!-- Where the BeanManager is constructed. This is where you'll
declare datasources. -->
+
<jettyEnvXml>${project.basedir}/src/test/resources/jetty-env.xml</jettyEnvXml>
+ <!-- This parameter will auto-deploy modified classes. -->
+ <!-- You can save changes in a file or class and refresh your browser
to view the changes. -->
+ <scanIntervalSeconds>3</scanIntervalSeconds>
+ </configuration>
+ </plugin>
+
+ <!-- Embedded Tomcat (package tomcat:run) -->
+ <!-- Standalone Tomcat (package tomcat:deploy) -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>tomcat-maven-plugin</artifactId>
+ <version>1.0</version>
+ <configuration>
+ <path>/${project.build.finalName}</path>
+ <!-- Embedded port -->
+ <port>9090</port>
+ <!--
+ The default authentication credentials for remote deployment are
username "admin" with no password To
+ override credentials, define a server in settings.xml and activate it
using the <server> element
+ -->
+ <url>http://localhost:9090/manager</url>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <profiles>
+ <profile>
+ <id>arq-weld-embedded</id>
+ <activation>
+ <property>
+ <name>!arquillian</name>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.weld.arquillian.container</groupId>
+ <artifactId>arquillian-weld-ee-embedded-1.1</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <!-- Arquillian Weld EE Embedded requires the EL and EJB 3.1 APIs; Weld
runtime provided by weld-servlet -->
+ <dependency>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ <!-- remove scope if bundling EL libraries w/ webapp -->
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.spec.javax.ejb</groupId>
+ <artifactId>jboss-ejb-api_3.1_spec</artifactId>
+ <version>1.0.0.Final</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ </profile>
+
+ <profile>
+ <!-- JSF 2.0 Reference Implementation-->
+ <id>mojarra</id>
+ <activation>
+ <property>
+ <name>!jsf</name>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <version>${version.mojarra}</version>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ <version>${version.mojarra}</version>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+ </profile>
+
+ <profile>
+ <!-- JSF 2.0 Implementation-->
+ <id>myfaces</id>
+ <activation>
+ <property>
+ <name>jsf</name>
+ <value>myfaces</value>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.myfaces.core</groupId>
+ <artifactId>myfaces-api</artifactId>
+ <version>${version.myfaces}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.myfaces.core</groupId>
+ <artifactId>myfaces-impl</artifactId>
+ <version>${version.myfaces}</version>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+ </profile>
+
+ <profile>
+ <!-- JAX-RS 1.1 Reference Implementation-->
+ <id>jersey</id>
+ <activation>
+ <property>
+ <name>!jaxrs</name>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>com.sun.jersey</groupId>
+ <artifactId>jersey-server</artifactId>
+ <version>1.4</version>
+ </dependency>
+ </dependencies>
+ </profile>
+
+ <!-- TODO add profile for RESTEasy -->
+ </profiles>
+</project>
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/readme.html
===================================================================
---
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/readme.html
(rev 0)
+++
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/readme.html 2011-01-21
20:44:12 UTC (rev 7191)
@@ -0,0 +1,96 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<!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">
+<head>
+<title></title>
+<meta name="generator" content="HTML::TextToHTML v2.51"/>
+</head>
+<body>
+<h1><a name="section_1">${artifactId}</a></h1>
+<p> <strong>Source archetype:</strong> jboss-jsf-weld-servlet-webapp
+</p><h2><a name="section_1_1">What is
it?</a></h2>
+<p> This is your project! It's a barebones, deployable Maven 2 project to help
you
+ get your foot in the door developing with Java EE 6. Specifically, this
+ project is setup to allow you to create a JSF 2.0 and CDI 1.0 application that
+ can run on Servlet Containers like Tomcat 6 and Jetty 6. You may be satisfied
+ with this combination in the long run, or you may eventually migrate to a true
+ Java EE 6 environment to leverage EJB 3.1, JPA 2.0 and other platform
+ technologies.
+</p><h2><a name="section_1_2">System
requirements</a></h2>
+<p> All you need to run this project is Java 5.0 (Java SDK 1.5) or greator and
+ Maven 2.0.10 or greater. This application is setup to be run on a Servlet
+ Container. The embedded Jetty and Tomcat containers get downloaded
+ automatically by the Maven commands.
+</p><p> If you want to deploy the application to a standalone Servlet
Container, then
+ you will need to set one up.
+</p><p> Please note that Maven 2 project needs to use the JBoss Maven
repository
+ because there are certain Java EE API JARs that are not yet publised to the
+ Maven Central Repository (see <a
href="https://jira.jboss.org/jira/browse/WELD-222">https://j...>)
+</p><h2><a name="section_1_3">Deploying the
application</a></h2>
+<p> You can deploy the application without moving any files around using the
+ embedded Jetty or Tomcat containers.
+</p><p> To run the application using embedded Jetty, execute this command:
+</p><pre>
+ mvn jetty:run</pre>
+<p> To run the application using embedded Tomcat, execute this command:
+</p><pre>
+ mvn compile tomcat:run</pre>
+<p> The application will be running at the following URL:
+
+</p><pre>
+ <a
href="http://localhost:9090/${artifactId}">http://localhost:9090/${artifactId}</a></pre>
+<p> To run the application on a standalone container, first execute this command:
+</p><pre>
+ mvn package</pre>
+<p> Then copy the archive target/jboss-jsf-weld-servlet-webapp.war to the hot
deploy directory of
+ the container (e.g., the webapps directory of Tomcat). Of course, you also
+ need to start the container.
+</p><p> The default settings use Mojarra 2, the JSF 2 reference
implementation. If you
+ want to use MyFaces 2 instead, just add the -Djsf=myfaces flag to any of the
+ commands above.
+</p><pre>
+ mvn jetty:run -Djsf=myfaces</pre>
+<p> The application will work just as before, except the JSF functionality will be
+ powered by MyFaces.
+</p><h2><a name="section_1_4">Importing the project into an
IDE</a></h2>
+<p> If you created the project using the Maven 2 archetype wizard in your IDE
+ (Eclipse, NetBeans or IntelliJ IDEA), then there is nothing to do. You should
+ already have an IDE project.
+</p><p> If you created the project from the commandline using
archetype:generate, then
+ you need to bring the project into your IDE. If you are using NetBeans 6.8 or
+ IntelliJ IDEA 9, then all you have to do is open the project as an existing
+ project. Both of these IDEs recognize Maven 2 projects natively.
+</p><p> To import into Eclipse, you first need to install the m2eclipse
plugin. To get
+ started, add the m2eclipse update site (<a
href="http://m2eclipse.sonatype.org/update/">http://m2eclips...>)
+ to Eclipse and install the m2eclipse plugin and required dependencies. Once
+ that is installed, you'll be ready to import the project into Eclipse.
+</p><pre>
+ Select File > Import... and select "Import... > Maven Projects"
and select
+</pre>
+<p> your project directory. m2eclipse should take it from there.
+</p><p> Once in the IDE, you can execute the Maven commands through the IDE
controls
+ to run the application on an embedded Servlet Container.
+</p><h2><a name="section_1_5">Downloading the sources and
Javadocs</a></h2>
+<p> If you want to be able to debug into the source code or look at the Javadocs
+ of any library in the project, you can run either of the following two
+ commands to pull them into your local repository. The IDE should then detect
+ them.
+</p><pre>
+ mvn dependency:sources
+ mvn dependency:resolve -Dclassifier=javadoc</pre>
+<h2><a name="section_1_6">Resources</a></h2>
+<p> Weld archetypes:
+</p><ul>
+ <li>Quickstart: <a
href="http://seamframework.org/Documentation/WeldQuickstartForMavenU...
+ </li><li>Issue tracker: <a
href="https://jira.jboss.org/jira/browse/WELDRAD">https://ji...
+ </li><li>Source code: <a
href="http://anonsvn.jboss.org/repos/weld/archetypes">http:/...
+ </li><li>Forums: <a
href="http://seamframework.org/Community/WeldUsers">http://s...
+ JSR-299 overview: <a
href="http://seamframework.org/Weld">http://seamframework.or...
+ JSF community site: <a
href="http://www.javaserverfaces.org">http://www.javaserverfaces.org</a>
+</li></ul>
+
+</body>
+</html>
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/readme.txt
===================================================================
---
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/readme.txt
(rev 0)
+++
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/readme.txt 2011-01-21
20:44:12 UTC (rev 7191)
@@ -0,0 +1,113 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+ ${artifactId}
+ +++++++++++++++++++++++++++++++++
+
+ ${symbol_pound}Source archetype:${symbol_pound} jboss-jsf-weld-servlet-webapp
+
+ What is it?
+ ===========
+
+ This is your project! It's a barebones, deployable Maven 2 project to help you
+ get your foot in the door developing with Java EE 6. Specifically, this
+ project is setup to allow you to create a JSF 2.0 and CDI 1.0 application that
+ can run on Servlet Containers like Tomcat 6 and Jetty 6. You may be satisfied
+ with this combination in the long run, or you may eventually migrate to a true
+ Java EE 6 environment to leverage EJB 3.1, JPA 2.0 and other platform
+ technologies.
+
+ System requirements
+ ===================
+
+ All you need to run this project is Java 5.0 (Java SDK 1.5) or greator and
+ Maven 2.0.10 or greater. This application is setup to be run on a Servlet
+ Container. The embedded Jetty and Tomcat containers get downloaded
+ automatically by the Maven commands.
+
+ If you want to deploy the application to a standalone Servlet Container, then
+ you will need to set one up.
+
+ Please note that Maven 2 project needs to use the JBoss Maven repository
+ because there are certain Java EE API JARs that are not yet publised to the
+ Maven Central Repository (see
https://jira.jboss.org/jira/browse/WELD-222)
+
+ Deploying the application
+ =========================
+
+ You can deploy the application without moving any files around using the
+ embedded Jetty or Tomcat containers.
+
+ To run the application using embedded Jetty, execute this command:
+
+ mvn jetty:run
+
+ To run the application using embedded Tomcat, execute this command:
+
+ mvn compile tomcat:run
+
+ The application will be running at the following URL:
+
+
http://localhost:9090/${artifactId}
+
+ To run the application on a standalone container, first execute this command:
+
+ mvn package
+
+ Then copy the archive target/jboss-jsf-weld-servlet-webapp.war to the hot deploy
directory of
+ the container (e.g., the webapps directory of Tomcat). Of course, you also
+ need to start the container.
+
+ The default settings use Mojarra 2, the JSF 2 reference implementation. If you
+ want to use MyFaces 2 instead, just add the -Djsf=myfaces flag to any of the
+ commands above.
+
+ mvn jetty:run -Djsf=myfaces
+
+ The application will work just as before, except the JSF functionality will be
+ powered by MyFaces.
+
+ Importing the project into an IDE
+ =================================
+
+ If you created the project using the Maven 2 archetype wizard in your IDE
+ (Eclipse, NetBeans or IntelliJ IDEA), then there is nothing to do. You should
+ already have an IDE project.
+
+ If you created the project from the commandline using archetype:generate, then
+ you need to bring the project into your IDE. If you are using NetBeans 6.8 or
+ IntelliJ IDEA 9, then all you have to do is open the project as an existing
+ project. Both of these IDEs recognize Maven 2 projects natively.
+
+ To import into Eclipse, you first need to install the m2eclipse plugin. To get
+ started, add the m2eclipse update site (
http://m2eclipse.sonatype.org/update/)
+ to Eclipse and install the m2eclipse plugin and required dependencies. Once
+ that is installed, you'll be ready to import the project into Eclipse.
+
+ Select File > Import... and select "Import... > Maven Projects" and
select
+ your project directory. m2eclipse should take it from there.
+
+ Once in the IDE, you can execute the Maven commands through the IDE controls
+ to run the application on an embedded Servlet Container.
+
+ Downloading the sources and Javadocs
+ ====================================
+
+ If you want to be able to debug into the source code or look at the Javadocs
+ of any library in the project, you can run either of the following two
+ commands to pull them into your local repository. The IDE should then detect
+ them.
+
+ mvn dependency:sources
+ mvn dependency:resolve -Dclassifier=javadoc
+
+ Resources
+ =========
+
+ Weld archetypes:
+ - Quickstart:
http://seamframework.org/Documentation/WeldQuickstartForMavenUsers
+ - Issue tracker:
https://jira.jboss.org/jira/browse/WELDRAD
+ - Source code:
http://anonsvn.jboss.org/repos/weld/archetypes
+ - Forums:
http://seamframework.org/Community/WeldUsers
+ JSR-299 overview:
http://seamframework.org/Weld
+ JSF community site:
http://www.javaserverfaces.org
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/java/HelloWorld.java
===================================================================
---
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/java/HelloWorld.java
(rev 0)
+++
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/java/HelloWorld.java 2011-01-21
20:44:12 UTC (rev 7191)
@@ -0,0 +1,77 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+package ${package};
+
+import javax.annotation.PostConstruct;
+import javax.enterprise.inject.Model;
+import javax.validation.constraints.Digits;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Pattern;
+
+import org.hibernate.validator.constraints.Email;
+import org.hibernate.validator.constraints.NotEmpty;
+
+public @Model class HelloWorld
+{
+ private final String text = "Hello, World!";
+
+ private String letters;
+
+ private String numbers;
+
+ private String email;
+
+ public HelloWorld() {}
+
+ @PostConstruct
+ public void initialize()
+ {
+ System.out.println(this.getClass().getSimpleName() + " was
constructed");
+ }
+
+ public String getText()
+ {
+ return text;
+ }
+
+ @NotNull
+ @NotEmpty
+ @Pattern(regexp = "[A-Za-z]*", message = "must contain only
letters")
+ public String getLetters()
+ {
+ return letters;
+ }
+
+ public void setLetters(String letters)
+ {
+ this.letters = letters;
+ }
+
+ @NotNull
+ @NotEmpty
+ @Digits(fraction = 0, integer = 2)
+ public String getNumbers()
+ {
+ return numbers;
+ }
+
+ public void setNumbers(String numbers)
+ {
+ this.numbers = numbers;
+ }
+
+ @NotNull
+ @NotEmpty
+ @Email
+ public String getEmail()
+ {
+ return email;
+ }
+
+ public void setEmail(String email)
+ {
+ this.email = email;
+ }
+
+}
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/java/MemberResourceRESTService.java
===================================================================
---
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/java/MemberResourceRESTService.java
(rev 0)
+++
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/java/MemberResourceRESTService.java 2011-01-21
20:44:12 UTC (rev 7191)
@@ -0,0 +1,22 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+package ${package};
+
+import javax.enterprise.context.RequestScoped;
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+
+@Path("/members")
+@RequestScoped
+public class MemberResourceRESTService
+{
+ //placeholder to confirm JAX-RS is working as expected.
+ @GET
+ @Produces("text/plain")
+ public String ping()
+ {
+ return "Hello World";
+ }
+}
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml
===================================================================
---
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml
(rev 0)
+++
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml 2011-01-21
20:44:12 UTC (rev 7191)
@@ -0,0 +1,14 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ The contents of this file is permitted to be empty.
+ The schema definition is provided for your convenience.
+-->
+<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>
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/META-INF/context.xml
===================================================================
---
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/META-INF/context.xml
(rev 0)
+++
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/META-INF/context.xml 2011-01-21
20:44:12 UTC (rev 7191)
@@ -0,0 +1,11 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?xml version="1.0" encoding="UTF-8"?>
+<Context>
+ <!-- disable storage of sessions across restarts -->
+ <Manager pathname=""/>
+ <Resource name="BeanManager" auth="Container"
type="javax.enterprise.inject.spi.BeanManager"
factory="org.jboss.weld.resources.ManagerObjectFactory"/>
+ <!-- Uncomment to enable injection into Servlets, Servlet Listeners and Filters in
Tomcat -->
+ <!-- <Listener
className="org.jboss.weld.environment.tomcat.WeldLifecycleListener"/> -->
+</Context>
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/beans.xml
===================================================================
---
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/beans.xml
(rev 0)
+++
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/beans.xml 2011-01-21
20:44:12 UTC (rev 7191)
@@ -0,0 +1,14 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ The contents of this file is permitted to be empty.
+ The schema definition is provided for your convenience.
+-->
+<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>
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
---
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
(rev 0)
+++
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml 2011-01-21
20:44:12 UTC (rev 7191)
@@ -0,0 +1,15 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?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">
+
+ <!-- Write your navigation rules here. You are encouraged to use CDI for creating
@Named managed beans. -->
+
+</faces-config>
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jetty-web.xml
===================================================================
---
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jetty-web.xml
(rev 0)
+++
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jetty-web.xml 2011-01-21
20:44:12 UTC (rev 7191)
@@ -0,0 +1,10 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN"
"http://jetty.mortbay.org/configure.dtd">
+<Configure id="webAppCtx"
class="org.mortbay.jetty.webapp.WebAppContext">
+ <Call class="org.jboss.weld.environment.jetty.WeldServletHandler"
name="process">
+ <Arg><Ref id="webAppCtx"/></Arg>
+ </Call>
+</Configure>
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/default.xhtml
===================================================================
---
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/default.xhtml
(rev 0)
+++
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/default.xhtml 2011-01-21
20:44:12 UTC (rev 7191)
@@ -0,0 +1,58 @@
+<!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>CDI and JSF 2 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 id="content">
+ <div id="sidebar">
+ <h3>Find out more</h3>
+ <p>
+ Learn about the CDI programming model.
+ </p>
+ <ul>
+ <li><a
href="http://docs.jboss.org/cdi/spec/1.0/html">JSR-299: CDI
specification</a></li>
+ </ul>
+ <p>
+ Dive into Weld, the JSR-299 reference implementation, and discover
portable extensions Seam 3 offers.
+ </p>
+ <ul>
+ <li><a
href="http://docs.jboss.org/weld/reference/latest/en-US/html"&g... reference
guide</a></li>
+ <li><a
href="http://seamframework.org/Weld">Weld
project</a></li>
+ <li><a
href="http://seamframework.org/Seam3">Seam
3 project</a></li>
+ <li><a
href="http://seamframework.org/Community/Forums">User
forums</a></li>
+ <li><a
href="http://seamframework.org/Community/MailingLists">Mailing
lists</a></li>
+ <li><a
href="https://issues.jboss.org/browse/WELDRAD">Archetype issue
tracker</a></li>
+ </ul>
+ <p>
+ Explore JavaServer Faces, the component-oriented UI framework in Java
EE 6.
+ </p>
+ <ul>
+ <li><a href="http://www.javaserverfaces.org">JSF
community site</a></li>
+ </ul>
+ <p>
+ If you have an add-on, please <a
href="http://seamframework.org/Community/Forums">let us know</a> and
+ consider <a
href="http://seamframework.org/Seam3/GetInvolved">contributi... it
back to the
+ community!
+ </p>
+ </div>
+ <ui:insert name="content">
+ [Template content will be inserted here]
+ </ui:insert>
+ </div>
+ <div id="footer">
+ <h:graphicImage value="/resources/gfx/weld.png" alt="Weld
logo"/>
+ <p>
+ This project was generated from a Maven archetype maintained by the Weld
team.<br/>
+ Weld is the reference implementation of CDI, released under the Apache
License, Version 2.0.<br/>
+ </p>
+ </div>
+ </div>
+ </h:body>
+</html>
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
===================================================================
---
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
(rev 0)
+++
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml 2011-01-21
20:44:12 UTC (rev 7191)
@@ -0,0 +1,93 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.5"
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-app_2_5.xsd">
+
+ <!-- This is an optional parameter, but it makes troubleshooting errors much easier
-->
+ <!-- You should remove this context parameter before deploying to production!
-->
+ <context-param>
+ <param-name>javax.faces.PROJECT_STAGE</param-name>
+ <param-value>Development</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>org.apache.myfaces.annotation.SCAN_PACKAGES</param-name>
+ <param-value>${package}</param-value>
+ </context-param>
+
+ <!--
+ <context-param>
+ <param-name>com.sun.faces.expressionFactory</param-name>
+ <param-value>com.sun.el.ExpressionFactoryImpl</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>org.apache.myfaces.EXPRESSION_FACTORY</param-name>
+ <param-value>com.sun.el.ExpressionFactoryImpl</param-value>
+ </context-param>
+ -->
+
+ <!-- Activate the JSF 2.0 servlet -->
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <!-- Tell the context which URLs to process with JSF -->
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+
+ <!-- This section is optional. We are allowing index.jsf to handle the root URL
(i.e., /). -->
+ <welcome-file-list>
+ <!-- Add additional files here, if desired, for example:
<welcome-file>index.html</welcome-file> -->
+ <welcome-file>index.jsf</welcome-file>
+ </welcome-file-list>
+
+ <!-- Weld Jetty/Tomcat specific configuration parameters -->
+ <!-- *** The <listener> and <resource-env-ref> elements can be deleted
when running in a Java EE 6 container *** -->
+ <listener>
+
<listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
+ </listener>
+
+ <!-- JAX-RS 1.1 configuration through Jersey -->
+ <servlet>
+ <servlet-name>Jersey Web Application</servlet-name>
+
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
+ <init-param>
+ <param-name>com.sun.jersey.config.property.packages</param-name>
+ <param-value>${package}</param-value>
+ </init-param>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>Jersey Web Application</servlet-name>
+ <url-pattern>/rest/*</url-pattern>
+ </servlet-mapping>
+ <!-- End Jersey JAX-RS configuration -->
+
+ <resource-env-ref>
+ <description>Object factory for the CDI Bean Manager</description>
+ <resource-env-ref-name>BeanManager</resource-env-ref-name>
+
<resource-env-ref-type>javax.enterprise.inject.spi.BeanManager</resource-env-ref-type>
+ </resource-env-ref>
+
+ <!-- Enable this security constraint if you are using *.jsf as your Faces Servlet
mapping -->
+ <!--
+ <security-constraint>
+ <display-name>Restrict direct access to Facelets views</display-name>
+ <web-resource-collection>
+ <web-resource-name>Facelets views</web-resource-name>
+ <url-pattern>*.xhtml</url-pattern>
+ </web-resource-collection>
+ <auth-constraint/>
+ </security-constraint>
+ -->
+</web-app>
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/index.jsf
===================================================================
---
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/index.jsf
(rev 0)
+++
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/index.jsf 2011-01-21
20:44:12 UTC (rev 7191)
@@ -0,0 +1,8 @@
+The contents of this file will not be displayed!
+
+Having this file is a trick to get JBoss AS to redirect to the path index.jsf
+when the root application URL is requested (or any subdirectory).
+
+See
https://jira.jboss.org/browse/JBAS-8224
+
+If you are using other containers, such as Glassfish, this file will be ignored and you
may delete at will.
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/index.xhtml
===================================================================
---
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/index.xhtml
(rev 0)
+++
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/index.xhtml 2011-01-21
20:44:12 UTC (rev 7191)
@@ -0,0 +1,49 @@
+<?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>Hello World!</h1>
+ <p>Your CDI bean <code>HelloWorld</code> says <span
style="color: blue;">#{helloWorld.text}</span> using the Unified
EL.</p>
+
+ <h:form id="bv">
+ <h2>Bean Validation examples</h2>
+ <p>Enforces annotation-based constraints defined on the model
class.</p>
+ <table>
+ <tr>
+ <th style="text-align: right;">
+ <h:outputLabel for="letters"
value="Letters:"/>
+ </th>
+ <td>
+ <h:inputText id="letters"
value="#{helloWorld.letters}"/>
+ <h:message for="letters"
errorClass="invalid"/>
+ </td>
+ </tr>
+ <tr>
+ <th style="text-align: right;">
+ <h:outputLabel for="numbers"
value="Numbers:"/>
+ </th>
+ <td>
+ <h:inputText id="numbers"
value="#{helloWorld.numbers}"/>
+ <h:message for="numbers"
errorClass="invalid"/>
+ </td>
+ </tr>
+ <tr>
+ <th style="text-align: right;">
+ <h:outputLabel for="email" value="Email:"/>
+ </th>
+ <td>
+ <h:inputText id="email"
value="#{helloWorld.email}"/>
+ <h:message for="email"
errorClass="invalid"/>
+ </td>
+ </tr>
+ </table>
+ <p>
+ <h:commandButton id="check" value="Check values"/>
+ <h:outputText value=" All clear!"
rendered="#{facesContext.postback and empty facesContext.messageList}"
style="color: green;"/>
+ </p>
+ </h:form>
+ </ui:define>
+</ui:composition>
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/resources/css/screen.css
===================================================================
---
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/resources/css/screen.css
(rev 0)
+++
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/resources/css/screen.css 2011-01-21
20:44:12 UTC (rev 7191)
@@ -0,0 +1,40 @@
+body {
+ margin: 0;
+ padding: 0;
+ background-color: #EAECEE;
+ font-family: Verdana, sans-serif;
+ font-size: 0.9em;
+}
+#container {
+ margin: 0 auto;
+ padding: 0 20px 10px 20px;
+ border: 1px solid #666666;
+ width: 865px; /* subtract 40px from banner width for padding */
+ background: #FFFFFF url(#{request.contextPath}/resources/gfx/banner.png) no-repeat;
+ padding-top: 110px;
+}
+#sidebar {
+ font-size: 0.9em;
+ width: 225px;
+ float: right;
+ border: 1px solid #666666;
+ background: #EAECEE;
+ padding: 0 15px 5px 15px;
+}
+#sidebar ul {
+ padding-left: 30px;
+}
+#footer {
+ clear: both;
+ text-align: center;
+ color: #666666;
+ font-size: 0.85em;
+ padding: 3em 0 0 0;
+}
+code {
+ font-size: 1.1em;
+}
+span.invalid {
+ padding-left: 3px;
+ color: red;
+}
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/banner.png
===================================================================
(Binary files differ)
Property changes on:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/banner.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/weld.png
===================================================================
(Binary files differ)
Property changes on:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/weld.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/test/java/BeanManagerTest.java
===================================================================
---
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/test/java/BeanManagerTest.java
(rev 0)
+++
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/test/java/BeanManagerTest.java 2011-01-21
20:44:12 UTC (rev 7191)
@@ -0,0 +1,40 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+package ${package};
+
+import javax.enterprise.inject.spi.BeanManager;
+import javax.inject.Inject;
+import static org.junit.Assert.*;
+import org.jboss.arquillian.api.Deployment;
+import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.shrinkwrap.api.ShrinkWrap;
+import org.jboss.shrinkwrap.api.Archive;
+import org.jboss.shrinkwrap.api.asset.EmptyAsset;
+import org.jboss.shrinkwrap.api.spec.JavaArchive;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+(a)RunWith(Arquillian.class)
+public class BeanManagerTest
+{
+ @Deployment
+ public static Archive<?> createTestArchive()
+ {
+ return ShrinkWrap.create(JavaArchive.class)
+ .addClass(HelloWorld.class)
+ .addManifestResource(EmptyAsset.INSTANCE, "beans.xml");
+ }
+
+ @Inject BeanManager beanManager;
+
+ @Inject HelloWorld helloWorld;
+
+ @Test
+ public void testCdiBootstrap()
+ {
+ assertNotNull(beanManager);
+ assertFalse(beanManager.getBeans(BeanManager.class).isEmpty());
+ assertEquals("Hello, World!", helloWorld.getText());
+ }
+}
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/test/java/HelloWorldTest.java
===================================================================
---
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/test/java/HelloWorldTest.java
(rev 0)
+++
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/test/java/HelloWorldTest.java 2011-01-21
20:44:12 UTC (rev 7191)
@@ -0,0 +1,16 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+package ${package};
+
+import static org.junit.Assert.*;
+import org.junit.Test;
+
+public class HelloWorldTest
+{
+ @Test
+ public void testGetText() {
+ HelloWorld fixture = new HelloWorld();
+ assertEquals("Hello, World!", fixture.getText());
+ }
+}
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/test/resources/jetty-env.xml
===================================================================
---
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/test/resources/jetty-env.xml
(rev 0)
+++
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/main/resources/archetype-resources/src/test/resources/jetty-env.xml 2011-01-21
20:44:12 UTC (rev 7191)
@@ -0,0 +1,20 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN"
"http://jetty.mortbay.org/configure.dtd">
+<Configure id="webAppCtx"
class="org.mortbay.jetty.webapp.WebAppContext">
+ <New id="beanManager"
class="org.mortbay.jetty.plus.naming.Resource">
+ <Arg>
+ <Ref id="webAppCtx"/>
+ </Arg>
+ <Arg>BeanManager</Arg>
+ <Arg>
+ <New class="javax.naming.Reference">
+ <Arg>javax.enterprise.inject.spi.BeanManager</Arg>
+ <Arg>org.jboss.weld.resources.ManagerObjectFactory</Arg>
+ <Arg/>
+ </New>
+ </Arg>
+ </New>
+</Configure>
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/test/resources/projects/basic/archetype.properties
===================================================================
---
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/test/resources/projects/basic/archetype.properties
(rev 0)
+++
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/test/resources/projects/basic/archetype.properties 2011-01-21
20:44:12 UTC (rev 7191)
@@ -0,0 +1,5 @@
+#Fri Jan 21 15:42:40 EST 2011
+version=0.1-SNAPSHOT
+name=JSF and CDI webapp project
+groupId=archetype.it
+artifactId=basic
Added:
archetypes/jsf-weld-servlet-webapp/tags/1.0.1.Beta1/src/test/resources/projects/basic/goal.txt
===================================================================