Using jRebel with Cargo

243 views
Skip to first unread message

Steve McCoole

unread,
Dec 5, 2014, 3:29:33 PM12/5/14
to hippo-c...@googlegroups.com
I followed the instructions to set up jRebel for use with our Hippo project and I am trying to make it work with Cargo before attempting to throw IntelliJ into the mix.  I must have overlooked something obvious though.  I start everything up with cargo like:

mvn -Pcargo.run -Drepo.path=storage -Drepo.bootstrap=true -Djrebel -Dcargo.jvm.args='-Dwicket.configuration=development'

Then I make my changes.  From there the documentation on http://www.onehippo.org/library/development/develop-with-jrebel.html it isn't really clear on how we are intended to get our changes picked up by jRebel.   I thought that:

mvn cargo:redeploy 

would be logical but that errors out in the cms, complaining about not having the proper username and password defined.  If I am just using maven, what is the intended workflow?

Thanks,
Steve

Oscar Farg

unread,
Dec 8, 2014, 3:53:31 AM12/8/14
to hippo-c...@googlegroups.com
The changes should be picked up automatically by JRebel when a java file is recompiled, a redeploy is not necessary.
Did you generate the JRebel descriptors as described?

Is JRebel started when you run the above command and isn't it showing any error messages?

Kind regards,

Oscar Farg


--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at http://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.

Jeroen Reijn

unread,
Dec 8, 2014, 4:45:59 AM12/8/14
to hippo-c...@googlegroups.com
Hi Steve,

there are two things you can do.

In the initial packaging phase you need to run jrebel like:

$ mvn clean package -Djrebel 

By doing so Jrebel will create descriptor files (jrebel.xml).

Now once you have cargo running with the command you mentioned you can do two things to get your changes visible.

- Rebuild the specific maven module (in a multimodule maven project). $ mvn compile -Djrebel should do it
- Or package the file from within your IDE (In IntelliJ IDEA on the Mac this is CMD+SHIFT+F9)

Cheers,

Jeroen

--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at http://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.



--
Jeroen Reijn
Hippo

Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Boston - 101 Main Street, Cambridge, MA 02142

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com

http://blog.jeroenreijn.com
http://about.me/jeroenreijn

Steve McCoole

unread,
Dec 10, 2014, 4:03:21 PM12/10/14
to hippo-c...@googlegroups.com
Jeroen,

Thank you, that works great!

Steve
Reply all
Reply to author
Forward
0 new messages