Recently I received a requirement much like that covered in the following thread:

Releasing artifacts with and without debug info (December 04, 2013)

I'm new to Maven, but I more or less followed the idea:

1. create a profile
2. in the profile, specify the plugins
3. in each plugin, specify multiple execution blocks
   a. one block is configured to generate debug info
   b. another block is configured to omit debug info
   c. add classifiers to the JAR or WAR plugin as needed
4. deploy plugin
   a. add a configuration section
   b. add a files section
   c. list additional artifacts to be attached (?!)

Is this the gist of Dimitar Gospodinov's reply at the end of the thread?

It seems both hackish and verbose.

However, I'm not sure of any other way to provide both fully optimized (compressed CSS, Javascript) and non-optimized WAR and JAR artifacts.

Any time I'm doing something like this, I feel that I'm not doing it the "Maven way".

Other approaches?

/mde/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to