Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All-in-one archetype doesn't do hot deployment with JRebel #181

Closed
mindthegab opened this issue Jul 20, 2014 · 3 comments
Closed

All-in-one archetype doesn't do hot deployment with JRebel #181

mindthegab opened this issue Jul 20, 2014 · 3 comments

Comments

@mindthegab
Copy link
Contributor

From marco.ma...@gmail.com on March 04, 2014 11:30:41

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"

Jrebel-test /enterprise/admin/jrebel-test 1. 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

Original issue: http://code.google.com/p/maven-alfresco-archetypes/issues/detail?id=181

@mindthegab
Copy link
Contributor Author

From marco.ma...@gmail.com on June 26, 2014 08:44:56

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:

rad org.zeroturnaround jrebel-maven-plugin 1.1.5 generate-rebel-xml prepare-package generate war false ${project.build.outputDirectory} ${project.build.testOutputDirectory} / ${project.build.directory}/${project.build.finalName} / ${project.build.directory}/war org.alfresco.maven alfresco-rad ${maven.alfresco.version}
</profile>

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?

@mindthegab
Copy link
Contributor Author

From colum...@gmail.com on July 17, 2014 17:10:58

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!

Status: Accepted
Owner: marco.ma...@alfresco.com
Labels: Milestone-Release-sdk-2.0.0

@mindthegab mindthegab modified the milestone: Release-sdk-2.0.0 Jul 20, 2014
@mindthegab mindthegab modified the milestones: 2.0.0-beta-1, 2.0.0 Aug 22, 2014
@mindthegab
Copy link
Contributor Author

This is now fixed using spring-loaded in version 2.0.0. JRebel usage is deprecated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants