Note that there are some explanatory texts on larger screens.

plurals
  1. PODifferent cargo.run profiles in maven2 (Java / Hippo)
    primarykey
    data
    text
    <p>I'm trying to setup our build/deploy process for a project that uses <a href="http://www.onehippo.org/" rel="nofollow">Hippo</a>, a Java / JCR CMS. The deployment strategy we want to achieve is:</p> <ol> <li><p>Local development: use the default 'in memory' database provided with Hippo.</p></li> <li><p>Test and production environments: use MySQL.</p></li> </ol> <p>I've successfully followed the instructions for <a href="https://wiki.onehippo.com/display/CMS7/Configuring+Hippo+7+CMS+and+HST+for+Tomcat+and+MySQL" rel="nofollow">setting Hippo up to use MySQL</a> and now I'm trying to configure the maven2 pom.xml so we can have different deployments - one called from the IDE/command line by a developer and one called by Jenkins. So I read up on the cargo maven2 plugin used by Hippo, and tried to create a new profile called cargo.run.mysql - however, when I run maven with mvn -P cargo.run.mysql, cargo does not start the container (Tomcat), it builds instead. After some more reading on the cargo plugin page, I'm guessing (could be wrong!) that there's some kind of magic link between a maven profile ID and a cargo 'target' / 'execution mode' (in this case cargo.run -> cargo:run). So now I'm stuck trying to get my new target with its different configuration file copy tasks to run.</p> <p>Does anyone have experience with this? Advice on how to do this sensibly is also very welcome! I'm used to using ant and its more low-level approach, and I have to admit maven is really making me scratch my head a lot.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload