You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jg...@apache.org on 2010/03/27 12:17:01 UTC

svn commit: r928182 - in /openejb/trunk/sandbox/openejb-maven-archetypes: ./ quickstart-ear/ quickstart-ear/src/ quickstart-ear/src/main/ quickstart-ear/src/main/resources/ quickstart-ear/src/main/resources/META-INF/ quickstart-ear/src/main/resources/M...

Author: jgallimore
Date: Sat Mar 27 11:17:00 2010
New Revision: 928182

URL: http://svn.apache.org/viewvc?rev=928182&view=rev
Log:
Adding basic Maven Archetypes

Added:
    openejb/trunk/sandbox/openejb-maven-archetypes/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/pom.xml   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/META-INF/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/META-INF/maven/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/META-INF/maven/archetype.xml   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ear/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ear/pom.xml   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/pom.xml   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/java/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/java/org/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/java/org/superbiz/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/java/org/superbiz/CalculatorBean.java   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/resources/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/resources/META-INF/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/resources/META-INF/ejb-jar.xml   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/resources/META-INF/persistence.xml   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/test/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/test/java/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/test/java/org/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/test/java/org/superbiz/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/test/java/org/superbiz/CalculatorTest.java   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/pom.xml   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/primary-source/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/primary-source/pom.xml   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/primary-source/src/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/primary-source/src/main/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/primary-source/src/main/java/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/primary-source/src/main/java/org/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/primary-source/src/main/java/org/superbiz/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/primary-source/src/main/java/org/superbiz/CalculatorRemote.java   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/projects/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/projects/logging/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/projects/logging/pom.xml   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/projects/pom.xml   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/pom.xml   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/servlet/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/servlet/pom.xml   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/servlet/src/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/servlet/src/main/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/servlet/src/main/webapp/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/servlet/src/main/webapp/WEB-INF/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/servlet/src/main/webapp/WEB-INF/web.xml   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/servlet/src/main/webapp/index.jsp   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/pom.xml   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/META-INF/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/META-INF/maven/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/META-INF/maven/archetype.xml   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/pom.xml   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/CalculatorBean.java   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/CalculatorRemote.java   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/resources/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/resources/META-INF/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/resources/META-INF/ejb-jar.xml   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml   (with props)
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/test/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/test/java/
    openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/test/java/CalculatorTest.java   (with props)

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/pom.xml?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/pom.xml (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/pom.xml Sat Mar 27 11:17:00 2010
@@ -0,0 +1,29 @@
+<?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>
+	<groupId>org.apache.openejb</groupId>
+	<artifactId>maven-openejb-quickstart-ear</artifactId>
+	<version>1.0-SNAPSHOT</version>
+	<packaging>jar</packaging>
+	<name>Maven OpenEJB EAR Quickstart Sample</name>
+	<dependencies>
+		<dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit</artifactId>
+			<version>4.5</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.openejb</groupId>
+			<artifactId>openejb-core</artifactId>
+			<version>3.1.2</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.openejb</groupId>
+			<artifactId>javaee-api</artifactId>
+			<version>5.0-2</version>
+			<scope>provided</scope>
+		</dependency>
+	</dependencies>
+</project>
\ No newline at end of file

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/pom.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/META-INF/maven/archetype.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/META-INF/maven/archetype.xml?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/META-INF/maven/archetype.xml (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/META-INF/maven/archetype.xml Sat Mar 27 11:17:00 2010
@@ -0,0 +1,19 @@
+<archetype>
+  <id>maven-openejb-quickstart-ear</id>
+  <resources>
+    <resource>pom.xml</resource>
+    <resource>ear/pom.xml</resource>
+    <resource>ejbs/src/main/resources/META-INF/ejb-jar.xml</resource>
+    <resource>ejbs/pom.xml</resource>
+    <resource>primary-source/pom.xml</resource>
+    <resource>projects/logging/pom.xml</resource>
+    <resource>projects/pom.xml</resource>
+    <resource>servlets/pom.xml</resource>
+    <resource>servlets/servlet/pom.xml</resource>
+    <resource>servlets/servlet/src/main/webapp/index.jsp</resource>
+    <resource>servlets/servlet/src/main/webapp/WEB-INF/web.xml</resource>
+    <resource>ejbs/src/main/java/org/superbiz/CalculatorBean.java</resource>
+    <resource>primary-source/src/main/java/org/superbiz/CalculatorRemote.java</resource>
+    <resource>ejbs/src/test/java/org/superbiz/CalculatorTest.java</resource>
+  </resources>
+</archetype>

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/META-INF/maven/archetype.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ear/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ear/pom.xml?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ear/pom.xml (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ear/pom.xml Sat Mar 27 11:17:00 2010
@@ -0,0 +1,43 @@
+<project>
+   <modelVersion>4.0.0</modelVersion>
+   <groupId>${groupId}</groupId>
+   <artifactId>${artifactId}-ear</artifactId>
+   <packaging>ear</packaging>
+   <version>1.0-SNAPSHOT</version>
+   <name>${artifactId}-Ear</name>
+   <parent>
+      <groupId>${groupId}</groupId>
+      <artifactId>${artifactId}-project</artifactId>
+      <version>${version}</version>
+   </parent>
+   <dependencies>
+      <dependency>
+         <groupId>${groupId}</groupId>
+         <artifactId>${artifactId}-ejb</artifactId>
+         <type>ejb</type>
+      </dependency>
+      <dependency>
+         <groupId>${groupId}</groupId>
+         <artifactId>${artifactId}-servlet</artifactId>
+         <type>war</type>
+      </dependency>
+      <dependency>
+         <groupId>${groupId}</groupId>
+         <artifactId>${artifactId}-primary-source</artifactId>
+      </dependency>
+   </dependencies>
+   <build>
+      <plugins>
+         <plugin>
+            <artifactId>maven-ear-plugin</artifactId>
+            <configuration>
+               <archive>
+                  <manifest>
+                     <addClasspath>true</addClasspath>
+                  </manifest>
+               </archive>
+            </configuration>
+         </plugin>
+      </plugins>
+   </build>
+</project>

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ear/pom.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/pom.xml?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/pom.xml (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/pom.xml Sat Mar 27 11:17:00 2010
@@ -0,0 +1,76 @@
+<project>
+	<modelVersion>4.0.0</modelVersion>
+	<groupId>${groupId}</groupId>
+	<artifactId>${artifactId}-ejb</artifactId>
+	<packaging>ejb</packaging>
+	<version>${version}</version>
+	<name>${artifactId}-EJB</name>
+	<parent>
+		<groupId>${groupId}</groupId>
+		<artifactId>${artifactId}-project</artifactId>
+		<version>${version}</version>
+	</parent>
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-compiler-plugin</artifactId>
+				<configuration>
+					<source>1.5</source>
+					<target>1.5</target>
+				</configuration>
+			</plugin>
+			<plugin>
+				<artifactId>maven-ejb-plugin</artifactId>
+				<configuration>
+					<archive>
+						<manifest>
+							<addClasspath>true</addClasspath>
+						</manifest>
+					</archive>
+					<ejbVersion>3.0</ejbVersion>
+				</configuration>
+			</plugin>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-eclipse-plugin</artifactId>
+				<configuration>
+					<projectNameTemplate>[artifactId]-[version]</projectNameTemplate>
+					<wtpmanifest>true</wtpmanifest>
+					<wtpapplicationxml>true</wtpapplicationxml>
+					<wtpversion>2.0</wtpversion>
+					<additionalProjectFacets>
+						<jst.java>5.0</jst.java>
+						<jst.ejb>3.0</jst.ejb>
+						<jpt.jpa>1.0</jpt.jpa>
+					</additionalProjectFacets>
+					<wtpversion>2.0</wtpversion>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
+	<dependencies>
+		<dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit</artifactId>
+			<version>4.5</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.openejb</groupId>
+			<artifactId>openejb-core</artifactId>
+			<version>3.1.2</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.openejb</groupId>
+			<artifactId>javaee-api</artifactId>
+			<version>5.0-2</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>${groupId}</groupId>
+			<artifactId>${artifactId}-primary-source</artifactId>
+		</dependency>
+	</dependencies>
+</project>

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/pom.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/java/org/superbiz/CalculatorBean.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/java/org/superbiz/CalculatorBean.java?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/java/org/superbiz/CalculatorBean.java (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/java/org/superbiz/CalculatorBean.java Sat Mar 27 11:17:00 2010
@@ -0,0 +1,12 @@
+package org.superbiz;
+
+import javax.ejb.Stateless;
+
+@Stateless
+public class CalculatorBean implements CalculatorRemote {
+
+	public int add(int input1, int input2) {
+		return input1 + input2;
+	}
+
+}

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/java/org/superbiz/CalculatorBean.java
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/resources/META-INF/ejb-jar.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/resources/META-INF/ejb-jar.xml?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/resources/META-INF/ejb-jar.xml (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/resources/META-INF/ejb-jar.xml Sat Mar 27 11:17:00 2010
@@ -0,0 +1 @@
+<ejb-jar/>
\ No newline at end of file

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/resources/META-INF/ejb-jar.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/resources/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/resources/META-INF/persistence.xml?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/resources/META-INF/persistence.xml (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/resources/META-INF/persistence.xml Sat Mar 27 11:17:00 2010
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
+
+  <persistence-unit name="my-unit">
+    <jta-data-source>myDatabase</jta-data-source>
+    <non-jta-data-source>myDatabaseUnmanaged</non-jta-data-source>
+
+    <properties>
+      <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
+    </properties>
+  </persistence-unit>
+</persistence>
\ No newline at end of file

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/main/resources/META-INF/persistence.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/test/java/org/superbiz/CalculatorTest.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/test/java/org/superbiz/CalculatorTest.java?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/test/java/org/superbiz/CalculatorTest.java (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/test/java/org/superbiz/CalculatorTest.java Sat Mar 27 11:17:00 2010
@@ -0,0 +1,30 @@
+package org.superbiz;
+
+import java.util.Properties;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+public class CalculatorTest extends TestCase {
+
+	public CalculatorTest(String testName) {
+		super(testName);
+	}
+
+	public static Test suite() {
+		return new TestSuite(CalculatorTest.class);
+	}
+
+	public void testApp() throws Exception {
+		Properties properties = new Properties();
+		properties.setProperty(Context.INITIAL_CONTEXT_FACTORY,	"org.apache.openejb.client.LocalInitialContextFactory");
+		InitialContext context = new InitialContext(properties);
+
+		CalculatorRemote calc = (CalculatorRemote) context.lookup("CalculatorBeanRemote");
+		assertEquals(4, calc.add(2, 2));
+	}
+}

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/ejbs/src/test/java/org/superbiz/CalculatorTest.java
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/pom.xml?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/pom.xml (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/pom.xml Sat Mar 27 11:17:00 2010
@@ -0,0 +1,55 @@
+<project>
+   <modelVersion>4.0.0</modelVersion>
+   <groupId>${groupId}</groupId>
+   <version>${version}</version>
+   <artifactId>${artifactId}-project</artifactId>
+   <packaging>pom</packaging>
+   <name>${artifactId}-project</name>
+   <modules>
+      <module>primary-source</module>
+      <module>servlets</module>
+      <module>ejbs</module>
+      <module>ear</module>
+   </modules>
+   <build>
+      <pluginManagement>
+         <plugins>
+            <plugin>
+               <groupId>org.apache.maven.plugins</groupId>
+               <artifactId>maven-site-plugin</artifactId>
+               <configuration>
+                  <unzipCommand>/usr/bin/unzip -o > err.txt</unzipCommand>
+               </configuration>
+            </plugin>
+         </plugins>
+      </pluginManagement>
+   </build>
+   <dependencyManagement>
+      <dependencies>
+         <dependency>
+            <groupId>${groupId}</groupId>
+            <artifactId>${artifactId}-primary-source</artifactId>
+            <version>${version}</version>
+         </dependency>
+         <dependency>
+            <groupId>${groupId}</groupId>
+            <artifactId>${artifactId}-servlet</artifactId>
+            <version>${version}</version>
+            <type>war</type>
+         </dependency>
+         <dependency>
+            <groupId>${groupId}</groupId>
+            <artifactId>${artifactId}-ejb</artifactId>
+            <version>${version}</version>
+            <type>ejb</type>
+         </dependency>
+      </dependencies>
+   </dependencyManagement>
+   <distributionManagement>
+      <site>
+         <id>site</id>
+         <name>project website</name>
+         <url>scp://local.company.com/websites/project.company.com/</url>
+      </site>
+   </distributionManagement>
+</project>

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/pom.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/primary-source/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/primary-source/pom.xml?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/primary-source/pom.xml (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/primary-source/pom.xml Sat Mar 27 11:17:00 2010
@@ -0,0 +1,40 @@
+<project>
+   <modelVersion>4.0.0</modelVersion>
+   <groupId>${groupId}</groupId>
+   <artifactId>${artifactId}-primary-source</artifactId>
+   <packaging>jar</packaging>
+   <name>${artifactId}-Core</name>
+   <parent>
+      <groupId>${groupId}</groupId>
+      <artifactId>${artifactId}-project</artifactId>
+      <version>${version}</version>
+   </parent>
+   <build>
+      <plugins>
+         <plugin>
+            <artifactId>maven-compiler-plugin</artifactId>
+            <configuration>
+               <encoding>iso-8859-1</encoding>
+                    <source>1.5</source>
+                    <target>1.5</target>
+            </configuration>
+         </plugin>
+         <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-javadoc-plugin</artifactId>
+            <configuration>
+               <minmemory>128m</minmemory>
+               <maxmemory>512m</maxmemory>
+            </configuration>
+         </plugin>
+      </plugins>
+   </build>
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.openejb</groupId>
+            <artifactId>javaee-api</artifactId>
+            <version>5.0-2</version>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+</project>

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/primary-source/pom.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/primary-source/src/main/java/org/superbiz/CalculatorRemote.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/primary-source/src/main/java/org/superbiz/CalculatorRemote.java?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/primary-source/src/main/java/org/superbiz/CalculatorRemote.java (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/primary-source/src/main/java/org/superbiz/CalculatorRemote.java Sat Mar 27 11:17:00 2010
@@ -0,0 +1,8 @@
+package org.superbiz;
+
+import javax.ejb.Remote;
+
+@Remote
+public interface CalculatorRemote {
+	public int add(int input1, int input2);
+}

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/primary-source/src/main/java/org/superbiz/CalculatorRemote.java
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/projects/logging/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/projects/logging/pom.xml?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/projects/logging/pom.xml (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/projects/logging/pom.xml Sat Mar 27 11:17:00 2010
@@ -0,0 +1,12 @@
+<project>
+   <modelVersion>4.0.0</modelVersion>
+   <groupId>root.project.projects</groupId>
+   <artifactId>logging</artifactId>
+   <packaging>jar</packaging>
+   <name>logging</name>
+   <parent>
+      <groupId>root.project</groupId>
+      <artifactId>projects</artifactId>
+      <version>${version}</version>
+   </parent>
+</project>

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/projects/logging/pom.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/projects/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/projects/pom.xml?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/projects/pom.xml (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/projects/pom.xml Sat Mar 27 11:17:00 2010
@@ -0,0 +1,16 @@
+<project>
+   <modelVersion>4.0.0</modelVersion>
+   <groupId>root.project</groupId>
+   <version>${version}</version>
+   <artifactId>projects</artifactId>
+   <packaging>pom</packaging>
+   <name>sub projects</name>
+   <parent>
+      <groupId>root</groupId>
+      <artifactId>project</artifactId>
+      <version>${version}</version>
+   </parent>
+   <modules>
+      <module>logging</module>
+   </modules>
+</project>

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/projects/pom.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/pom.xml?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/pom.xml (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/pom.xml Sat Mar 27 11:17:00 2010
@@ -0,0 +1,17 @@
+<project>
+   <modelVersion>4.0.0</modelVersion>
+   <groupId>${groupId}</groupId>
+   <artifactId>${artifactId}-servlets</artifactId>
+   <packaging>pom</packaging>
+   <name>${artifactId}-Servlets</name>
+   <version>${version}</version>
+   <parent>
+      <groupId>${groupId}</groupId>
+      <artifactId>${artifactId}-project</artifactId>
+      <version>${version}</version>
+   </parent>
+   <modules>
+      <module>servlet</module>
+   </modules>
+</project>
+

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/pom.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/servlet/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/servlet/pom.xml?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/servlet/pom.xml (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/servlet/pom.xml Sat Mar 27 11:17:00 2010
@@ -0,0 +1,19 @@
+<project>
+   <modelVersion>4.0.0</modelVersion>
+   <groupId>${groupId}</groupId>
+   <artifactId>${artifactId}-servlet</artifactId>
+   <packaging>war</packaging>
+   <name>${artifactId}-servlet</name>
+   <parent>
+      <groupId>${groupId}</groupId>
+      <artifactId>${artifactId}-servlets</artifactId>
+      <version>${version}</version>
+   </parent>
+   <dependencies>
+      <dependency>
+         <groupId>${groupId}</groupId>
+         <artifactId>${artifactId}-primary-source</artifactId>
+         <scope>provided</scope>
+      </dependency>
+   </dependencies>
+</project>

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/servlet/pom.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/servlet/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/servlet/src/main/webapp/WEB-INF/web.xml?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/servlet/src/main/webapp/WEB-INF/web.xml (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/servlet/src/main/webapp/WEB-INF/web.xml Sat Mar 27 11:17:00 2010
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app 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"
+           version="2.5">
+
+    <ejb-ref>
+        <ejb-ref-name>CalculatorBean</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <home>org.superbiz.CalculatorRemote</home>
+        <remote>org.superbiz.CalculatorRemote</remote>
+        <ejb-link>CalculatorBean</ejb-link>
+    </ejb-ref>
+</web-app>

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/servlet/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/servlet/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/servlet/src/main/webapp/index.jsp?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/servlet/src/main/webapp/index.jsp (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/servlet/src/main/webapp/index.jsp Sat Mar 27 11:17:00 2010
@@ -0,0 +1,44 @@
+<%@ page import="javax.naming.InitialContext" %>
+<%@ page import="org.superbiz.CalculatorRemote" %>
+
+<html>
+<body>
+<%
+
+    InitialContext context = new InitialContext();
+    org.superbiz.CalculatorRemote calc = (org.superbiz.CalculatorRemote) context.lookup("java:comp/env/CalculatorBean");
+
+    String val1 = request.getParameter("value1");
+    String val2 = request.getParameter("value2");
+
+    if (val1 != null && val1.length() > 0 && val2 != null && val2.length() > 0) {
+        int v1 = 0;
+
+        try {
+            v1 = Integer.parseInt(val1);
+        } catch (NumberFormatException e) {
+        }
+
+        int v2 = 0;
+
+        try {
+            v2 = Integer.parseInt(val2);
+        } catch (NumberFormatException e) {
+        }
+
+%>
+
+Result: <%= calc.add(v1, v2) %>
+
+<%
+    }
+%>
+
+<form action="index.jsp" method="POST">
+    <input type="text" name="value1"/> + 
+    <input type="text" name="value2"/>
+    <input type="submit"/>
+</form>
+
+</body>
+</html>

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart-ear/src/main/resources/archetype-resources/servlets/servlet/src/main/webapp/index.jsp
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/pom.xml?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/pom.xml (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/pom.xml Sat Mar 27 11:17:00 2010
@@ -0,0 +1,29 @@
+<?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>
+	<groupId>org.apache.openejb</groupId>
+	<artifactId>maven-openejb-quickstart</artifactId>
+	<version>1.0-SNAPSHOT</version>
+	<packaging>jar</packaging>
+	<name>Maven OpenEJB Quickstart Sample</name>
+	<dependencies>
+		<dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit</artifactId>
+			<version>4.5</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.openejb</groupId>
+			<artifactId>openejb-core</artifactId>
+			<version>3.1.2</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.openejb</groupId>
+			<artifactId>javaee-api</artifactId>
+			<version>5.0-2</version>
+			<scope>provided</scope>
+		</dependency>
+	</dependencies>
+</project>

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/pom.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/META-INF/maven/archetype.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/META-INF/maven/archetype.xml?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/META-INF/maven/archetype.xml (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/META-INF/maven/archetype.xml Sat Mar 27 11:17:00 2010
@@ -0,0 +1,13 @@
+<archetype>
+  <id>maven-openejb-quickstart</id>
+  <sources>
+    <source>src/main/java/CalculatorBean.java</source>
+    <source>src/main/java/CalculatorRemote.java</source>
+  </sources>
+  <resources>
+    <resource>src/main/resources/META-INF/ejb-jar.xml</resource>
+  </resources>
+  <testSources>
+    <source>src/test/java/CalculatorTest.java</source>
+  </testSources>
+</archetype>

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/META-INF/maven/archetype.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/pom.xml?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/pom.xml (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/pom.xml Sat Mar 27 11:17:00 2010
@@ -0,0 +1,64 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+		xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+	<groupId>${groupId}</groupId>
+	<artifactId>${artifactId}</artifactId>
+	<packaging>ejb</packaging>
+	<version>${version}</version>
+	<name>${artifactId}</name>
+	<url>http://maven.apache.org</url>
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-compiler-plugin</artifactId>
+				<configuration>
+					<source>1.5</source>
+					<target>1.5</target>
+				</configuration>
+			</plugin>
+			<plugin>
+				<artifactId>maven-ejb-plugin</artifactId>
+				<configuration>
+					<ejbVersion>3.0</ejbVersion>
+				</configuration>
+			</plugin>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-eclipse-plugin</artifactId>
+				<configuration>
+					<projectNameTemplate>[artifactId]-[version]</projectNameTemplate>
+					<wtpmanifest>true</wtpmanifest>
+					<wtpapplicationxml>true</wtpapplicationxml>
+					<wtpversion>2.0</wtpversion>
+					<additionalProjectFacets>
+						<jst.java>5.0</jst.java>
+						<jst.ejb>3.0</jst.ejb>
+						<jpt.jpa>1.0</jpt.jpa>
+					</additionalProjectFacets>
+					<wtpversion>2.0</wtpversion>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
+	<dependencies>
+		<dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit</artifactId>
+			<version>4.5</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.openejb</groupId>
+			<artifactId>openejb-core</artifactId>
+			<version>3.1.2</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.openejb</groupId>
+			<artifactId>javaee-api</artifactId>
+			<version>5.0-2</version>
+			<scope>provided</scope>
+		</dependency>
+	</dependencies>
+</project>

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/pom.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/CalculatorBean.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/CalculatorBean.java?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/CalculatorBean.java (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/CalculatorBean.java Sat Mar 27 11:17:00 2010
@@ -0,0 +1,12 @@
+package $package;
+
+import javax.ejb.Stateless;
+
+@Stateless
+public class CalculatorBean implements CalculatorRemote {
+
+	public int add(int input1, int input2) {
+		return input1 + input2;
+	}
+
+}

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/CalculatorBean.java
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/CalculatorRemote.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/CalculatorRemote.java?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/CalculatorRemote.java (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/CalculatorRemote.java Sat Mar 27 11:17:00 2010
@@ -0,0 +1,8 @@
+package $package;
+
+import javax.ejb.Remote;
+
+@Remote
+public interface CalculatorRemote {
+	public int add(int input1, int input2);
+}

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/CalculatorRemote.java
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/resources/META-INF/ejb-jar.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/resources/META-INF/ejb-jar.xml?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/resources/META-INF/ejb-jar.xml (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/resources/META-INF/ejb-jar.xml Sat Mar 27 11:17:00 2010
@@ -0,0 +1 @@
+<ejb-jar/>
\ No newline at end of file

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/resources/META-INF/ejb-jar.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml Sat Mar 27 11:17:00 2010
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
+
+  <persistence-unit name="my-unit">
+    <jta-data-source>myDatabase</jta-data-source>
+    <non-jta-data-source>myDatabaseUnmanaged</non-jta-data-source>
+
+    <properties>
+      <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
+    </properties>
+  </persistence-unit>
+</persistence>
\ No newline at end of file

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/test/java/CalculatorTest.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/test/java/CalculatorTest.java?rev=928182&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/test/java/CalculatorTest.java (added)
+++ openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/test/java/CalculatorTest.java Sat Mar 27 11:17:00 2010
@@ -0,0 +1,30 @@
+package $package;
+
+import java.util.Properties;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+public class CalculatorTest extends TestCase {
+
+	public CalculatorTest(String testName) {
+		super(testName);
+	}
+
+	public static Test suite() {
+		return new TestSuite(CalculatorTest.class);
+	}
+
+	public void testApp() throws Exception {
+		Properties properties = new Properties();
+		properties.setProperty(Context.INITIAL_CONTEXT_FACTORY,	"org.apache.openejb.client.LocalInitialContextFactory");
+		InitialContext context = new InitialContext(properties);
+
+		CalculatorRemote calc = (CalculatorRemote) context.lookup("CalculatorBeanRemote");
+		assertEquals(4, calc.add(2, 2));
+	}
+}

Propchange: openejb/trunk/sandbox/openejb-maven-archetypes/quickstart/src/main/resources/archetype-resources/src/test/java/CalculatorTest.java
------------------------------------------------------------------------------
    svn:executable = *