From dd61aa79211fb99a8546f1ef119332f2f600467e Mon Sep 17 00:00:00 2001 From: skuro Date: Thu, 4 Aug 2011 16:05:32 +0000 Subject: [PATCH] #55 add h2 support (plus some cleanup) git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@326 04253f4f-3451-0410-a141-5562f1e59037 --- .../maven-alfresco-amp-archetype/pom.xml | 7 +- .../archetype-resources/jetty/jetty-env.xml | 4 +- .../resources/archetype-resources/pom.xml | 80 ++++++++++++------- 3 files changed, 57 insertions(+), 34 deletions(-) diff --git a/maven-alfresco-archetypes/maven-alfresco-amp-archetype/pom.xml b/maven-alfresco-archetypes/maven-alfresco-amp-archetype/pom.xml index 3cd0e537..8bfab0ac 100644 --- a/maven-alfresco-archetypes/maven-alfresco-amp-archetype/pom.xml +++ b/maven-alfresco-archetypes/maven-alfresco-amp-archetype/pom.xml @@ -23,10 +23,7 @@ Maven Alfresco Amp Archetype This archetype aims to provide a standardized approach to development, release and deployment of Alfresco AMPs (as opposed to Alfresco - extensions, released as a different artifact ). Using standard m2 lifecycle commands (mvn compile package deploy) and generally available - plugins (cargo, release, assembly) we are able to cover a very high percentage of Alfresco lifecycle common use cases. You are able within - minutes to have a compatible AMP module built and its lifecycle supported by Maven, in a fully transparent way also with open source available - AMPs. + extensions, released as a different artifact ) com.sourcesense.alfresco @@ -39,7 +36,7 @@ org.apache.maven.archetype archetype-packaging - 2.0-alpha-3 + 2.0 diff --git a/maven-alfresco-archetypes/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/jetty/jetty-env.xml b/maven-alfresco-archetypes/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/jetty/jetty-env.xml index 7f1270c1..6d4d80fc 100644 --- a/maven-alfresco-archetypes/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/jetty/jetty-env.xml +++ b/maven-alfresco-archetypes/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/jetty/jetty-env.xml @@ -7,8 +7,8 @@ class="org.mortbay.jetty.plus.naming.Resource"> jdbc/dataSource - - jdbc:mysql://${alfresco.db.url}/${alfresco.db.name} + + jdbc:h2:${alfresco.data.location}/h2_data/${alfresco.db.name} ${alfresco.db.username} ${alfresco.db.password} diff --git a/maven-alfresco-archetypes/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/pom.xml b/maven-alfresco-archetypes/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/pom.xml index 394098da..c6f9deb7 100644 --- a/maven-alfresco-archetypes/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/pom.xml +++ b/maven-alfresco-archetypes/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/pom.xml @@ -63,7 +63,7 @@ ${artifactId}-webapp + 3.4.a ./alf_data_jetty alf_jetty alfresco @@ -95,6 +96,7 @@ debug + 3.0.0.RELEASE - - - mysql - mysql-connector-java - 5.0.3 - scm:svn:http://domain.com/svn/trunk/ - scm:svn:https://${maven.username}@domain.com/svn/trunk/ + scm:svn:https://${user.name}@domain.com/svn/trunk/ http://domain.com/svn/trunk/ @@ -185,8 +183,8 @@ maven-compiler-plugin - 1.5 - 1.5 + 1.6 + 1.6 @@ -249,7 +247,7 @@ webapp - src/test/properties/${env}/application.properties + src/test/properties/${env}/alfresco-global.properties jetty:run-exploded @@ -265,7 +263,7 @@ amp - ${build.directory}/${webapp.name} + ${project.build.directory}/${webapp.name} META* @@ -305,14 +303,14 @@ Don't remove the following line otherwise WAR and AMP builds will be done in the same folder, with unexpected results --> - ${build.directory}/${webapp.name} + ${project.build.directory}/${webapp.name} false licenses/** - ${build.testOutputDirectory} + ${project.build.testOutputDirectory} WEB-INF/classes true @@ -328,7 +326,7 @@ false - + jetty WEB-INF true @@ -351,6 +349,7 @@ org.mortbay.jetty maven-jetty-plugin + 6.1.26 @@ -361,7 +360,7 @@ /${webapp.name} - ${pom.build.directory}/${webapp.name} + ${project.build.directory}/${webapp.name} 10 @@ -372,12 +371,19 @@ + + + commons-dbcp + commons-dbcp + 1.4 + + @@ -389,7 +395,6 @@ true src/test/properties/${env} - alfresco/extension