Comment #1 on issue 181 by
marco.ma...@gmail.com: All-in-one archetype
I could see in my logs:
JRebel: ERROR Error! Invalid 'dir' defined in class path of rebel.xml
(jndi:/localhost/share/WEB-INF/classes/rebel.xml):
Directory '/Users/xxx/Documents/workspace/maven-jrebel-aio/jrebel-test/share/target/test-classes'
does not exist
JRebel: ERROR Error! Invalid 'dir' defined in web link of rebel.xml
(jndi:/localhost/share/WEB-INF/classes/rebel.xml):
Directory '/Users/xxx/Documents/workspace/maven-jrebel-aio/jrebel-test/share/target/share-war'
does not exist
JRebel: ERROR Error! Invalid 'dir' defined in class path of rebel.xml
(jndi:/localhost/alfresco/WEB-INF/classes/rebel.xml):
Directory '/Users/xxx/Documents/workspace/maven-jrebel-aio/jrebel-test/alfresco/target/test-classes'
does not exist
JRebel: ERROR Error! Invalid 'dir' defined in web link of rebel.xml
(jndi:/localhost/alfresco/WEB-INF/classes/rebel.xml):
Directory '/Users/xxx/Documents/workspace/maven-jrebel-aio/jrebel-test/alfresco/target/alfresco-war'
does not exist
JRebel: ERROR Error! Invalid 'dir' defined in web link of rebel.xml
(jar:file:/Users/xxx/Documents/workspace/maven-jrebel-aio/jrebel-test/runner/target/tomcat/webapps/alfresco/WEB-INF/lib/amp.jar!/rebel.xml):
Directory '/Users/xxx/Documents/workspace/maven-jrebel-aio/jrebel-test/amp/target/amp-war'
does not exist
So I have changed the AIO pom.xml to override the JRebel Plugin adding:
<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}/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>
</profiles>
Now any changes inside the Alfresco project and Share project are taken
into account, not inside the amp. Is it supposed to work with the AMP as
well?