Commit 5e7f4c62 authored by mindthegab's avatar mindthegab
Browse files

fixes issue 123: jrebel configuration added in sdk pom, activate with -Prad to...

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
parent df38011a
Loading
Loading
Loading
Loading
+0 −22
Original line number Diff line number Diff line
<?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>
 No newline at end of file
+6 −0
Original line number Diff line number Diff line
@@ -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>
+62 −1
Original line number Diff line number Diff line
@@ -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 -->