Issue 181 in maven-alfresco-archetypes: All-in-one archetype doesn't do hot deployment with JRebel

47 views
Skip to first unread message

maven-alfres...@googlecode.com

unread,
Mar 4, 2014, 11:30:53 AM3/4/14
to maven-a...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 181 by marco.ma...@gmail.com: All-in-one archetype doesn't do hot
deployment with JRebel
http://code.google.com/p/maven-alfresco-archetypes/issues/detail?id=181

What steps will reproduce the problem?
1. Install & configure JRebel 5.5.1 with valid licence
2. Create a new maven project with All-in-one archetype
3. Perform a mvn install -Prun,rad
4. When Alfresco is up and running add the folders:
/extension/templates/webscripts
inside
/amp/src/main/amp/config/alfresco/
5. Create a webscript descriptor inside the webscripts folder,

example "jrebel-test.get.desc.xml"

<webscript>
<shortname>Jrebel-test</shortname>
<url>/enterprise/admin/jrebel-test</url>
</webscript>

6. Refresh Alfresco Webscripts

What is the expected output?
JRebel should hot deploy and alfresco should install the new webscript

What do you see instead?
The new webscript is not installed

What version of the product are you using?
SDK 1.1.0
All-in-on archetype
Alfresco 4.2.0


Please provide any additional information below.
Works fine with the AMP archetype

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

maven-alfres...@googlecode.com

unread,
Jun 26, 2014, 11:45:03 AM6/26/14
to maven-a...@googlegroups.com

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?

maven-alfres...@googlecode.com

unread,
Jul 17, 2014, 8:11:06 PM7/17/14
to maven-a...@googlegroups.com
Updates:
Status: Accepted
Owner: marco.ma...@alfresco.com
Labels: Milestone-Release-sdk-2.0.0

Comment #2 on issue 181 by colum...@gmail.com: All-in-one archetype doesn't
Marco, can you commit this in the SDK parent POM so that we can close this
issue?

Assigning it to you for now. Let me know!
Reply all
Reply to author
Forward
0 new messages