I recently learned how to define multiple profiles in my pom.xml files, and activate certain ones by name in my ~/.m2/settings.xml. This helps me with complex Maven-Thrift builds, where I want a `mvn generate-sources` locally, but my manager doesn't want the remote, continuous integration build to require the thrift compiler. For the most part, this works wonderfully.
However, I also work on Maven projects that have nothing to do with Thrift, so their pom.xml files don't define a "thrift" profile. For these projects, when I run Maven commands (e.g. `mvn test`), Maven spits out a warning: $ mvn test ... [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.189s [INFO] Finished at: Mon Jan 27 13:36:35 EST 2014 [INFO] Final Memory: 14M/81M [INFO] ------------------------------------------------------------------------ [WARNING] The requested profile "thrift" could not be activated because it does not exist. I would prefer to hide this warning, by configuring my settings.xml so that Maven attempts to activate a "thrift" profile, but silently ignores it when missing. Is such a configuration possible? -- Cheers, Andrew Pennebaker [email protected]
