From 760d970240e9a81d6a70e7138a4313eea7b798fd Mon Sep 17 00:00:00 2001 From: mindthegab Date: Fri, 15 Aug 2014 17:15:41 -0400 Subject: [PATCH] - improved approach for issue 197 (especially for IDEA, Ole you are welcome :) - reduced usage of copy-resources where possible to maximize idea compatibility - reduced duplication of amp resources in the classpath - tested in eclipse and all seems to work (test, remote junit test, amp-to-war, hot java reload with spring loaded, new webscript hot loaded, jsp change) --- .../archetype-resources/tomcat/context.xml | 2 +- .../archetype-resources/tomcat/context.xml | 2 +- poms/alfresco-sdk-parent/pom.xml | 98 +++++++------------ 3 files changed, 38 insertions(+), 64 deletions(-) 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 index b277f925..b7abe44b 100644 --- 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 @@ -7,7 +7,7 @@ + virtualClasspath="${project.build.outputDirectory};${project.build.testOutputDirectory};${project.build.directory}/${project.build.finalName}/config" /> src/main/amp ../${project.build.finalName} - ${project.build.directory}/amp-test-classpath src/main/properties/${env} @@ -308,7 +307,10 @@ - + + true + true + @@ -439,56 +441,37 @@ org.alfresco.maven.plugin alfresco-maven-plugin + true - - - - - - - enable-amp-dev - - - src/main/amp/module.properties - - - - - + - org.apache.maven.plugins - maven-resources-plugin - - - prepare-amp-testing-classpath - process-test-resources - copy-resources - - ${project.build.testOutputDirectory} - - - ${app.amp.folder}/config - ${app.filtering.enabled} - - module.properties - - - - - ${app.amp.folder} - ${app.filtering.enabled} - - module.properties - - alfresco/module/${project.artifactId} - - - - - - - + maven-resources-plugin + + + add-module-properties-to-test-classpath + process-test-resources + + copy-resources + + + ${project.build.testOutputDirectory} + + + ${app.amp.folder} + + module.properties + + ${app.filtering.enabled} + alfresco/module/${project.artifactId} + + + + + + + + @@ -507,21 +490,12 @@ ${maven.surefire.version} ${app.testing.jvm.args} + + + ${project.build.directory}/${project.build.finalName}/config + - - - - - - - - - - - -