Hi,

I was trying to populate my production database with default data (instead
of the sample-data.xml file in the test resources). I searched the wiki and
mailing list and it looked like I should use this command:

mvn -Pprod dbunit:operation

I run the command in the core directory and found my database was still
initialized with test data (with negative primary keys). Then I noticed that
the prod profile was in the parent pom while I was running the command in
the core directory - maven does not seem to inherit profiles from parent
POM.

Moving the prod profile from the parent POM to core/pom.xml solved my
problem - now my database is populated with records from default-data.xml.
My question is, should AppFuse move the prod profile to core/pom.xml in a
modular application by default so that it works out of the box? Or did I
miss anything?

Thanks!
-- 
View this message in context: 
http://www.nabble.com/The-prod-profile-in-the-POM-in-a-modular-application-tp21357730s2369p21357730.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to