fixes issue 123: jrebel configuration added in sdk pom, activate with -Prad to enable reloading in the webapp / tests

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@721 04253f4f-3451-0410-a141-5562f1e59037
This commit is contained in:
mindthegab
2013-11-05 00:01:47 +00:00
parent df38011aa0
commit 5e7f4c623e
3 changed files with 68 additions and 23 deletions

View File

@@ -1,22 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- This is a JRebel configuration file, allows hot re-deploying.
If you have JRebel you can enable it by setting the following variables:
MAVEN_OPTS=-Xms256m -Xmx2G -XX:PermSize=300m -javaagent:${jrebel.dir}/jrebel.jar
-->
<application
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.zeroturnaround.com"
xsi:schemaLocation="http://www.zeroturnaround.com/alderaan/rebel-2_0.xsd">
<classpath>
<dir name="${project.build.outputDirectory}"/>
<dir name="${project.build.testOutputDirectory}"/>
</classpath>
<!--
<web>
<link target="/">
<dir name="${project.build.directory}/${project.build.artifactId}/web"/>
</link>
</web>
-->
</application>

View File

@@ -21,6 +21,12 @@
<artifactId>junit-remote</artifactId>
<version>3</version>
<type>jar</type>
<exclusions>
<exclusion>
<artifactId>servlet-api</artifactId>
<groupId>javax.servlet</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- Required to have annotation based remote testing working -->
<dependency>

View File

@@ -458,6 +458,13 @@
<version>${h2-support.version}</version>
<scope>test</scope>
</dependency>
<!-- Add RAD capabilities for remote JUnit test running (client) -->
<dependency>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-rad</artifactId>
<version>${maven.alfresco.version}</version>
<scope>test</scope>
</dependency>
<!--
| Requires this explicit test dependency, for a Spring 3.0.5 bug
| See https://jira.springsource.org/browse/SPR-8527
@@ -482,13 +489,67 @@
<classifier>config</classifier>
<scope>provided</scope>
</dependency>
<!-- Add RAD capabilities for remote JUnit test running -->
</dependencies>
</profile>
<!-- Profile to enable rapid application development with JRebel
and remote JUnit running, needs to be called explicitly
with -Prad -->
<profile>
<id>rad</id>
<build>
<plugins>
<plugin>
<groupId>org.zeroturnaround</groupId>
<artifactId>jrebel-maven-plugin</artifactId>
<version>1.1.5</version>
<executions>
<execution>
<id>generate-rebel-xml</id>
<phase>prepare-package</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<packaging>war</packaging>
<generateDefaultElements>false</generateDefaultElements>
<classpath>
<resources>
<resource>
<directory>${project.build.outputDirectory}</directory>
</resource>
<resource>
<directory>${project.build.testOutputDirectory}</directory>
</resource>
</resources>
</classpath>
<web>
<resources>
<resource>
<target>/</target>
<directory>${project.build.directory}/${project.build.finalName}</directory>
</resource>
<resource>
<target>/</target>
<directory>${project.build.directory}/${project.build.finalName}-war</directory>
</resource>
</resources>
</web>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<!-- Add RAD capabilities for remote JUnit test running (client) -->
<dependency>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-rad</artifactId>
<version>${maven.alfresco.version}</version>
</dependency>
</dependencies>
</profile>
<!-- Enable AMP project packing on a WAR and run embedded in Tomcat -->