Using Multiple cargo.run Profile on POM

Hi,
Hippo CMS runs locally with profile cargo.run but I am looking to use two profiles which ought to use profile id cargo.run. This id cargo.run is apparently required to support Hippo Application loading up.

How to go about doing this…

Many Thanks
Srinivas Jasti

Why do you need another cargo profile? Your only option is to call your profile something else.

I have two sets of dependencies and deployables specific to local and dev and I want to cargo.run each of the profile

The profile id cargo.run is just a name, the more important point to is that you need to add and configure cargo-maven2-plugin within your profile.

So I suggest you create 2 different profiles cargo.local and cargo.dev, then add and configure cargo-maven2-plugin in the same manner as Hippo guy already did with cargo.run profile.

https://www.onehippo.org/library/development/run-and-develop-with-cargo.html , cargo.run is not just name, using this id helps the Hippo to load BootStrapping.

You can define additional ‘fragment’ profiles like cargo.local or
cargo.dev which you then combine with the cargo.run profile.

Each of these additional profiles can extend the cargo.run profile
and cargo-maven2-plugin configuration with additional properties,
dependencies, etc.

You also may want/need to use the Maven special/magic attributes
combine.children=“append” or combine.self=“override” [1].

Then you can use mvn -P cargo.run,cargo.local to run the combined effect
of these profiles.

HTH, Ate

[1]