mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-08-07 17:49:34 +00:00
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:
@@ -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>
|
|
@@ -21,6 +21,12 @@
|
|||||||
<artifactId>junit-remote</artifactId>
|
<artifactId>junit-remote</artifactId>
|
||||||
<version>3</version>
|
<version>3</version>
|
||||||
<type>jar</type>
|
<type>jar</type>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>servlet-api</artifactId>
|
||||||
|
<groupId>javax.servlet</groupId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- Required to have annotation based remote testing working -->
|
<!-- Required to have annotation based remote testing working -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@@ -458,6 +458,13 @@
|
|||||||
<version>${h2-support.version}</version>
|
<version>${h2-support.version}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</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
|
| Requires this explicit test dependency, for a Spring 3.0.5 bug
|
||||||
| See https://jira.springsource.org/browse/SPR-8527
|
| See https://jira.springsource.org/browse/SPR-8527
|
||||||
@@ -482,13 +489,67 @@
|
|||||||
<classifier>config</classifier>
|
<classifier>config</classifier>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</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>
|
<dependency>
|
||||||
<groupId>org.alfresco.maven</groupId>
|
<groupId>org.alfresco.maven</groupId>
|
||||||
<artifactId>alfresco-rad</artifactId>
|
<artifactId>alfresco-rad</artifactId>
|
||||||
<version>${maven.alfresco.version}</version>
|
<version>${maven.alfresco.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
<!-- Enable AMP project packing on a WAR and run embedded in Tomcat -->
|
<!-- Enable AMP project packing on a WAR and run embedded in Tomcat -->
|
||||||
|
Reference in New Issue
Block a user