Hi My pom.xml is used to generate around 8 assemblies.So, when i run mvn assembly:assembly, all are generated.Is there a way to selectively generate 1/2 assemblies at a time?
+5
A:
You can put the assemblies into profiles, so they'll only be generated when the owning profile is activated. You have various options for activating the profile based on the presence or value of properties or files. You can group more then one assembly into a profile if you will always generate them together.
Rich Seller
2009-10-07 09:46:54
+1 this is a perfect use case for profiles
Pascal Thivent
2009-10-07 15:34:05
A:
We use one project per assembly, each has a dedicated pom (possibly with parent pom...).
>mvn clean install
This is the command we use, that creates the assemblies.
- In the parent directory (and pom), it will build all.
- In a subdirectory, it will build the current assembly, and possibly sub-ones.
KLE
2009-10-07 09:47:44