diff --git a/archetypes/alfresco-allinone-archetype/pom.xml b/archetypes/alfresco-allinone-archetype/pom.xml
index 3359f605..2b779ced 100644
--- a/archetypes/alfresco-allinone-archetype/pom.xml
+++ b/archetypes/alfresco-allinone-archetype/pom.xml
@@ -6,7 +6,7 @@
alfresco-allinone-archetype
maven-archetype
All-in-One Archetype from Maven Alfresco SDK
- Sample multi-module project for All-in-One development on the Alfresco plaftorm. Includes modules for: Repository, AMP, Share, Solr, Web Quick Start and embedded Jetty run
+ Sample multi-module project for All-in-One development on the Alfresco plaftorm. Includes modules for: Repository WAR overlay, Repository AMP, Share WAR overlay, Solr configuration, and embedded Tomcat runner
org.alfresco.maven
diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml b/archetypes/alfresco-allinone-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
index 4be0dcb5..20d6c3b0 100644
--- a/archetypes/alfresco-allinone-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
+++ b/archetypes/alfresco-allinone-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
@@ -44,7 +44,7 @@
- jetty
+ tomcat
**
@@ -119,14 +119,6 @@
-
-
- jetty
-
- **
-
-
-
diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/amp/jetty/jetty.xml b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/amp/jetty/jetty.xml
deleted file mode 100644
index b9bf3d84..00000000
--- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/amp/jetty/jetty.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
- jdbc/dataSource
-
-
- ${alfresco.db.url}
- ${alfresco.db.username}
- ${alfresco.db.password}
-
-
-
-
\ No newline at end of file
diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/amp/pom.xml b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/amp/pom.xml
index 73016462..2f60855a 100644
--- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/amp/pom.xml
+++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/amp/pom.xml
@@ -26,10 +26,14 @@
-
- alfresco
+
+ ${alfresco_target_amp_client_war}
+
+
+
+
diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/amp/tomcat/context.xml b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/amp/tomcat/context.xml
new file mode 100644
index 00000000..bc392e06
--- /dev/null
+++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/amp/tomcat/context.xml
@@ -0,0 +1,11 @@
+
+
+
+
diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/runner/jetty/jetty.xml b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/runner/jetty/jetty.xml
deleted file mode 100644
index 4af5ae64..00000000
--- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/runner/jetty/jetty.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
- jdbc/dataSource
-
-
- ${alfresco.db.url}
- ${alfresco.db.username}
- ${alfresco.db.password}
-
-
-
-
-
-
-
-
-
-
-
-
- 300000
- 2
- false
- 8443
- 20000
- 5000
-
-
-
-
-
\ No newline at end of file
diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/runner/jetty/root-web.xml b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/runner/jetty/root-web.xml
deleted file mode 100644
index a2ffb44e..00000000
--- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/runner/jetty/root-web.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
- Alfresco Runner
- Alfresco Runner
-
\ No newline at end of file
diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/runner/pom.xml b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/runner/pom.xml
index b6b27c89..95316b59 100644
--- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/runner/pom.xml
+++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/runner/pom.xml
@@ -1,68 +1,54 @@
4.0.0
- ${artifactId}
+ runner
Alfresco and Share Runner
pom
Alfresco and Share Runner
- ${groupId}
- ${rootArtifactId}
- ${version}
+ org.alfresco.demo
+ summit-2013-sdk-demo
+ 1.0-SNAPSHOT
run
-
-
- run
-
-
- ${project.basedir}/../solr/solr_home
- 127.0.0.1
- 8080
+ ../solr
- org.mortbay.jetty
- maven-jetty-plugin
-
-
- run
- run
- integration-test
-
-
+ org.apache.tomcat.maven
+ tomcat7-maven-plugin
-
- /
- .
- jetty/root-web.xml
-
-
- ${project.basedir}/../alfresco/target/alfresco.war
- /alfresco
-
-
- ${alfresco.solr.dir}/apache-solr-1.4.1-overlay.war
- /solr
-
-
- ${project.basedir}/../share/target/share.war
- /share
-
-
+
+ ${solr.project.dir}/target/solr-overlay
+ /solr
-
- solr.solr.home
- ${alfresco.solr.dir}
-
+ ${solr.project.dir}/solr_home
+
+
+
+ ${project.groupId}
+ alfresco
+ ${project.version}
+ war
+ true
+ alfresco
+
+
+ ${project.groupId}
+ share
+ ${project.version}
+ war
+ true
+ share
+
+
diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/wcmqs/pom.xml b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/wcmqs/pom.xml
deleted file mode 100644
index 896385c7..00000000
--- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/wcmqs/pom.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
- 4.0.0
-
- ${groupId}
- ${rootArtifactId}
- ${version}
-
- wcmqs
- war
- Alfresco Web Quick Start customization
- This project allows you to customize and overlay Alfresco Web Quick Start
-
-
- ${alfresco.groupId}
- alfresco-wcm-quickstart
- ${alfresco.version}
- war
-
-
-
-
-
- maven-war-plugin
-
-
-
-
-
-
- alfresco-wcm-quickstart
- ${alfresco.groupId}
-
-
-
-
-
-
-
-
diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/wcmqs/src/main/resources/log4j.xml b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/wcmqs/src/main/resources/log4j.xml
deleted file mode 100644
index e98bc7f2..00000000
--- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/wcmqs/src/main/resources/log4j.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml b/archetypes/alfresco-amp-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
index 42c94780..b0472023 100644
--- a/archetypes/alfresco-amp-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
+++ b/archetypes/alfresco-amp-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
@@ -67,7 +67,7 @@
- jetty
+ tomcat
**/*.xml
diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/jetty/jetty.xml b/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/jetty/jetty.xml
deleted file mode 100644
index b9bf3d84..00000000
--- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/jetty/jetty.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
- jdbc/dataSource
-
-
- ${alfresco.db.url}
- ${alfresco.db.username}
- ${alfresco.db.password}
-
-
-
-
\ No newline at end of file
diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/tomcat/context.xml b/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/tomcat/context.xml
new file mode 100644
index 00000000..bc392e06
--- /dev/null
+++ b/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/tomcat/context.xml
@@ -0,0 +1,11 @@
+
+
+
+
diff --git a/archetypes/alfresco-amp-archetype/src/site/apt/usage.apt.vm b/archetypes/alfresco-amp-archetype/src/site/apt/usage.apt.vm
index 5d30462c..102203ce 100644
--- a/archetypes/alfresco-amp-archetype/src/site/apt/usage.apt.vm
+++ b/archetypes/alfresco-amp-archetype/src/site/apt/usage.apt.vm
@@ -61,10 +61,13 @@ Commands
* <<>>: Like <<>> but skips unit tests
- * <<>>: Like <<>> but also installs the AMP onto an Alfresco WAR.
+ * <<>>: Like <<>> but also installs the AMP onto an Alfresco WAR.
+
+ * <<>> Like <<>>
+ but also runs the resulting WAR+AMP in Tomcat + H2 embedded for integration testing.
+ When you run this command then you can access in your browser <<< {{{http://localhost:8080/alfresco}}} >>> or <<< {{{http://localhost:8080/share}}} >>>
+ depending on the value of the property <<>>
- * <<>> Like <<>>
- but also runs the resulting WAR+AMP in Jetty + H2 embedded for integration testing
* <<>>: Like <<>> but installs the AMP and runs on the Share WAR in Jetty embedded.
diff --git a/poms/alfresco-sdk-parent/pom.xml b/poms/alfresco-sdk-parent/pom.xml
index bed3b2be..8b68bf70 100644
--- a/poms/alfresco-sdk-parent/pom.xml
+++ b/poms/alfresco-sdk-parent/pom.xml
@@ -45,7 +45,7 @@
alfresco
${alfresco.groupId}
${alfresco.version}
- ${project.build.finalName}
+ /${alfresco.client.war}
${project.build.directory}/${project.build.finalName}-war
@@ -108,7 +108,7 @@
2.4
2.4.1
1.8
- 6.1.26
+ 2.1
../../target/staging/poms/alfresco-sdk-parent
@@ -242,10 +242,33 @@
maven-jar-plugin
${maven.jar.version}
+
- org.mortbay.jetty
- maven-jetty-plugin
- ${maven.jetty.version}
+ org.apache.tomcat.maven
+ tomcat7-maven-plugin
+ ${maven.tomcat.version}
+
+ true
+
+
+
+ com.h2database
+ h2
+ ${h2.version}
+
+
+ tk.skuro.alfresco
+ h2-support
+ ${h2-support.version}
+
+
+
+ org.codehaus.plexus
+ plexus-archiver
+ 2.3
+
+
@@ -357,59 +380,31 @@
-
+
- enable-jetty
-
-
- jetty/jetty.xml
-
-
-
-
-
- org.apache.maven.plugins
- maven-resources-plugin
-
-
- filter-jetty-conf
-
- copy-resources
-
- process-resources
-
- target
-
-
- ${project.basedir}/jetty
- ${app.filtering.enabled}
-
-
-
-
-
-
-
- org.mortbay.jetty
- maven-jetty-plugin
-
- ${project.build.directory}/jetty.xml
-
-
-
- com.h2database
- h2
- ${h2.version}
-
-
- tk.skuro.alfresco
- h2-support
- ${h2-support.version}
-
-
-
-
-
+ run
+
+
+ run
+
+
+
+
+
+ org.apache.tomcat.maven
+ tomcat7-maven-plugin
+
+
+ run-wars
+
+ run-war-only
+
+ integration-test
+
+
+
+
+
@@ -554,13 +549,14 @@
-
-
+
org.apache.maven.plugins
maven-resources-plugin
-
+
+
+
copy-alfresco-test-resources
prepare-package
copy-resources
@@ -578,6 +574,26 @@
+
+ copy-tomcat-context
+ prepare-package
+ copy-resources
+
+ ${alfresco.client.war.folder}
+
+
+ tomcat
+ ${app.filtering.enabled}
+ WEB-INF
+
+
+ src/test/properties/${env}
+ ${app.filtering.enabled}
+ WEB-INF/classes
+
+
+
+
-
- org.mortbay.jetty
- maven-jetty-plugin
-
-
- run-amp-to-war
-
- run-exploded
-
- pre-integration-test
-
-
-
- ${alfresco.client.war.folder}
- ${alfresco.client.contextPath}
-
-
+
+
+ ${alfresco.client.war.folder}/WEB-INF/context.xml
+
+ true
+
+
purge