Question

I started using JRebel just moment ago. In my current setup launch JBoss instance from Eclipse and I use command line maven to deploy. I was wondering whether it would be anyhow possible to avoid redeployment when I need to change from test-A profile to test-B profile. Profiles are used here to set several configuration values.

Was it helpful?

Solution

If you're using JRebel, you should forget about Maven as there's no need to build the package after every change. If profiles are used only for configurations, why not to make the changes to the configuration files directly? Depending on the nature of the configuration files these can be handled by JRebel. What are those configuration files?

OTHER TIPS

You can't change profiles for already running Maven instance. But you can activate specific profiles on Maven startup using system properties.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top